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

Side by Side Diff: content/shell/browser/shell_content_browser_client.h

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 18 matching lines...) Expand all
29 29
30 ShellContentBrowserClient(); 30 ShellContentBrowserClient();
31 virtual ~ShellContentBrowserClient(); 31 virtual ~ShellContentBrowserClient();
32 32
33 // ContentBrowserClient overrides. 33 // ContentBrowserClient overrides.
34 virtual BrowserMainParts* CreateBrowserMainParts( 34 virtual BrowserMainParts* CreateBrowserMainParts(
35 const MainFunctionParams& parameters) OVERRIDE; 35 const MainFunctionParams& parameters) OVERRIDE;
36 virtual void RenderProcessWillLaunch(RenderProcessHost* host) OVERRIDE; 36 virtual void RenderProcessWillLaunch(RenderProcessHost* host) OVERRIDE;
37 virtual net::URLRequestContextGetter* CreateRequestContext( 37 virtual net::URLRequestContextGetter* CreateRequestContext(
38 BrowserContext* browser_context, 38 BrowserContext* browser_context,
39 ProtocolHandlerMap* protocol_handlers) OVERRIDE; 39 ProtocolHandlerMap* protocol_handlers,
40 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE;
40 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 41 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
41 BrowserContext* browser_context, 42 BrowserContext* browser_context,
42 const base::FilePath& partition_path, 43 const base::FilePath& partition_path,
43 bool in_memory, 44 bool in_memory,
44 ProtocolHandlerMap* protocol_handlers) OVERRIDE; 45 ProtocolHandlerMap* protocol_handlers,
46 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE;
45 virtual bool IsHandledURL(const GURL& url) OVERRIDE; 47 virtual bool IsHandledURL(const GURL& url) OVERRIDE;
46 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 48 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
47 int child_process_id) OVERRIDE; 49 int child_process_id) OVERRIDE;
48 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, 50 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host,
49 const GURL& url, 51 const GURL& url,
50 WebPreferences* prefs) OVERRIDE; 52 WebPreferences* prefs) OVERRIDE;
51 virtual void ResourceDispatcherHostCreated() OVERRIDE; 53 virtual void ResourceDispatcherHostCreated() OVERRIDE;
52 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; 54 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
53 virtual std::string GetDefaultDownloadName() OVERRIDE; 55 virtual std::string GetDefaultDownloadName() OVERRIDE;
54 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context, 56 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 resource_dispatcher_host_delegate_; 89 resource_dispatcher_host_delegate_;
88 90
89 base::FilePath webkit_source_dir_; 91 base::FilePath webkit_source_dir_;
90 92
91 ShellBrowserMainParts* shell_browser_main_parts_; 93 ShellBrowserMainParts* shell_browser_main_parts_;
92 }; 94 };
93 95
94 } // namespace content 96 } // namespace content
95 97
96 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 98 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698