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

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

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments from jam@ Created 6 years, 11 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
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | no next file » | 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 #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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const GURL& url); 178 const GURL& url);
179 179
180 // Returns whether all instances of the specified effective URL should be 180 // Returns whether all instances of the specified effective URL should be
181 // rendered by the same process, rather than using process-per-site-instance. 181 // rendered by the same process, rather than using process-per-site-instance.
182 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, 182 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
183 const GURL& effective_url); 183 const GURL& effective_url);
184 184
185 // Returns a list additional WebUI schemes, if any. These additional schemes 185 // Returns a list additional WebUI schemes, if any. These additional schemes
186 // act as aliases to the chrome: scheme. The additional schemes may or may 186 // act as aliases to the chrome: scheme. The additional schemes may or may
187 // not serve specific WebUI pages depending on the particular URLDataSource 187 // not serve specific WebUI pages depending on the particular URLDataSource
188 // and its override of URLDataSource::ShouldServiceRequest. 188 // and its override of URLDataSource::ShouldServiceRequest. For all schemes
189 // returned here, view-source is allowed.
189 virtual void GetAdditionalWebUISchemes( 190 virtual void GetAdditionalWebUISchemes(
190 std::vector<std::string>* additional_schemes) {} 191 std::vector<std::string>* additional_schemes) {}
191 192
192 // Creates the main net::URLRequestContextGetter. Should only be called once 193 // Creates the main net::URLRequestContextGetter. Should only be called once
193 // per ContentBrowserClient object. 194 // per ContentBrowserClient object.
194 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. 195 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved.
195 virtual net::URLRequestContextGetter* CreateRequestContext( 196 virtual net::URLRequestContextGetter* CreateRequestContext(
196 BrowserContext* browser_context, 197 BrowserContext* browser_context,
197 ProtocolHandlerMap* protocol_handlers); 198 ProtocolHandlerMap* protocol_handlers);
198 199
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 content::BrowserContext* browser_context, 609 content::BrowserContext* browser_context,
609 const GURL& url); 610 const GURL& url);
610 611
611 // Returns true if dev channel APIs are available for plugins. 612 // Returns true if dev channel APIs are available for plugins.
612 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 613 virtual bool IsPluginAllowedToUseDevChannelAPIs();
613 }; 614 };
614 615
615 } // namespace content 616 } // namespace content
616 617
617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 618 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/webui/url_data_manager_backend.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698