Create a about handler component.
Create a about handler component.
The following files ::
chrome/browser/net/about_protocol_handler.*
net/url_request/url_request_about_job.*
moved to new component: components/about_handler.
Also added GYP and GN file for same.
BUG=516695
Review URL: https://codereview.chromium.org/1284173003
Cr-Commit-Position: refs/heads/master@{#343366}
diff --git a/components/about_handler/about_protocol_handler.cc b/components/about_handler/about_protocol_handler.cc
new file mode 100644
index 0000000..1f55f04
--- /dev/null
+++ b/components/about_handler/about_protocol_handler.cc
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/about_handler/about_protocol_handler.h"
+
+#include "components/about_handler/url_request_about_job.h"
+
+namespace about_handler {
+
+AboutProtocolHandler::AboutProtocolHandler() {
+}
+
+AboutProtocolHandler::~AboutProtocolHandler() {
+}
+
+net::URLRequestJob* AboutProtocolHandler::MaybeCreateJob(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const {
+ return new URLRequestAboutJob(request, network_delegate);
+}
+
+bool AboutProtocolHandler::IsSafeRedirectTarget(const GURL& location) const {
+ return false;
+}
+
+} // namespace about_handler