| 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 27 matching lines...) Expand all Loading... |
| 38 const GURL& effective_url) OVERRIDE; | 38 const GURL& effective_url) OVERRIDE; |
| 39 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 39 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
| 40 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 40 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
| 41 const GURL& site_url) OVERRIDE; | 41 const GURL& site_url) OVERRIDE; |
| 42 virtual bool ShouldTryToUseExistingProcessHost( | 42 virtual bool ShouldTryToUseExistingProcessHost( |
| 43 BrowserContext* browser_context, const GURL& url) OVERRIDE; | 43 BrowserContext* browser_context, const GURL& url) OVERRIDE; |
| 44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 44 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
| 45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 45 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
| 46 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 46 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| 47 const GURL& new_url) OVERRIDE; | 47 const GURL& new_url) OVERRIDE; |
| 48 virtual bool ShouldSwapProcessesForRedirect( |
| 49 ResourceContext* resource_context, |
| 50 const GURL& current_url, |
| 51 const GURL& new_url) OVERRIDE; |
| 48 virtual std::string GetCanonicalEncodingNameByAliasName( | 52 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 49 const std::string& alias_name) OVERRIDE; | 53 const std::string& alias_name) OVERRIDE; |
| 50 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 54 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 51 int child_process_id) OVERRIDE; | 55 int child_process_id) OVERRIDE; |
| 52 virtual std::string GetApplicationLocale() OVERRIDE; | 56 virtual std::string GetApplicationLocale() OVERRIDE; |
| 53 virtual std::string GetAcceptLangs(BrowserContext* context) OVERRIDE; | 57 virtual std::string GetAcceptLangs(BrowserContext* context) OVERRIDE; |
| 54 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 58 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
| 55 virtual bool AllowAppCache(const GURL& manifest_url, | 59 virtual bool AllowAppCache(const GURL& manifest_url, |
| 56 const GURL& first_party, | 60 const GURL& first_party, |
| 57 ResourceContext* context) OVERRIDE; | 61 ResourceContext* context) OVERRIDE; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 private: | 186 private: |
| 183 // Temporary directory for GetDefaultDownloadDirectory. | 187 // Temporary directory for GetDefaultDownloadDirectory. |
| 184 ScopedTempDir download_dir_; | 188 ScopedTempDir download_dir_; |
| 185 | 189 |
| 186 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 190 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
| 187 }; | 191 }; |
| 188 | 192 |
| 189 } // namespace content | 193 } // namespace content |
| 190 | 194 |
| 191 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 195 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |