| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return true; | 147 return true; |
| 148 } | 148 } |
| 149 | 149 |
| 150 bool MockContentBrowserClient::AllowWorkerFileSystem( | 150 bool MockContentBrowserClient::AllowWorkerFileSystem( |
| 151 const GURL& url, | 151 const GURL& url, |
| 152 content::ResourceContext* context, | 152 content::ResourceContext* context, |
| 153 const std::vector<std::pair<int, int> >& render_views) { | 153 const std::vector<std::pair<int, int> >& render_views) { |
| 154 return true; | 154 return true; |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool MockContentBrowserClient::AllowWorkerIndexedDB( |
| 158 const GURL& url, |
| 159 const string16& name, |
| 160 content::ResourceContext* context, |
| 161 const std::vector<std::pair<int, int> >& render_views) { |
| 162 return true; |
| 163 } |
| 164 |
| 157 QuotaPermissionContext* | 165 QuotaPermissionContext* |
| 158 MockContentBrowserClient::CreateQuotaPermissionContext() { | 166 MockContentBrowserClient::CreateQuotaPermissionContext() { |
| 159 return NULL; | 167 return NULL; |
| 160 } | 168 } |
| 161 | 169 |
| 162 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL( | 170 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL( |
| 163 const GURL& url, content::ResourceContext* context) { | 171 const GURL& url, content::ResourceContext* context) { |
| 164 return NULL; | 172 return NULL; |
| 165 } | 173 } |
| 166 | 174 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 #endif | 326 #endif |
| 319 | 327 |
| 320 #if defined(USE_NSS) | 328 #if defined(USE_NSS) |
| 321 crypto::CryptoModuleBlockingPasswordDelegate* | 329 crypto::CryptoModuleBlockingPasswordDelegate* |
| 322 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 330 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 323 return NULL; | 331 return NULL; |
| 324 } | 332 } |
| 325 #endif | 333 #endif |
| 326 | 334 |
| 327 } // namespace content | 335 } // namespace content |
| OLD | NEW |