| 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 19 matching lines...) Expand all Loading... |
| 30 virtual void BrowserRenderProcessHostCreated( | 30 virtual void BrowserRenderProcessHostCreated( |
| 31 BrowserRenderProcessHost* host) OVERRIDE; | 31 BrowserRenderProcessHost* host) OVERRIDE; |
| 32 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 32 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 33 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | 33 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; |
| 34 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; | 34 virtual WebUIFactory* GetWebUIFactory() OVERRIDE; |
| 35 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 35 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 36 const GURL& url) OVERRIDE; | 36 const GURL& url) OVERRIDE; |
| 37 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 37 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
| 38 const GURL& effective_url) OVERRIDE; | 38 const GURL& effective_url) OVERRIDE; |
| 39 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 39 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
| 40 virtual bool ShouldRunInPrivilegedProcess(const GURL& url) OVERRIDE; |
| 41 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
| 42 const GURL& site_url) OVERRIDE; |
| 40 virtual std::string GetCanonicalEncodingNameByAliasName( | 43 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 41 const std::string& alias_name) OVERRIDE; | 44 const std::string& alias_name) OVERRIDE; |
| 42 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 45 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 43 int child_process_id) OVERRIDE; | 46 int child_process_id) OVERRIDE; |
| 44 virtual std::string GetApplicationLocale() OVERRIDE; | 47 virtual std::string GetApplicationLocale() OVERRIDE; |
| 45 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; | 48 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; |
| 46 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 49 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
| 47 virtual bool AllowAppCache(const GURL& manifest_url, | 50 virtual bool AllowAppCache(const GURL& manifest_url, |
| 48 const GURL& first_party, | 51 const GURL& first_party, |
| 49 const content::ResourceContext& context) OVERRIDE; | 52 const content::ResourceContext& context) OVERRIDE; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 private: | 147 private: |
| 145 // Temporary directory for GetDefaultDownloadDirectory. | 148 // Temporary directory for GetDefaultDownloadDirectory. |
| 146 ScopedTempDir download_dir_; | 149 ScopedTempDir download_dir_; |
| 147 | 150 |
| 148 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 151 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 } // namespace content | 154 } // namespace content |
| 152 | 155 |
| 153 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 156 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |