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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 class RenderProcessHost; | 63 class RenderProcessHost; |
64 class RenderViewHost; | 64 class RenderViewHost; |
65 class RenderViewHostDelegateView; | 65 class RenderViewHostDelegateView; |
66 class ResourceContext; | 66 class ResourceContext; |
67 class SiteInstance; | 67 class SiteInstance; |
68 class SpeechInputManagerDelegate; | 68 class SpeechInputManagerDelegate; |
69 class SpeechRecognitionManagerDelegate; | 69 class SpeechRecognitionManagerDelegate; |
70 class WebContents; | 70 class WebContents; |
71 class WebContentsView; | 71 class WebContentsView; |
72 class WebContentsViewDelegate; | 72 class WebContentsViewDelegate; |
| 73 class WebRTCInternalsInterface; |
73 class WebUIControllerFactory; | 74 class WebUIControllerFactory; |
74 struct MainFunctionParams; | 75 struct MainFunctionParams; |
75 struct ShowDesktopNotificationHostMsgParams; | 76 struct ShowDesktopNotificationHostMsgParams; |
76 | 77 |
77 // Embedder API (or SPI) for participating in browser logic, to be implemented | 78 // Embedder API (or SPI) for participating in browser logic, to be implemented |
78 // by the client of the content browser. See ChromeContentBrowserClient for the | 79 // by the client of the content browser. See ChromeContentBrowserClient for the |
79 // principal implementation. The methods are assumed to be called on the UI | 80 // principal implementation. The methods are assumed to be called on the UI |
80 // thread unless otherwise specified. Use this "escape hatch" sparingly, to | 81 // thread unless otherwise specified. Use this "escape hatch" sparingly, to |
81 // avoid the embedder interface ballooning and becoming very specific to Chrome. | 82 // avoid the embedder interface ballooning and becoming very specific to Chrome. |
82 // (Often, the call out to the client can happen in a different part of the code | 83 // (Often, the call out to the client can happen in a different part of the code |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 // Note that it's up to the embedder to verify that the data is | 324 // Note that it's up to the embedder to verify that the data is |
324 // well-formed. |cert_data| will be NULL if file_size is 0. | 325 // well-formed. |cert_data| will be NULL if file_size is 0. |
325 virtual void AddCertificate( | 326 virtual void AddCertificate( |
326 net::URLRequest* request, | 327 net::URLRequest* request, |
327 net::CertificateMimeType cert_type, | 328 net::CertificateMimeType cert_type, |
328 const void* cert_data, | 329 const void* cert_data, |
329 size_t cert_size, | 330 size_t cert_size, |
330 int render_process_id, | 331 int render_process_id, |
331 int render_view_id) {} | 332 int render_view_id) {} |
332 | 333 |
333 // Returns a a class to get notifications about media event. The embedder can | 334 // Returns a class to get notifications about media event. The embedder can |
334 // return NULL if they're not interested. | 335 // return NULL if they're not interested. |
335 virtual MediaObserver* GetMediaObserver(); | 336 virtual MediaObserver* GetMediaObserver(); |
336 | 337 |
| 338 // Returns a class to get WebRTC updates. The embedder can return NULL if they |
| 339 // are not interested. |
| 340 virtual WebRTCInternalsInterface* GetWebRTCInternalsInterface(); |
| 341 |
337 // Asks permission to show desktop notifications. | 342 // Asks permission to show desktop notifications. |
338 virtual void RequestDesktopNotificationPermission( | 343 virtual void RequestDesktopNotificationPermission( |
339 const GURL& source_origin, | 344 const GURL& source_origin, |
340 int callback_context, | 345 int callback_context, |
341 int render_process_id, | 346 int render_process_id, |
342 int render_view_id) {} | 347 int render_view_id) {} |
343 | 348 |
344 // Checks if the given page has permission to show desktop notifications. | 349 // Checks if the given page has permission to show desktop notifications. |
345 // This is called on the IO thread. | 350 // This is called on the IO thread. |
346 virtual WebKit::WebNotificationPresenter::Permission | 351 virtual WebKit::WebNotificationPresenter::Permission |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 // This is called on a worker thread. | 474 // This is called on a worker thread. |
470 virtual | 475 virtual |
471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 476 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
472 const GURL& url); | 477 const GURL& url); |
473 #endif | 478 #endif |
474 }; | 479 }; |
475 | 480 |
476 } // namespace content | 481 } // namespace content |
477 | 482 |
478 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 483 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |