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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 net::CookieOptions* options) { | 131 net::CookieOptions* options) { |
132 return true; | 132 return true; |
133 } | 133 } |
134 | 134 |
135 bool MockContentBrowserClient::AllowSaveLocalState( | 135 bool MockContentBrowserClient::AllowSaveLocalState( |
136 const content::ResourceContext& context) { | 136 const content::ResourceContext& context) { |
137 return true; | 137 return true; |
138 } | 138 } |
139 | 139 |
140 bool MockContentBrowserClient::AllowWorkerDatabase( | 140 bool MockContentBrowserClient::AllowWorkerDatabase( |
141 int worker_route_id, | |
142 const GURL& url, | 141 const GURL& url, |
143 const string16& name, | 142 const string16& name, |
144 const string16& display_name, | 143 const string16& display_name, |
145 unsigned long estimated_size, | 144 unsigned long estimated_size, |
146 WorkerProcessHost* worker_process_host) { | 145 const content::ResourceContext& context, |
| 146 const std::vector<std::pair<int, int> >& render_views) { |
147 return true; | 147 return true; |
148 } | 148 } |
149 | 149 |
150 bool MockContentBrowserClient::AllowWorkerFileSystem( | 150 bool MockContentBrowserClient::AllowWorkerFileSystem( |
151 int worker_route_id, | |
152 const GURL& url, | 151 const GURL& url, |
153 WorkerProcessHost* worker_process_host) { | 152 const content::ResourceContext& context, |
| 153 const std::vector<std::pair<int, int> >& render_views) { |
154 return true; | 154 return true; |
155 } | 155 } |
156 | 156 |
157 QuotaPermissionContext* | 157 QuotaPermissionContext* |
158 MockContentBrowserClient::CreateQuotaPermissionContext() { | 158 MockContentBrowserClient::CreateQuotaPermissionContext() { |
159 return NULL; | 159 return NULL; |
160 } | 160 } |
161 | 161 |
162 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL( | 162 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL( |
163 const GURL& url, const content::ResourceContext& context) { | 163 const GURL& url, const content::ResourceContext& context) { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 #endif | 306 #endif |
307 | 307 |
308 #if defined(USE_NSS) | 308 #if defined(USE_NSS) |
309 crypto::CryptoModuleBlockingPasswordDelegate* | 309 crypto::CryptoModuleBlockingPasswordDelegate* |
310 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 310 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
311 return NULL; | 311 return NULL; |
312 } | 312 } |
313 #endif | 313 #endif |
314 | 314 |
315 } // namespace content | 315 } // namespace content |
OLD | NEW |