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

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

Issue 282103004: Rename ProtocolInterceptJobFactory and make it not use ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to jam's comments (And a merge) Created 6 years, 6 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 27 matching lines...) Expand all
38 // content::ContentBrowserClient overrides. 38 // content::ContentBrowserClient overrides.
39 virtual content::BrowserMainParts* CreateBrowserMainParts( 39 virtual content::BrowserMainParts* CreateBrowserMainParts(
40 const content::MainFunctionParams& parameters) OVERRIDE; 40 const content::MainFunctionParams& parameters) OVERRIDE;
41 virtual void RenderProcessWillLaunch( 41 virtual void RenderProcessWillLaunch(
42 content::RenderProcessHost* host) OVERRIDE; 42 content::RenderProcessHost* host) OVERRIDE;
43 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, 43 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context,
44 const GURL& effective_url) OVERRIDE; 44 const GURL& effective_url) OVERRIDE;
45 virtual net::URLRequestContextGetter* CreateRequestContext( 45 virtual net::URLRequestContextGetter* CreateRequestContext(
46 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
47 content::ProtocolHandlerMap* protocol_handlers, 47 content::ProtocolHandlerMap* protocol_handlers,
48 content::ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; 48 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE;
49 // TODO(jamescook): Quota management? 49 // TODO(jamescook): Quota management?
50 // TODO(jamescook): Speech recognition? 50 // TODO(jamescook): Speech recognition?
51 virtual bool IsHandledURL(const GURL& url) OVERRIDE; 51 virtual bool IsHandledURL(const GURL& url) OVERRIDE;
52 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) 52 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance)
53 OVERRIDE; 53 OVERRIDE;
54 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) 54 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance)
55 OVERRIDE; 55 OVERRIDE;
56 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, 56 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
57 int child_process_id) OVERRIDE; 57 int child_process_id) OVERRIDE;
58 virtual void GetAdditionalAllowedSchemesForFileSystem( 58 virtual void GetAdditionalAllowedSchemesForFileSystem(
59 std::vector<std::string>* additional_schemes) OVERRIDE; 59 std::vector<std::string>* additional_schemes) OVERRIDE;
60 60
61 private: 61 private:
62 // Returns the extension or app associated with |site_instance| or NULL. 62 // Returns the extension or app associated with |site_instance| or NULL.
63 const extensions::Extension* GetExtension( 63 const extensions::Extension* GetExtension(
64 content::SiteInstance* site_instance); 64 content::SiteInstance* site_instance);
65 65
66 // Owned by content::BrowserMainLoop. 66 // Owned by content::BrowserMainLoop.
67 ShellBrowserMainParts* browser_main_parts_; 67 ShellBrowserMainParts* browser_main_parts_;
68 68
69 // Owned by ShellBrowserMainParts. 69 // Owned by ShellBrowserMainParts.
70 ShellBrowserMainDelegate* browser_main_delegate_; 70 ShellBrowserMainDelegate* browser_main_delegate_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); 72 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient);
73 }; 73 };
74 74
75 } // namespace apps 75 } // namespace apps
76 76
77 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ 77 #endif // APPS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/native/net_init_native_callback.cc ('k') | apps/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698