Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: components/about_handler/about_protocol_handler.cc

Issue 1284173003: Create a about handler component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/about_handler/about_protocol_handler.h ('k') | components/about_handler/url_request_about_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/about_handler/about_protocol_handler.cc
diff --git a/chrome/browser/net/about_protocol_handler.cc b/components/about_handler/about_protocol_handler.cc
similarity index 50%
rename from chrome/browser/net/about_protocol_handler.cc
rename to components/about_handler/about_protocol_handler.cc
index 13f0c3b14cd20b2198205d54bd15e9fcbfdffe08..1f55f0407e87f95fa6649aae93682c36930db9ea 100644
--- a/chrome/browser/net/about_protocol_handler.cc
+++ b/components/about_handler/about_protocol_handler.cc
@@ -2,22 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/about_protocol_handler.h"
+#include "components/about_handler/about_protocol_handler.h"
-#include "net/url_request/url_request_about_job.h"
+#include "components/about_handler/url_request_about_job.h"
-namespace chrome_browser_net {
+namespace about_handler {
AboutProtocolHandler::AboutProtocolHandler() {
}
+AboutProtocolHandler::~AboutProtocolHandler() {
+}
+
net::URLRequestJob* AboutProtocolHandler::MaybeCreateJob(
- net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
- return new net::URLRequestAboutJob(request, network_delegate);
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const {
+ return new URLRequestAboutJob(request, network_delegate);
}
bool AboutProtocolHandler::IsSafeRedirectTarget(const GURL& location) const {
return false;
}
-} // namespace chrome_browser_net
+} // namespace about_handler
« no previous file with comments | « components/about_handler/about_protocol_handler.h ('k') | components/about_handler/url_request_about_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698