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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 8623001: Move remaining about: handlers to webUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1046 }
1047 1047
1048 void ChromeContentBrowserClient::BrowserURLHandlerCreated( 1048 void ChromeContentBrowserClient::BrowserURLHandlerCreated(
1049 BrowserURLHandler* handler) { 1049 BrowserURLHandler* handler) {
1050 // Add the default URL handlers. 1050 // Add the default URL handlers.
1051 handler->AddHandlerPair(&ExtensionWebUI::HandleChromeURLOverride, 1051 handler->AddHandlerPair(&ExtensionWebUI::HandleChromeURLOverride,
1052 BrowserURLHandler::null_handler()); 1052 BrowserURLHandler::null_handler());
1053 handler->AddHandlerPair(BrowserURLHandler::null_handler(), 1053 handler->AddHandlerPair(BrowserURLHandler::null_handler(),
1054 &ExtensionWebUI::HandleChromeURLOverrideReverse); 1054 &ExtensionWebUI::HandleChromeURLOverrideReverse);
1055 1055
1056 // about: 1056 // about: handler. Must come before chrome: handler, since it will
1057 // rewrite about: urls to chrome: URLs and then expect chrome: to
1058 // actually handle them.
1057 handler->AddHandlerPair(&WillHandleBrowserAboutURL, 1059 handler->AddHandlerPair(&WillHandleBrowserAboutURL,
1058 BrowserURLHandler::null_handler()); 1060 BrowserURLHandler::null_handler());
1059 // chrome: & friends. 1061 // chrome: & friends.
1060 handler->AddHandlerPair(&HandleWebUI, 1062 handler->AddHandlerPair(&HandleWebUI,
1061 BrowserURLHandler::null_handler()); 1063 BrowserURLHandler::null_handler());
1062 } 1064 }
1063 1065
1064 void ChromeContentBrowserClient::ClearCache(RenderViewHost* rvh) { 1066 void ChromeContentBrowserClient::ClearCache(RenderViewHost* rvh) {
1065 Profile* profile = Profile::FromBrowserContext( 1067 Profile* profile = Profile::FromBrowserContext(
1066 rvh->site_instance()->GetProcess()->GetBrowserContext()); 1068 rvh->site_instance()->GetProcess()->GetBrowserContext());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 #if defined(USE_NSS) 1129 #if defined(USE_NSS)
1128 crypto::CryptoModuleBlockingPasswordDelegate* 1130 crypto::CryptoModuleBlockingPasswordDelegate*
1129 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1131 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1130 const GURL& url) { 1132 const GURL& url) {
1131 return browser::NewCryptoModuleBlockingDialogDelegate( 1133 return browser::NewCryptoModuleBlockingDialogDelegate(
1132 browser::kCryptoModulePasswordKeygen, url.host()); 1134 browser::kCryptoModulePasswordKeygen, url.host());
1133 } 1135 }
1134 #endif 1136 #endif
1135 1137
1136 } // namespace chrome 1138 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698