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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { | 64 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { |
65 return std::string(); | 65 return std::string(); |
66 } | 66 } |
67 | 67 |
68 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { | 68 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { |
69 static SkBitmap empty; | 69 static SkBitmap empty; |
70 return ∅ | 70 return ∅ |
71 } | 71 } |
72 | 72 |
73 bool MockContentBrowserClient::AllowAppCache( | 73 bool MockContentBrowserClient::AllowAppCache( |
74 const GURL& manifest_url, const content::ResourceContext& context) { | 74 const GURL& manifest_url, const GURL& first_party, |
| 75 const content::ResourceContext& context) { |
75 return true; | 76 return true; |
76 } | 77 } |
77 | 78 |
78 bool MockContentBrowserClient::AllowGetCookie( | 79 bool MockContentBrowserClient::AllowGetCookie( |
79 const GURL& url, | 80 const GURL& url, |
80 const GURL& first_party, | 81 const GURL& first_party, |
81 const net::CookieList& cookie_list, | 82 const net::CookieList& cookie_list, |
82 const content::ResourceContext& context, | 83 const content::ResourceContext& context, |
83 int render_process_id, | 84 int render_process_id, |
84 int render_view_id) { | 85 int render_view_id) { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 #endif | 236 #endif |
236 | 237 |
237 #if defined(USE_NSS) | 238 #if defined(USE_NSS) |
238 crypto::CryptoModuleBlockingPasswordDelegate* | 239 crypto::CryptoModuleBlockingPasswordDelegate* |
239 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 240 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
240 return NULL; | 241 return NULL; |
241 } | 242 } |
242 #endif | 243 #endif |
243 | 244 |
244 } // namespace content | 245 } // namespace content |
OLD | NEW |