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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 #endif | 330 #endif |
323 | 331 |
324 #if defined(USE_NSS) | 332 #if defined(USE_NSS) |
325 crypto::CryptoModuleBlockingPasswordDelegate* | 333 crypto::CryptoModuleBlockingPasswordDelegate* |
326 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 334 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
327 return NULL; | 335 return NULL; |
328 } | 336 } |
329 #endif | 337 #endif |
330 | 338 |
331 } // namespace content | 339 } // namespace content |
OLD | NEW |