| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 content::BrowserContext* browser_context, | 280 content::BrowserContext* browser_context, |
| 281 const GURL& site, | 281 const GURL& site, |
| 282 bool can_be_default, | 282 bool can_be_default, |
| 283 std::string* partition_domain, | 283 std::string* partition_domain, |
| 284 std::string* partition_name, | 284 std::string* partition_name, |
| 285 bool* in_memory); | 285 bool* in_memory); |
| 286 | 286 |
| 287 // Create and return a new quota permission context. | 287 // Create and return a new quota permission context. |
| 288 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 288 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 289 | 289 |
| 290 // Open the given file in the desktop's default manner. | |
| 291 virtual void OpenItem(const FilePath& path) {} | |
| 292 | |
| 293 // Show the given file in a file manager. If possible, select the file. | |
| 294 virtual void ShowItemInFolder(const FilePath& path) {} | |
| 295 | |
| 296 // Informs the embedder that a certificate error has occured. If | 290 // Informs the embedder that a certificate error has occured. If |
| 297 // |overridable| is true and if |strict_enforcement| is false, the user | 291 // |overridable| is true and if |strict_enforcement| is false, the user |
| 298 // can ignore the error and continue. The embedder can call the callback | 292 // can ignore the error and continue. The embedder can call the callback |
| 299 // asynchronously. If |cancel_request| is set to true, the request will be | 293 // asynchronously. If |cancel_request| is set to true, the request will be |
| 300 // cancelled immediately and the callback won't be run. | 294 // cancelled immediately and the callback won't be run. |
| 301 virtual void AllowCertificateError( | 295 virtual void AllowCertificateError( |
| 302 int render_process_id, | 296 int render_process_id, |
| 303 int render_view_id, | 297 int render_view_id, |
| 304 int cert_error, | 298 int cert_error, |
| 305 const net::SSLInfo& ssl_info, | 299 const net::SSLInfo& ssl_info, |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // This is called on a worker thread. | 463 // This is called on a worker thread. |
| 470 virtual | 464 virtual |
| 471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 465 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 472 const GURL& url); | 466 const GURL& url); |
| 473 #endif | 467 #endif |
| 474 }; | 468 }; |
| 475 | 469 |
| 476 } // namespace content | 470 } // namespace content |
| 477 | 471 |
| 478 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 472 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |