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 #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 "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void MockContentBrowserClient::SiteInstanceDeleting( | 80 void MockContentBrowserClient::SiteInstanceDeleting( |
81 SiteInstance* site_instance) { | 81 SiteInstance* site_instance) { |
82 } | 82 } |
83 | 83 |
84 bool MockContentBrowserClient::ShouldSwapProcessesForNavigation( | 84 bool MockContentBrowserClient::ShouldSwapProcessesForNavigation( |
85 const GURL& current_url, | 85 const GURL& current_url, |
86 const GURL& new_url) { | 86 const GURL& new_url) { |
87 return false; | 87 return false; |
88 } | 88 } |
89 | 89 |
| 90 bool MockContentBrowserClient::ShouldSwapProcessesForRedirect( |
| 91 ResourceContext* resource_context, const GURL& current_url, |
| 92 const GURL& new_url) { |
| 93 return false; |
| 94 } |
| 95 |
90 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 96 std::string MockContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
91 const std::string& alias_name) { | 97 const std::string& alias_name) { |
92 return std::string(); | 98 return std::string(); |
93 } | 99 } |
94 | 100 |
95 void MockContentBrowserClient::AppendExtraCommandLineSwitches( | 101 void MockContentBrowserClient::AppendExtraCommandLineSwitches( |
96 CommandLine* command_line, int child_process_id) { | 102 CommandLine* command_line, int child_process_id) { |
97 } | 103 } |
98 | 104 |
99 std::string MockContentBrowserClient::GetApplicationLocale() { | 105 std::string MockContentBrowserClient::GetApplicationLocale() { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 #endif | 345 #endif |
340 | 346 |
341 #if defined(USE_NSS) | 347 #if defined(USE_NSS) |
342 crypto::CryptoModuleBlockingPasswordDelegate* | 348 crypto::CryptoModuleBlockingPasswordDelegate* |
343 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 349 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
344 return NULL; | 350 return NULL; |
345 } | 351 } |
346 #endif | 352 #endif |
347 | 353 |
348 } // namespace content | 354 } // namespace content |
OLD | NEW |