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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 14200011: Cleanup: Return additional schemes vector as out parameter from GetAdditionalWebUISchemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Returns whether all instances of the specified effective URL should be 145 // Returns whether all instances of the specified effective URL should be
146 // rendered by the same process, rather than using process-per-site-instance. 146 // rendered by the same process, rather than using process-per-site-instance.
147 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 147 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
148 const GURL& effective_url); 148 const GURL& effective_url);
149 149
150 // Returns a list additional WebUI schemes, if any. These additional schemes 150 // Returns a list additional WebUI schemes, if any. These additional schemes
151 // act as aliases to the chrome: scheme. The additional schemes may or may 151 // act as aliases to the chrome: scheme. The additional schemes may or may
152 // not serve specific WebUI pages depending on the particular URLDataSource 152 // not serve specific WebUI pages depending on the particular URLDataSource
153 // and its override of URLDataSource::ShouldServiceRequest. 153 // and its override of URLDataSource::ShouldServiceRequest.
154 virtual std::vector<std::string> GetAdditionalWebUISchemes(); 154 virtual void GetAdditionalWebUISchemes(
155 std::vector<std::string>* additional_schemes) {}
155 156
156 // Creates the main net::URLRequestContextGetter. Should only be called once 157 // Creates the main net::URLRequestContextGetter. Should only be called once
157 // per ContentBrowserClient object. 158 // per ContentBrowserClient object.
158 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. 159 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
159 virtual net::URLRequestContextGetter* CreateRequestContext( 160 virtual net::URLRequestContextGetter* CreateRequestContext(
160 BrowserContext* browser_context, 161 BrowserContext* browser_context,
161 ProtocolHandlerMap* protocol_handlers); 162 ProtocolHandlerMap* protocol_handlers);
162 163
163 // Creates the net::URLRequestContextGetter for a StoragePartition. Should 164 // Creates the net::URLRequestContextGetter for a StoragePartition. Should
164 // only be called once per partition_path per ContentBrowserClient object. 165 // only be called once per partition_path per ContentBrowserClient object.
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 // This is called on a worker thread. 521 // This is called on a worker thread.
521 virtual 522 virtual
522 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 523 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
523 const GURL& url); 524 const GURL& url);
524 #endif 525 #endif
525 }; 526 };
526 527
527 } // namespace content 528 } // namespace content
528 529
529 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 530 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698