OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 11 matching lines...) Expand all Loading... |
22 virtual ~MockContentBrowserClient(); | 22 virtual ~MockContentBrowserClient(); |
23 | 23 |
24 virtual BrowserMainParts* CreateBrowserMainParts( | 24 virtual BrowserMainParts* CreateBrowserMainParts( |
25 const content::MainFunctionParams& parameters) OVERRIDE; | 25 const content::MainFunctionParams& parameters) OVERRIDE; |
26 virtual WebContentsView* CreateWebContentsView( | 26 virtual WebContentsView* CreateWebContentsView( |
27 WebContents* web_contents) OVERRIDE; | 27 WebContents* web_contents) OVERRIDE; |
28 virtual void RenderViewHostCreated( | 28 virtual void RenderViewHostCreated( |
29 RenderViewHost* render_view_host) OVERRIDE; | 29 RenderViewHost* render_view_host) OVERRIDE; |
30 virtual void RenderProcessHostCreated( | 30 virtual void RenderProcessHostCreated( |
31 RenderProcessHost* host) OVERRIDE; | 31 RenderProcessHost* host) OVERRIDE; |
32 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 32 virtual WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE; |
33 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 33 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
34 const GURL& url) OVERRIDE; | 34 const GURL& url) OVERRIDE; |
35 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 35 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
36 const GURL& effective_url) OVERRIDE; | 36 const GURL& effective_url) OVERRIDE; |
37 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 37 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
38 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 38 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
39 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 39 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
40 const GURL& site_url) OVERRIDE; | 40 const GURL& site_url) OVERRIDE; |
41 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 41 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
42 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 42 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 private: | 159 private: |
160 // Temporary directory for GetDefaultDownloadDirectory. | 160 // Temporary directory for GetDefaultDownloadDirectory. |
161 ScopedTempDir download_dir_; | 161 ScopedTempDir download_dir_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 163 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 168 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |