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 virtual bool AllowPermanentStorage( | |
michaeln
2011/08/02 19:47:41
I'm a little worried about naming, this usage of "
marja
2011/08/03 09:14:15
Done.
| |
152 const GURL& url, | |
153 const GURL& first_party, | |
154 const content::ResourceContext& context) = 0; | |
155 | |
151 // Allows the embedder to override the request context based on the URL for | 156 // Allows the embedder to override the request context based on the URL for |
152 // certain operations, like cookie access. Returns NULL to indicate the | 157 // certain operations, like cookie access. Returns NULL to indicate the |
153 // regular request context should be used. | 158 // regular request context should be used. |
154 // This is called on the IO thread. | 159 // This is called on the IO thread. |
155 virtual net::URLRequestContext* OverrideRequestContextForURL( | 160 virtual net::URLRequestContext* OverrideRequestContextForURL( |
156 const GURL& url, const content::ResourceContext& context) = 0; | 161 const GURL& url, const content::ResourceContext& context) = 0; |
157 | 162 |
158 // Create and return a new quota permission context. | 163 // Create and return a new quota permission context. |
159 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; | 164 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; |
160 | 165 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
276 // This is called on a worker thread. | 281 // This is called on a worker thread. |
277 virtual | 282 virtual |
278 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 283 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
279 const GURL& url) = 0; | 284 const GURL& url) = 0; |
280 #endif | 285 #endif |
281 }; | 286 }; |
282 | 287 |
283 } // namespace content | 288 } // namespace content |
284 | 289 |
285 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 290 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |