Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: content/browser/mock_content_browser_client.cc

Issue 9557009: IndexedDB: chrome-side changes for permission check from shared worker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move test to separate CL Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698