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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 42 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
43 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 43 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
44 const GURL& site_url) OVERRIDE; | 44 const GURL& site_url) OVERRIDE; |
45 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 45 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
46 const GURL& new_url) OVERRIDE; | 46 const GURL& new_url) OVERRIDE; |
47 virtual std::string GetCanonicalEncodingNameByAliasName( | 47 virtual std::string GetCanonicalEncodingNameByAliasName( |
48 const std::string& alias_name) OVERRIDE; | 48 const std::string& alias_name) OVERRIDE; |
49 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 49 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
50 int child_process_id) OVERRIDE; | 50 int child_process_id) OVERRIDE; |
51 virtual std::string GetApplicationLocale() OVERRIDE; | 51 virtual std::string GetApplicationLocale() OVERRIDE; |
52 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; | 52 virtual std::string GetAcceptLangs( |
| 53 const content::BrowserContext* context) OVERRIDE; |
53 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 54 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
54 virtual bool AllowAppCache(const GURL& manifest_url, | 55 virtual bool AllowAppCache(const GURL& manifest_url, |
55 const GURL& first_party, | 56 const GURL& first_party, |
56 const content::ResourceContext& context) OVERRIDE; | 57 const content::ResourceContext& context) OVERRIDE; |
57 virtual bool AllowGetCookie(const GURL& url, | 58 virtual bool AllowGetCookie(const GURL& url, |
58 const GURL& first_party, | 59 const GURL& first_party, |
59 const net::CookieList& cookie_list, | 60 const net::CookieList& cookie_list, |
60 const content::ResourceContext& context, | 61 const content::ResourceContext& context, |
61 int render_process_id, | 62 int render_process_id, |
62 int render_view_id) OVERRIDE; | 63 int render_view_id) OVERRIDE; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 private: | 151 private: |
151 // Temporary directory for GetDefaultDownloadDirectory. | 152 // Temporary directory for GetDefaultDownloadDirectory. |
152 ScopedTempDir download_dir_; | 153 ScopedTempDir download_dir_; |
153 | 154 |
154 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); | 155 DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient); |
155 }; | 156 }; |
156 | 157 |
157 } // namespace content | 158 } // namespace content |
158 | 159 |
159 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ | 160 #endif // CONTENT_BROWSER_MOCK_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |