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

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

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Streamlining: Moving ResourceContext& from DOMStorageContext to DOMMessageFilter. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const std::string& cookie_line, 141 const std::string& cookie_line,
142 const content::ResourceContext& context, 142 const content::ResourceContext& context,
143 int render_process_id, 143 int render_process_id,
144 int render_view_id, 144 int render_view_id,
145 net::CookieOptions* options) = 0; 145 net::CookieOptions* options) = 0;
146 146
147 // This is called on the IO thread. 147 // This is called on the IO thread.
148 virtual bool AllowSaveLocalState( 148 virtual bool AllowSaveLocalState(
149 const content::ResourceContext& context) = 0; 149 const content::ResourceContext& context) = 0;
150 150
151 // Allow the embedder to restrict the given url to use only session-only
152 // storage.
153 virtual bool EnforceSessionOnlyStorage(
154 const GURL& url,
155 const GURL& first_party,
156 const content::ResourceContext& context) = 0;
157
151 // Allows the embedder to override the request context based on the URL for 158 // Allows the embedder to override the request context based on the URL for
152 // certain operations, like cookie access. Returns NULL to indicate the 159 // certain operations, like cookie access. Returns NULL to indicate the
153 // regular request context should be used. 160 // regular request context should be used.
154 // This is called on the IO thread. 161 // This is called on the IO thread.
155 virtual net::URLRequestContext* OverrideRequestContextForURL( 162 virtual net::URLRequestContext* OverrideRequestContextForURL(
156 const GURL& url, const content::ResourceContext& context) = 0; 163 const GURL& url, const content::ResourceContext& context) = 0;
157 164
158 // Create and return a new quota permission context. 165 // Create and return a new quota permission context.
159 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; 166 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0;
160 167
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 // This is called on a worker thread. 283 // This is called on a worker thread.
277 virtual 284 virtual
278 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 285 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
279 const GURL& url) = 0; 286 const GURL& url) = 0;
280 #endif 287 #endif
281 }; 288 };
282 289
283 } // namespace content 290 } // namespace content
284 291
285 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 292 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/in_process_webkit/dom_storage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698