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

Side by Side Diff: apps/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 APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 6 #define APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 // content::ContentBrowserClient overrides. 26 // content::ContentBrowserClient overrides.
27 virtual content::BrowserMainParts* CreateBrowserMainParts( 27 virtual content::BrowserMainParts* CreateBrowserMainParts(
28 const content::MainFunctionParams& parameters) OVERRIDE; 28 const content::MainFunctionParams& parameters) OVERRIDE;
29 virtual void RenderProcessWillLaunch( 29 virtual void RenderProcessWillLaunch(
30 content::RenderProcessHost* host) OVERRIDE; 30 content::RenderProcessHost* host) OVERRIDE;
31 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, 31 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context,
32 const GURL& effective_url) OVERRIDE; 32 const GURL& effective_url) OVERRIDE;
33 virtual net::URLRequestContextGetter* CreateRequestContext( 33 virtual net::URLRequestContextGetter* CreateRequestContext(
34 content::BrowserContext* browser_context, 34 content::BrowserContext* browser_context,
35 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; 35 content::ProtocolHandlerMap* protocol_handlers,
36 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE;
36 // TODO(jamescook): Quota management? 37 // TODO(jamescook): Quota management?
37 // TODO(jamescook): Speech recognition? 38 // TODO(jamescook): Speech recognition?
38 virtual bool IsHandledURL(const GURL& url) OVERRIDE; 39 virtual bool IsHandledURL(const GURL& url) OVERRIDE;
39 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) 40 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance)
40 OVERRIDE; 41 OVERRIDE;
41 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) 42 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance)
42 OVERRIDE; 43 OVERRIDE;
43 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 44 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
44 int child_process_id) OVERRIDE; 45 int child_process_id) OVERRIDE;
45 virtual void GetAdditionalAllowedSchemesForFileSystem( 46 virtual void GetAdditionalAllowedSchemesForFileSystem(
46 std::vector<std::string>* additional_schemes) OVERRIDE; 47 std::vector<std::string>* additional_schemes) OVERRIDE;
47 48
48 private: 49 private:
49 // Returns the extension or app associated with |site_instance| or NULL. 50 // Returns the extension or app associated with |site_instance| or NULL.
50 const extensions::Extension* GetExtension( 51 const extensions::Extension* GetExtension(
51 content::SiteInstance* site_instance); 52 content::SiteInstance* site_instance);
52 53
53 // Owned by content::BrowserMainLoop. 54 // Owned by content::BrowserMainLoop.
54 ShellBrowserMainParts* browser_main_parts_; 55 ShellBrowserMainParts* browser_main_parts_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 57 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
57 }; 58 };
58 59
59 } // namespace apps 60 } // namespace apps
60 61
61 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 62 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698