OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 std::vector<BrowserMainParts*>* parts_list) OVERRIDE; | 38 std::vector<BrowserMainParts*>* parts_list) OVERRIDE; |
39 virtual RenderWidgetHostView* CreateViewForWidget( | 39 virtual RenderWidgetHostView* CreateViewForWidget( |
40 RenderWidgetHost* widget) OVERRIDE; | 40 RenderWidgetHost* widget) OVERRIDE; |
41 virtual TabContentsView* CreateTabContentsView( | 41 virtual TabContentsView* CreateTabContentsView( |
42 TabContents* tab_contents) OVERRIDE; | 42 TabContents* tab_contents) OVERRIDE; |
43 virtual void RenderViewHostCreated( | 43 virtual void RenderViewHostCreated( |
44 RenderViewHost* render_view_host) OVERRIDE; | 44 RenderViewHost* render_view_host) OVERRIDE; |
45 virtual void BrowserRenderProcessHostCreated( | 45 virtual void BrowserRenderProcessHostCreated( |
46 BrowserRenderProcessHost* host) OVERRIDE; | 46 BrowserRenderProcessHost* host) OVERRIDE; |
47 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 47 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
48 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | |
49 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 48 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; |
50 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 49 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
51 const GURL& url) OVERRIDE; | 50 const GURL& url) OVERRIDE; |
52 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 51 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
53 const GURL& effective_url) OVERRIDE; | 52 const GURL& effective_url) OVERRIDE; |
54 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 53 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
55 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 54 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
56 const GURL& site_url) OVERRIDE; | 55 const GURL& site_url) OVERRIDE; |
57 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 56 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
58 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 57 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
77 int render_view_id) OVERRIDE; | 76 int render_view_id) OVERRIDE; |
78 virtual bool AllowSetCookie(const GURL& url, | 77 virtual bool AllowSetCookie(const GURL& url, |
79 const GURL& first_party, | 78 const GURL& first_party, |
80 const std::string& cookie_line, | 79 const std::string& cookie_line, |
81 const content::ResourceContext& context, | 80 const content::ResourceContext& context, |
82 int render_process_id, | 81 int render_process_id, |
83 int render_view_id, | 82 int render_view_id, |
84 net::CookieOptions* options) OVERRIDE; | 83 net::CookieOptions* options) OVERRIDE; |
85 virtual bool AllowSaveLocalState( | 84 virtual bool AllowSaveLocalState( |
86 const content::ResourceContext& context) OVERRIDE; | 85 const content::ResourceContext& context) OVERRIDE; |
| 86 virtual bool AllowWorkerDatabase( |
| 87 int worker_route_id, |
| 88 const GURL& url, |
| 89 const string16& name, |
| 90 const string16& display_name, |
| 91 unsigned long estimated_size, |
| 92 WorkerProcessHost* worker_process_host) OVERRIDE; |
| 93 virtual bool AllowWorkerFileSystem( |
| 94 int worker_route_id, |
| 95 const GURL& url, |
| 96 WorkerProcessHost* worker_process_host) OVERRIDE; |
87 virtual net::URLRequestContext* OverrideRequestContextForURL( | 97 virtual net::URLRequestContext* OverrideRequestContextForURL( |
88 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 98 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
89 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 99 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
90 virtual void OpenItem(const FilePath& path) OVERRIDE; | 100 virtual void OpenItem(const FilePath& path) OVERRIDE; |
91 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 101 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
92 virtual void AllowCertificateError( | 102 virtual void AllowCertificateError( |
93 SSLCertErrorHandler* handler, | 103 SSLCertErrorHandler* handler, |
94 bool overridable, | 104 bool overridable, |
95 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 105 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
96 OVERRIDE; | 106 OVERRIDE; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; | 180 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE; |
171 #endif | 181 #endif |
172 | 182 |
173 private: | 183 private: |
174 ShellBrowserMainParts* shell_browser_main_parts_; | 184 ShellBrowserMainParts* shell_browser_main_parts_; |
175 }; | 185 }; |
176 | 186 |
177 } // namespace content | 187 } // namespace content |
178 | 188 |
179 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 189 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |