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

Side by Side Diff: content/browser/browser_url_handler_impl.cc

Issue 11312016: content: Move two more url constants into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_url_handler_impl.h" 5 #include "content/browser/browser_url_handler_impl.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "content/browser/webui/web_ui_impl.h" 8 #include "content/browser/webui/web_ui_impl.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 url_parse::Component(0, url->spec().size())); 58 url_parse::Component(0, url->spec().size()));
59 *url = url->ReplaceComponents(repl); 59 *url = url->ReplaceComponents(repl);
60 return true; 60 return true;
61 } 61 }
62 62
63 static bool HandleDebugUrl(GURL* url, BrowserContext* browser_context) { 63 static bool HandleDebugUrl(GURL* url, BrowserContext* browser_context) {
64 // Circumvent processing URLs that the renderer process will handle. 64 // Circumvent processing URLs that the renderer process will handle.
65 return *url == GURL(chrome::kChromeUICrashURL) || 65 return *url == GURL(chrome::kChromeUICrashURL) ||
66 *url == GURL(chrome::kChromeUIHangURL) || 66 *url == GURL(chrome::kChromeUIHangURL) ||
67 *url == GURL(chrome::kChromeUIKillURL) || 67 *url == GURL(chrome::kChromeUIKillURL) ||
68 *url == GURL(chrome::kChromeUIShorthangURL); 68 *url == GURL(kChromeUIShorthangURL);
69 } 69 }
70 70
71 // static 71 // static
72 BrowserURLHandler* BrowserURLHandler::GetInstance() { 72 BrowserURLHandler* BrowserURLHandler::GetInstance() {
73 return BrowserURLHandlerImpl::GetInstance(); 73 return BrowserURLHandlerImpl::GetInstance();
74 } 74 }
75 75
76 // static 76 // static
77 BrowserURLHandler::URLHandler BrowserURLHandler::null_handler() { 77 BrowserURLHandler::URLHandler BrowserURLHandler::null_handler() {
78 // Required for VS2010: http://connect.microsoft.com/VisualStudio/feedback/det ails/520043/error-converting-from-null-to-a-pointer-type-in-std-pair 78 // Required for VS2010: http://connect.microsoft.com/VisualStudio/feedback/det ails/520043/error-converting-from-null-to-a-pointer-type-in-std-pair
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return true; 126 return true;
127 } else if (handler(&test_url, browser_context)) { 127 } else if (handler(&test_url, browser_context)) {
128 return reverse_rewriter(url, browser_context); 128 return reverse_rewriter(url, browser_context);
129 } 129 }
130 } 130 }
131 } 131 }
132 return false; 132 return false;
133 } 133 }
134 134
135 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698