| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Allow the embedder to control if the given cookie can be set. | 125 // Allow the embedder to control if the given cookie can be set. |
| 126 // This is called on the IO thread. | 126 // This is called on the IO thread. |
| 127 virtual bool AllowSetCookie(const GURL& url, | 127 virtual bool AllowSetCookie(const GURL& url, |
| 128 const GURL& first_party, | 128 const GURL& first_party, |
| 129 const std::string& cookie_line, | 129 const std::string& cookie_line, |
| 130 const content::ResourceContext& context, | 130 const content::ResourceContext& context, |
| 131 int render_process_id, | 131 int render_process_id, |
| 132 int render_view_id, | 132 int render_view_id, |
| 133 net::CookieOptions* options) = 0; | 133 net::CookieOptions* options) = 0; |
| 134 | 134 |
| 135 // This is called on the IO thread. |
| 136 virtual bool AllowSaveLocalState( |
| 137 const content::ResourceContext& context) = 0; |
| 138 |
| 135 // Create and return a new quota permission context. | 139 // Create and return a new quota permission context. |
| 136 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; | 140 virtual QuotaPermissionContext* CreateQuotaPermissionContext() = 0; |
| 137 | 141 |
| 138 // Shows the given path using the OS file manager. | 142 // Shows the given path using the OS file manager. |
| 139 virtual void RevealFolderInOS(const FilePath& path) = 0; | 143 virtual void RevealFolderInOS(const FilePath& path) = 0; |
| 140 | 144 |
| 141 // Informs the embedder that a certificate error has occured. If overridable | 145 // Informs the embedder that a certificate error has occured. If overridable |
| 142 // is true, the user can ignore the error and continue. If it's false, then | 146 // is true, the user can ignore the error and continue. If it's false, then |
| 143 // the certificate error is severe and the user isn't allowed to proceed. The | 147 // the certificate error is severe and the user isn't allowed to proceed. The |
| 144 // embedder can call the callback asynchronously. | 148 // embedder can call the callback asynchronously. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // This is called on a worker thread. | 225 // This is called on a worker thread. |
| 222 virtual | 226 virtual |
| 223 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 227 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 224 const GURL& url) = 0; | 228 const GURL& url) = 0; |
| 225 #endif | 229 #endif |
| 226 }; | 230 }; |
| 227 | 231 |
| 228 } // namespace content | 232 } // namespace content |
| 229 | 233 |
| 230 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 234 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |