OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |