Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 11876007: Connecting webrtc-internals WebUI frontend with the backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@main
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 WebRTCInternals;
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // Note that it's up to the embedder to verify that the data is 318 // Note that it's up to the embedder to verify that the data is
318 // well-formed. |cert_data| will be NULL if file_size is 0. 319 // well-formed. |cert_data| will be NULL if file_size is 0.
319 virtual void AddCertificate( 320 virtual void AddCertificate(
320 net::URLRequest* request, 321 net::URLRequest* request,
321 net::CertificateMimeType cert_type, 322 net::CertificateMimeType cert_type,
322 const void* cert_data, 323 const void* cert_data,
323 size_t cert_size, 324 size_t cert_size,
324 int render_process_id, 325 int render_process_id,
325 int render_view_id) {} 326 int render_view_id) {}
326 327
327 // Returns a a class to get notifications about media event. The embedder can 328 // Returns a class to get notifications about media event. The embedder can
328 // return NULL if they're not interested. 329 // return NULL if they're not interested.
329 virtual MediaObserver* GetMediaObserver(); 330 virtual MediaObserver* GetMediaObserver();
330 331
332 // Returns a class to get WebRTC updates. The embedder can return NULL if they
333 // are not interested.
334 virtual WebRTCInternals* GetWebRTCInternals();
335
331 // Asks permission to show desktop notifications. 336 // Asks permission to show desktop notifications.
332 virtual void RequestDesktopNotificationPermission( 337 virtual void RequestDesktopNotificationPermission(
333 const GURL& source_origin, 338 const GURL& source_origin,
334 int callback_context, 339 int callback_context,
335 int render_process_id, 340 int render_process_id,
336 int render_view_id) {} 341 int render_view_id) {}
337 342
338 // Checks if the given page has permission to show desktop notifications. 343 // Checks if the given page has permission to show desktop notifications.
339 // This is called on the IO thread. 344 // This is called on the IO thread.
340 virtual WebKit::WebNotificationPresenter::Permission 345 virtual WebKit::WebNotificationPresenter::Permission
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 // This is called on a worker thread. 468 // This is called on a worker thread.
464 virtual 469 virtual
465 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 470 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
466 const GURL& url); 471 const GURL& url);
467 #endif 472 #endif
468 }; 473 };
469 474
470 } // namespace content 475 } // namespace content
471 476
472 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 477 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698