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 25 matching lines...) Expand all Loading... |
36 struct WebPreferences; | 36 struct WebPreferences; |
37 | 37 |
38 namespace WebKit { | 38 namespace WebKit { |
39 struct WebWindowFeatures; | 39 struct WebWindowFeatures; |
40 } | 40 } |
41 | 41 |
42 namespace base { | 42 namespace base { |
43 class DictionaryValue; | 43 class DictionaryValue; |
44 class FilePath; | 44 class FilePath; |
45 } | 45 } |
46 namespace crypto { | |
47 class CryptoModuleBlockingPasswordDelegate; | |
48 } | |
49 | 46 |
50 namespace gfx { | 47 namespace gfx { |
51 class ImageSkia; | 48 class ImageSkia; |
52 } | 49 } |
53 | 50 |
54 namespace net { | 51 namespace net { |
55 class CookieOptions; | 52 class CookieOptions; |
56 class HttpNetworkSession; | 53 class HttpNetworkSession; |
57 class NetLog; | 54 class NetLog; |
58 class SSLCertRequestInfo; | 55 class SSLCertRequestInfo; |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // Note that it's up to the embedder to verify that the data is | 406 // Note that it's up to the embedder to verify that the data is |
410 // well-formed. |cert_data| will be NULL if file_size is 0. | 407 // well-formed. |cert_data| will be NULL if file_size is 0. |
411 virtual void AddCertificate( | 408 virtual void AddCertificate( |
412 net::URLRequest* request, | 409 net::URLRequest* request, |
413 net::CertificateMimeType cert_type, | 410 net::CertificateMimeType cert_type, |
414 const void* cert_data, | 411 const void* cert_data, |
415 size_t cert_size, | 412 size_t cert_size, |
416 int render_process_id, | 413 int render_process_id, |
417 int render_view_id) {} | 414 int render_view_id) {} |
418 | 415 |
| 416 // Generate keypair. The |callback| will be called with the base64 encoded |
| 417 // signedPublicKeyAndChallenge DER data, or in the case of error NULL or empty |
| 418 // string. |
| 419 virtual void Keygen( |
| 420 ResourceContext* context, |
| 421 int key_size_in_bits, |
| 422 const std::string& challenge, |
| 423 const GURL& url, |
| 424 const base::Callback<void(const std::string*)>& callback) {} |
| 425 |
419 // Returns a class to get notifications about media event. The embedder can | 426 // Returns a class to get notifications about media event. The embedder can |
420 // return NULL if they're not interested. | 427 // return NULL if they're not interested. |
421 virtual MediaObserver* GetMediaObserver(); | 428 virtual MediaObserver* GetMediaObserver(); |
422 | 429 |
423 // Asks permission to show desktop notifications. | 430 // Asks permission to show desktop notifications. |
424 virtual void RequestDesktopNotificationPermission( | 431 virtual void RequestDesktopNotificationPermission( |
425 const GURL& source_origin, | 432 const GURL& source_origin, |
426 int callback_context, | 433 int callback_context, |
427 int render_process_id, | 434 int render_process_id, |
428 int render_view_id) {} | 435 int render_view_id) {} |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 #if defined(OS_WIN) | 586 #if defined(OS_WIN) |
580 // Returns the name of the dll that contains cursors and other resources. | 587 // Returns the name of the dll that contains cursors and other resources. |
581 virtual const wchar_t* GetResourceDllName(); | 588 virtual const wchar_t* GetResourceDllName(); |
582 | 589 |
583 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 590 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
584 // is launched. It gives the embedder a chance to add loosen the sandbox | 591 // is launched. It gives the embedder a chance to add loosen the sandbox |
585 // policy. | 592 // policy. |
586 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 593 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
587 bool* success) {} | 594 bool* success) {} |
588 #endif | 595 #endif |
589 | |
590 #if defined(USE_NSS) | |
591 // Return a delegate to authenticate and unlock |module|. | |
592 // This is called on a worker thread. | |
593 virtual | |
594 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | |
595 const GURL& url); | |
596 #endif | |
597 }; | 596 }; |
598 | 597 |
599 } // namespace content | 598 } // namespace content |
600 | 599 |
601 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 600 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |