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 20 matching lines...) Expand all Loading... |
31 RenderViewHost* render_view_host) OVERRIDE; | 31 RenderViewHost* render_view_host) OVERRIDE; |
32 virtual void RenderProcessHostCreated( | 32 virtual void RenderProcessHostCreated( |
33 RenderProcessHost* host) OVERRIDE; | 33 RenderProcessHost* host) OVERRIDE; |
34 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 34 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
35 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 35 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; |
36 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 36 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
37 const GURL& url) OVERRIDE; | 37 const GURL& url) OVERRIDE; |
38 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 38 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
39 const GURL& effective_url) OVERRIDE; | 39 const GURL& effective_url) OVERRIDE; |
40 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 40 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
| 41 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
41 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 42 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
42 const GURL& site_url) OVERRIDE; | 43 const GURL& site_url) OVERRIDE; |
43 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
44 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
45 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 46 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
46 const GURL& new_url) OVERRIDE; | 47 const GURL& new_url) OVERRIDE; |
47 virtual std::string GetCanonicalEncodingNameByAliasName( | 48 virtual std::string GetCanonicalEncodingNameByAliasName( |
48 const std::string& alias_name) OVERRIDE; | 49 const std::string& alias_name) OVERRIDE; |
49 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 50 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
50 int child_process_id) OVERRIDE; | 51 int child_process_id) OVERRIDE; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 private: | 162 private: |
162 // Temporary directory for GetDefaultDownloadDirectory. | 163 // Temporary directory for GetDefaultDownloadDirectory. |
163 ScopedTempDir download_dir_; | 164 ScopedTempDir download_dir_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 166 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace content | 169 } // namespace content |
169 | 170 |
170 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 171 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |