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

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: sync to ToT and fix comment 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/worker_host/worker_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698