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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // Note that it's up to the embedder to verify that the data is | 398 // Note that it's up to the embedder to verify that the data is |
399 // well-formed. |cert_data| will be NULL if file_size is 0. | 399 // well-formed. |cert_data| will be NULL if file_size is 0. |
400 virtual void AddCertificate( | 400 virtual void AddCertificate( |
401 net::URLRequest* request, | 401 net::URLRequest* request, |
402 net::CertificateMimeType cert_type, | 402 net::CertificateMimeType cert_type, |
403 const void* cert_data, | 403 const void* cert_data, |
404 size_t cert_size, | 404 size_t cert_size, |
405 int render_process_id, | 405 int render_process_id, |
406 int render_view_id) {} | 406 int render_view_id) {} |
407 | 407 |
| 408 // XXX comment |
| 409 virtual void Keygen( |
| 410 ResourceContext* context, |
| 411 int key_size_in_bits, |
| 412 const std::string& challenge, |
| 413 const GURL& url, |
| 414 const base::Callback<void(const std::string*)>& callback) {} |
| 415 |
408 // Returns a class to get notifications about media event. The embedder can | 416 // Returns a class to get notifications about media event. The embedder can |
409 // return NULL if they're not interested. | 417 // return NULL if they're not interested. |
410 virtual MediaObserver* GetMediaObserver(); | 418 virtual MediaObserver* GetMediaObserver(); |
411 | 419 |
412 // Asks permission to show desktop notifications. | 420 // Asks permission to show desktop notifications. |
413 virtual void RequestDesktopNotificationPermission( | 421 virtual void RequestDesktopNotificationPermission( |
414 const GURL& source_origin, | 422 const GURL& source_origin, |
415 int callback_context, | 423 int callback_context, |
416 int render_process_id, | 424 int render_process_id, |
417 int render_view_id) {} | 425 int render_view_id) {} |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 #if defined(OS_WIN) | 577 #if defined(OS_WIN) |
570 // Returns the name of the dll that contains cursors and other resources. | 578 // Returns the name of the dll that contains cursors and other resources. |
571 virtual const wchar_t* GetResourceDllName(); | 579 virtual const wchar_t* GetResourceDllName(); |
572 | 580 |
573 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 581 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
574 // is launched. It gives the embedder a chance to add loosen the sandbox | 582 // is launched. It gives the embedder a chance to add loosen the sandbox |
575 // policy. | 583 // policy. |
576 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 584 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
577 bool* success) {} | 585 bool* success) {} |
578 #endif | 586 #endif |
579 | |
580 #if defined(USE_NSS) | |
581 // Return a delegate to authenticate and unlock |module|. | |
582 // This is called on a worker thread. | |
583 virtual | |
584 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | |
585 const GURL& url); | |
586 #endif | |
587 }; | 587 }; |
588 | 588 |
589 } // namespace content | 589 } // namespace content |
590 | 590 |
591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |