| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // Allow the embedder to control if the given cookie can be set. | 203 // Allow the embedder to control if the given cookie can be set. |
| 204 // This is called on the IO thread. | 204 // This is called on the IO thread. |
| 205 virtual bool AllowSetCookie(const GURL& url, | 205 virtual bool AllowSetCookie(const GURL& url, |
| 206 const GURL& first_party, | 206 const GURL& first_party, |
| 207 const std::string& cookie_line, | 207 const std::string& cookie_line, |
| 208 ResourceContext* context, | 208 ResourceContext* context, |
| 209 int render_process_id, | 209 int render_process_id, |
| 210 int render_view_id, | 210 int render_view_id, |
| 211 net::CookieOptions* options); | 211 net::CookieOptions* options); |
| 212 | 212 |
| 213 // Returns whether plug-ins should access locally stored data or whether all | |
| 214 // access should be blocked. The default is to allow local data access. | |
| 215 // This is called on the IO thread. | |
| 216 virtual bool AllowPluginLocalDataAccess( | |
| 217 const GURL& document_url, | |
| 218 const GURL& plugin_url, | |
| 219 content::ResourceContext* context); | |
| 220 | |
| 221 // Returns whether plug-ins should keep locally stored data for the session | |
| 222 // only. The default is to store local data permanently. | |
| 223 // This is called on the IO thread. | |
| 224 virtual bool AllowPluginLocalDataSessionOnly( | |
| 225 const GURL& url, | |
| 226 content::ResourceContext* context); | |
| 227 | |
| 228 // This is called on the IO thread. | 213 // This is called on the IO thread. |
| 229 virtual bool AllowSaveLocalState(ResourceContext* context); | 214 virtual bool AllowSaveLocalState(ResourceContext* context); |
| 230 | 215 |
| 231 // Allow the embedder to control if access to web database by a shared worker | 216 // Allow the embedder to control if access to web database by a shared worker |
| 232 // is allowed. |render_views| is a vector of pairs of | 217 // is allowed. |render_views| is a vector of pairs of |
| 233 // RenderProcessID/RenderViewID of RenderViews that are using this worker. | 218 // RenderProcessID/RenderViewID of RenderViews that are using this worker. |
| 234 // This is called on the IO thread. | 219 // This is called on the IO thread. |
| 235 virtual bool AllowWorkerDatabase( | 220 virtual bool AllowWorkerDatabase( |
| 236 const GURL& url, | 221 const GURL& url, |
| 237 const string16& name, | 222 const string16& name, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 // This is called on a worker thread. | 469 // This is called on a worker thread. |
| 485 virtual | 470 virtual |
| 486 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 487 const GURL& url); | 472 const GURL& url); |
| 488 #endif | 473 #endif |
| 489 }; | 474 }; |
| 490 | 475 |
| 491 } // namespace content | 476 } // namespace content |
| 492 | 477 |
| 493 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 478 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |