| 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 "content/browser/webui/empty_web_ui_factory.h" | 9 #include "content/browser/webui/empty_web_ui_factory.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const GURL& url, | 87 const GURL& url, |
| 88 const GURL& first_party, | 88 const GURL& first_party, |
| 89 const std::string& cookie_line, | 89 const std::string& cookie_line, |
| 90 const content::ResourceContext& context, | 90 const content::ResourceContext& context, |
| 91 int render_process_id, | 91 int render_process_id, |
| 92 int render_view_id, | 92 int render_view_id, |
| 93 net::CookieOptions* options) { | 93 net::CookieOptions* options) { |
| 94 return true; | 94 return true; |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool MockContentBrowserClient::AllowSaveLocalState( |
| 98 const content::ResourceContext& context) { |
| 99 return true; |
| 100 } |
| 101 |
| 97 QuotaPermissionContext* | 102 QuotaPermissionContext* |
| 98 MockContentBrowserClient::CreateQuotaPermissionContext() { | 103 MockContentBrowserClient::CreateQuotaPermissionContext() { |
| 99 return NULL; | 104 return NULL; |
| 100 } | 105 } |
| 101 | 106 |
| 102 void MockContentBrowserClient::RevealFolderInOS(const FilePath& path) { | 107 void MockContentBrowserClient::RevealFolderInOS(const FilePath& path) { |
| 103 } | 108 } |
| 104 | 109 |
| 105 void MockContentBrowserClient::AllowCertificateError( | 110 void MockContentBrowserClient::AllowCertificateError( |
| 106 SSLCertErrorHandler* handler, | 111 SSLCertErrorHandler* handler, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 #endif | 182 #endif |
| 178 | 183 |
| 179 #if defined(USE_NSS) | 184 #if defined(USE_NSS) |
| 180 crypto::CryptoModuleBlockingPasswordDelegate* | 185 crypto::CryptoModuleBlockingPasswordDelegate* |
| 181 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 186 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 182 return NULL; | 187 return NULL; |
| 183 } | 188 } |
| 184 #endif | 189 #endif |
| 185 | 190 |
| 186 } // namespace content | 191 } // namespace content |
| OLD | NEW |