OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Allow the embedder to control if the given cookie can be set. | 200 // Allow the embedder to control if the given cookie can be set. |
201 // This is called on the IO thread. | 201 // This is called on the IO thread. |
202 virtual bool AllowSetCookie(const GURL& url, | 202 virtual bool AllowSetCookie(const GURL& url, |
203 const GURL& first_party, | 203 const GURL& first_party, |
204 const std::string& cookie_line, | 204 const std::string& cookie_line, |
205 ResourceContext* context, | 205 ResourceContext* context, |
206 int render_process_id, | 206 int render_process_id, |
207 int render_view_id, | 207 int render_view_id, |
208 net::CookieOptions* options); | 208 net::CookieOptions* options); |
209 | 209 |
| 210 // Returns whether plug-ins should access locally stored data or whether all |
| 211 // access should be blocked. The default is to allow local data access. |
| 212 // This is called on the IO thread. |
| 213 virtual bool AllowPluginLocalDataAccess( |
| 214 const GURL& document_url, |
| 215 const GURL& plugin_url, |
| 216 content::ResourceContext* context); |
| 217 |
| 218 // Returns whether plug-ins should keep locally stored data for the session |
| 219 // only. The default is to store local data permanently. |
| 220 // This is called on the IO thread. |
| 221 virtual bool AllowPluginLocalDataSessionOnly( |
| 222 const GURL& url, |
| 223 content::ResourceContext* context); |
| 224 |
210 // This is called on the IO thread. | 225 // This is called on the IO thread. |
211 virtual bool AllowSaveLocalState(ResourceContext* context); | 226 virtual bool AllowSaveLocalState(ResourceContext* context); |
212 | 227 |
213 // Allow the embedder to control if access to web database by a shared worker | 228 // Allow the embedder to control if access to web database by a shared worker |
214 // is allowed. |render_views| is a vector of pairs of | 229 // is allowed. |render_views| is a vector of pairs of |
215 // RenderProcessID/RenderViewID of RenderViews that are using this worker. | 230 // RenderProcessID/RenderViewID of RenderViews that are using this worker. |
216 // This is called on the IO thread. | 231 // This is called on the IO thread. |
217 virtual bool AllowWorkerDatabase( | 232 virtual bool AllowWorkerDatabase( |
218 const GURL& url, | 233 const GURL& url, |
219 const string16& name, | 234 const string16& name, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 // This is called on a worker thread. | 446 // This is called on a worker thread. |
432 virtual | 447 virtual |
433 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 448 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
434 const GURL& url); | 449 const GURL& url); |
435 #endif | 450 #endif |
436 }; | 451 }; |
437 | 452 |
438 } // namespace content | 453 } // namespace content |
439 | 454 |
440 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 455 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |