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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 2823693002: Migrate RenderThreadImpl to use ConnectionFilter instead of the ChildThread's InterfaceRegistry to … (Closed)
Patch Set: . Created 3 years, 8 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 | « components/web_cache/renderer/web_cache_impl.cc ('k') | content/renderer/render_thread_impl.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_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 namespace gfx { 60 namespace gfx {
61 class ICCProfile; 61 class ICCProfile;
62 } 62 }
63 63
64 namespace media { 64 namespace media {
65 class KeySystemProperties; 65 class KeySystemProperties;
66 } 66 }
67 67
68 namespace service_manager {
69 class InterfaceRegistry;
70 }
71
72 namespace content { 68 namespace content {
73 class BrowserPluginDelegate; 69 class BrowserPluginDelegate;
74 class MediaStreamRendererFactory; 70 class MediaStreamRendererFactory;
75 class RenderFrame; 71 class RenderFrame;
76 class RenderView; 72 class RenderView;
77 73
78 // Embedder API for participating in renderer logic. 74 // Embedder API for participating in renderer logic.
79 class CONTENT_EXPORT ContentRendererClient { 75 class CONTENT_EXPORT ContentRendererClient {
80 public: 76 public:
81 virtual ~ContentRendererClient() {} 77 virtual ~ContentRendererClient() {}
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 352
357 // Whether this renderer should enforce preferences related to the WebRTC 353 // Whether this renderer should enforce preferences related to the WebRTC
358 // routing logic, i.e. allowing multiple routes and non-proxied UDP. 354 // routing logic, i.e. allowing multiple routes and non-proxied UDP.
359 virtual bool ShouldEnforceWebRTCRoutingPreferences(); 355 virtual bool ShouldEnforceWebRTCRoutingPreferences();
360 356
361 // Notifies that a worker context has been created. This function is called 357 // Notifies that a worker context has been created. This function is called
362 // from the worker thread. 358 // from the worker thread.
363 virtual void DidInitializeWorkerContextOnWorkerThread( 359 virtual void DidInitializeWorkerContextOnWorkerThread(
364 v8::Local<v8::Context> context) {} 360 v8::Local<v8::Context> context) {}
365 361
366 // Allows the client to expose interfaces from the renderer process to the
367 // browser process via |registry|.
368 virtual void ExposeInterfacesToBrowser(
369 service_manager::InterfaceRegistry* interface_registry) {}
370
371 // Overwrites the given URL to use an HTML5 embed if possible. 362 // Overwrites the given URL to use an HTML5 embed if possible.
372 // An empty URL is returned if the URL is not overriden. 363 // An empty URL is returned if the URL is not overriden.
373 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 364 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
374 365
375 // Provides parameters for initializing the global task scheduler. Default 366 // Provides parameters for initializing the global task scheduler. Default
376 // params are used if this returns nullptr. 367 // params are used if this returns nullptr.
377 virtual std::unique_ptr<base::TaskScheduler::InitParams> 368 virtual std::unique_ptr<base::TaskScheduler::InitParams>
378 GetTaskSchedulerInitParams(); 369 GetTaskSchedulerInitParams();
379 370
380 // Returns true if the media pipeline can be suspended, or false otherwise. 371 // Returns true if the media pipeline can be suspended, or false otherwise.
381 virtual bool AllowMediaSuspend(); 372 virtual bool AllowMediaSuspend();
382 }; 373 };
383 374
384 } // namespace content 375 } // namespace content
385 376
386 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/web_cache/renderer/web_cache_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698