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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2170313002: Remove OwnedInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 4 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
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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace content { 49 namespace content {
50 class AudioInputRendererHost; 50 class AudioInputRendererHost;
51 class AudioRendererHost; 51 class AudioRendererHost;
52 class BrowserCdmManager; 52 class BrowserCdmManager;
53 class BrowserDemuxerAndroid; 53 class BrowserDemuxerAndroid;
54 class InProcessChildThreadParams; 54 class InProcessChildThreadParams;
55 class MessagePortMessageFilter; 55 class MessagePortMessageFilter;
56 class MojoChildConnection; 56 class MojoChildConnection;
57 class NotificationMessageFilter; 57 class NotificationMessageFilter;
58 class OwnedInterface;
59 #if defined(ENABLE_WEBRTC) 58 #if defined(ENABLE_WEBRTC)
60 class P2PSocketDispatcherHost; 59 class P2PSocketDispatcherHost;
61 #endif 60 #endif
62 class PermissionServiceContext; 61 class PermissionServiceContext;
63 class PeerConnectionTrackerHost; 62 class PeerConnectionTrackerHost;
64 class RendererMainThread; 63 class RendererMainThread;
65 class RenderWidgetHelper; 64 class RenderWidgetHelper;
66 class RenderWidgetHost; 65 class RenderWidgetHost;
67 class RenderWidgetHostImpl; 66 class RenderWidgetHostImpl;
68 class RenderWidgetHostViewFrameSubscriber; 67 class RenderWidgetHostViewFrameSubscriber;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool HasConnection() const override; 129 bool HasConnection() const override;
131 void SetIgnoreInputEvents(bool ignore_input_events) override; 130 void SetIgnoreInputEvents(bool ignore_input_events) override;
132 bool IgnoreInputEvents() const override; 131 bool IgnoreInputEvents() const override;
133 void Cleanup() override; 132 void Cleanup() override;
134 void AddPendingView() override; 133 void AddPendingView() override;
135 void RemovePendingView() override; 134 void RemovePendingView() override;
136 void SetSuddenTerminationAllowed(bool enabled) override; 135 void SetSuddenTerminationAllowed(bool enabled) override;
137 bool SuddenTerminationAllowed() const override; 136 bool SuddenTerminationAllowed() const override;
138 IPC::ChannelProxy* GetChannel() override; 137 IPC::ChannelProxy* GetChannel() override;
139 void AddFilter(BrowserMessageFilter* filter) override; 138 void AddFilter(BrowserMessageFilter* filter) override;
140 void AddOwnedInterface(std::unique_ptr<OwnedInterface> impl) override;
141 bool FastShutdownForPageCount(size_t count) override; 139 bool FastShutdownForPageCount(size_t count) override;
142 bool FastShutdownStarted() const override; 140 bool FastShutdownStarted() const override;
143 base::TimeDelta GetChildProcessIdleTime() const override; 141 base::TimeDelta GetChildProcessIdleTime() const override;
144 void FilterURL(bool empty_allowed, GURL* url) override; 142 void FilterURL(bool empty_allowed, GURL* url) override;
145 #if defined(ENABLE_WEBRTC) 143 #if defined(ENABLE_WEBRTC)
146 void EnableAudioDebugRecordings(const base::FilePath& file) override; 144 void EnableAudioDebugRecordings(const base::FilePath& file) override;
147 void DisableAudioDebugRecordings() override; 145 void DisableAudioDebugRecordings() override;
148 bool StartWebRTCEventLog(const base::FilePath& file_path) override; 146 bool StartWebRTCEventLog(const base::FilePath& file_path) override;
149 bool StopWebRTCEventLog() override; 147 bool StopWebRTCEventLog() override;
150 void SetWebRtcLogMessageCallback( 148 void SetWebRtcLogMessageCallback(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file); 351 base::FilePath GetAecDumpFilePathWithExtensions(const base::FilePath& file);
354 #endif 352 #endif
355 353
356 static void OnMojoError( 354 static void OnMojoError(
357 base::WeakPtr<RenderProcessHostImpl> process, 355 base::WeakPtr<RenderProcessHostImpl> process,
358 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 356 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
359 const std::string& error); 357 const std::string& error);
360 358
361 std::string child_token_; 359 std::string child_token_;
362 360
363 // Services owned by this host for the purpose of service impl lifetime
364 // management. These need to outlive |mojo_child_connection_|, as they are
365 // registered on the |InterfaceRegistry| indirectly owned by that object.
366 std::vector<std::unique_ptr<OwnedInterface>> owned_interface_impls_;
367
368 std::unique_ptr<MojoChildConnection> mojo_child_connection_; 361 std::unique_ptr<MojoChildConnection> mojo_child_connection_;
369 shell::mojom::ServicePtr test_service_; 362 shell::mojom::ServicePtr test_service_;
370 363
371 // The registered IPC listener objects. When this list is empty, we should 364 // The registered IPC listener objects. When this list is empty, we should
372 // delete ourselves. 365 // delete ourselves.
373 IDMap<IPC::Listener> listeners_; 366 IDMap<IPC::Listener> listeners_;
374 367
375 // The count of currently visible widgets. Since the host can be a container 368 // The count of currently visible widgets. Since the host can be a container
376 // for multiple widgets, it uses this count to determine when it should be 369 // for multiple widgets, it uses this count to determine when it should be
377 // backgrounded. 370 // backgrounded.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 512 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
520 513
521 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 514 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
522 515
523 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 516 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
524 }; 517 };
525 518
526 } // namespace content 519 } // namespace content
527 520
528 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 521 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698