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_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 std::vector<BrowserMainParts*>* parts_list) OVERRIDE; | 26 std::vector<BrowserMainParts*>* parts_list) OVERRIDE; |
27 virtual RenderWidgetHostView* CreateViewForWidget( | 27 virtual RenderWidgetHostView* CreateViewForWidget( |
28 RenderWidgetHost* widget) OVERRIDE; | 28 RenderWidgetHost* widget) OVERRIDE; |
29 virtual TabContentsView* CreateTabContentsView( | 29 virtual TabContentsView* CreateTabContentsView( |
30 TabContents* tab_contents) OVERRIDE; | 30 TabContents* tab_contents) OVERRIDE; |
31 virtual void RenderViewHostCreated( | 31 virtual void RenderViewHostCreated( |
32 RenderViewHost* render_view_host) OVERRIDE; | 32 RenderViewHost* render_view_host) OVERRIDE; |
33 virtual void BrowserRenderProcessHostCreated( | 33 virtual void BrowserRenderProcessHostCreated( |
34 BrowserRenderProcessHost* host) OVERRIDE; | 34 BrowserRenderProcessHost* host) OVERRIDE; |
35 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 35 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
36 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | |
37 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 36 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; |
38 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 37 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
39 const GURL& url) OVERRIDE; | 38 const GURL& url) OVERRIDE; |
40 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 39 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
41 const GURL& effective_url) OVERRIDE; | 40 const GURL& effective_url) OVERRIDE; |
42 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 41 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
43 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 42 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
44 const GURL& site_url) OVERRIDE; | 43 const GURL& site_url) OVERRIDE; |
45 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
46 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
64 int render_view_id) OVERRIDE; | 63 int render_view_id) OVERRIDE; |
65 virtual bool AllowSetCookie(const GURL& url, | 64 virtual bool AllowSetCookie(const GURL& url, |
66 const GURL& first_party, | 65 const GURL& first_party, |
67 const std::string& cookie_line, | 66 const std::string& cookie_line, |
68 const content::ResourceContext& context, | 67 const content::ResourceContext& context, |
69 int render_process_id, | 68 int render_process_id, |
70 int render_view_id, | 69 int render_view_id, |
71 net::CookieOptions* options) OVERRIDE; | 70 net::CookieOptions* options) OVERRIDE; |
72 virtual bool AllowSaveLocalState( | 71 virtual bool AllowSaveLocalState( |
73 const content::ResourceContext& context) OVERRIDE; | 72 const content::ResourceContext& context) OVERRIDE; |
| 73 virtual bool AllowWorkerDatabase( |
| 74 int worker_route_id, |
| 75 const GURL& url, |
| 76 const string16& name, |
| 77 const string16& display_name, |
| 78 unsigned long estimated_size, |
| 79 WorkerProcessHost* worker_process_host) OVERRIDE; |
| 80 virtual bool AllowWorkerFileSystem( |
| 81 int worker_route_id, |
| 82 const GURL& url, |
| 83 WorkerProcessHost* worker_process_host) OVERRIDE; |
74 virtual net::URLRequestContext* OverrideRequestContextForURL( | 84 virtual net::URLRequestContext* OverrideRequestContextForURL( |
75 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 85 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
76 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 86 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
77 virtual void OpenItem(const FilePath& path) OVERRIDE; | 87 virtual void OpenItem(const FilePath& path) OVERRIDE; |
78 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 88 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
79 virtual void AllowCertificateError( | 89 virtual void AllowCertificateError( |
80 SSLCertErrorHandler* handler, | 90 SSLCertErrorHandler* handler, |
81 bool overridable, | 91 bool overridable, |
82 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 92 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
83 OVERRIDE; | 93 OVERRIDE; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 private: | 162 private: |
153 // Temporary directory for GetDefaultDownloadDirectory. | 163 // Temporary directory for GetDefaultDownloadDirectory. |
154 ScopedTempDir download_dir_; | 164 ScopedTempDir download_dir_; |
155 | 165 |
156 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 166 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
157 }; | 167 }; |
158 | 168 |
159 } // namespace content | 169 } // namespace content |
160 | 170 |
161 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 171 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |