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 #include "content/browser/mock_content_browser_client.h" | 5 #include "content/browser/mock_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "content/browser/webui/empty_web_ui_factory.h" | 10 #include "content/browser/webui/empty_web_ui_factory.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { | 75 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { |
76 return std::string(); | 76 return std::string(); |
77 } | 77 } |
78 | 78 |
79 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { | 79 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { |
80 static SkBitmap empty; | 80 static SkBitmap empty; |
81 return ∅ | 81 return ∅ |
82 } | 82 } |
83 | 83 |
84 bool MockContentBrowserClient::AllowAppCache( | 84 bool MockContentBrowserClient::AllowAppCache( |
85 const GURL& manifest_url, const content::ResourceContext& context) { | 85 const GURL& manifest_url, const GURL& first_party, |
| 86 const content::ResourceContext& context) { |
86 return true; | 87 return true; |
87 } | 88 } |
88 | 89 |
89 bool MockContentBrowserClient::AllowGetCookie( | 90 bool MockContentBrowserClient::AllowGetCookie( |
90 const GURL& url, | 91 const GURL& url, |
91 const GURL& first_party, | 92 const GURL& first_party, |
92 const net::CookieList& cookie_list, | 93 const net::CookieList& cookie_list, |
93 const content::ResourceContext& context, | 94 const content::ResourceContext& context, |
94 int render_process_id, | 95 int render_process_id, |
95 int render_view_id) { | 96 int render_view_id) { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 #endif | 272 #endif |
272 | 273 |
273 #if defined(USE_NSS) | 274 #if defined(USE_NSS) |
274 crypto::CryptoModuleBlockingPasswordDelegate* | 275 crypto::CryptoModuleBlockingPasswordDelegate* |
275 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 276 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
276 return NULL; | 277 return NULL; |
277 } | 278 } |
278 #endif | 279 #endif |
279 | 280 |
280 } // namespace content | 281 } // namespace content |
OLD | NEW |