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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { | 80 std::string MockContentBrowserClient::GetAcceptLangs(const TabContents* tab) { |
81 return std::string(); | 81 return std::string(); |
82 } | 82 } |
83 | 83 |
84 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { | 84 SkBitmap* MockContentBrowserClient::GetDefaultFavicon() { |
85 static SkBitmap empty; | 85 static SkBitmap empty; |
86 return ∅ | 86 return ∅ |
87 } | 87 } |
88 | 88 |
89 bool MockContentBrowserClient::AllowAppCache( | 89 bool MockContentBrowserClient::AllowAppCache( |
90 const GURL& manifest_url, const content::ResourceContext& context) { | 90 const GURL& manifest_url, const GURL& first_party, |
| 91 const content::ResourceContext& context) { |
91 return true; | 92 return true; |
92 } | 93 } |
93 | 94 |
94 bool MockContentBrowserClient::AllowGetCookie( | 95 bool MockContentBrowserClient::AllowGetCookie( |
95 const GURL& url, | 96 const GURL& url, |
96 const GURL& first_party, | 97 const GURL& first_party, |
97 const net::CookieList& cookie_list, | 98 const net::CookieList& cookie_list, |
98 const content::ResourceContext& context, | 99 const content::ResourceContext& context, |
99 int render_process_id, | 100 int render_process_id, |
100 int render_view_id) { | 101 int render_view_id) { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 #endif | 277 #endif |
277 | 278 |
278 #if defined(USE_NSS) | 279 #if defined(USE_NSS) |
279 crypto::CryptoModuleBlockingPasswordDelegate* | 280 crypto::CryptoModuleBlockingPasswordDelegate* |
280 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 281 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
281 return NULL; | 282 return NULL; |
282 } | 283 } |
283 #endif | 284 #endif |
284 | 285 |
285 } // namespace content | 286 } // namespace content |
OLD | NEW |