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

Side by Side Diff: content/public/browser/content_browser_client.h

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
« no previous file with comments | « content/common/worker_messages.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 const std::vector<std::pair<int, int> >& render_views) = 0; 200 const std::vector<std::pair<int, int> >& render_views) = 0;
201 201
202 // Allow the embedder to control if access to file system by a shared worker 202 // Allow the embedder to control if access to file system by a shared worker
203 // is allowed. 203 // is allowed.
204 // This is called on the IO thread. 204 // This is called on the IO thread.
205 virtual bool AllowWorkerFileSystem( 205 virtual bool AllowWorkerFileSystem(
206 const GURL& url, 206 const GURL& url,
207 content::ResourceContext* context, 207 content::ResourceContext* context,
208 const std::vector<std::pair<int, int> >& render_views) = 0; 208 const std::vector<std::pair<int, int> >& render_views) = 0;
209 209
210 // Allow the embedder to control if access to IndexedDB by a shared worker
211 // is allowed.
212 // This is called on the IO thread.
213 virtual bool AllowWorkerIndexedDB(
214 const GURL& url,
215 const string16& name,
216 content::ResourceContext* context,
217 const std::vector<std::pair<int, int> >& render_views) = 0;
218
210 // Allows the embedder to override the request context based on the URL for 219 // Allows the embedder to override the request context based on the URL for
211 // certain operations, like cookie access. Returns NULL to indicate the 220 // certain operations, like cookie access. Returns NULL to indicate the
212 // regular request context should be used. 221 // regular request context should be used.
213 // This is called on the IO thread. 222 // This is called on the IO thread.
214 virtual net::URLRequestContext* OverrideRequestContextForURL( 223 virtual net::URLRequestContext* OverrideRequestContextForURL(
215 const GURL& url, content::ResourceContext* context) = 0; 224 const GURL& url, content::ResourceContext* context) = 0;
216 225
217 // Create and return a new quota permission context. 226 // Create and return a new quota permission context.
218 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; 227 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0;
219 228
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 // This is called on a worker thread. 389 // This is called on a worker thread.
381 virtual 390 virtual
382 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 391 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
383 const GURL& url) = 0; 392 const GURL& url) = 0;
384 #endif 393 #endif
385 }; 394 };
386 395
387 } // namespace content 396 } // namespace content
388 397
389 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 398 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/worker_messages.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698