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

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

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Rebase Created 4 years, 7 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
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 #include <string> 14 #include <string>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/process/process.h" 19 #include "base/process/process.h"
20 #include "base/synchronization/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
22 #include "content/browser/child_process_launcher.h" 23 #include "content/browser/child_process_launcher.h"
23 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
24 #include "content/browser/power_monitor_message_broadcaster.h" 25 #include "content/browser/power_monitor_message_broadcaster.h"
25 #include "content/common/content_export.h" 26 #include "content/common/content_export.h"
26 #include "content/common/mojo/service_registry_impl.h" 27 #include "content/common/mojo/service_registry_impl.h"
27 #include "content/public/browser/render_process_host.h" 28 #include "content/public/browser/render_process_host.h"
28 #include "ipc/ipc_channel_proxy.h" 29 #include "ipc/ipc_channel_proxy.h"
29 #include "ipc/ipc_platform_file.h" 30 #include "ipc/ipc_platform_file.h"
30 #include "mojo/public/cpp/bindings/interface_ptr.h" 31 #include "mojo/public/cpp/bindings/interface_ptr.h"
31 #include "ui/gfx/gpu_memory_buffer.h" 32 #include "ui/gfx/gpu_memory_buffer.h"
32 #include "ui/gl/gpu_switching_observer.h" 33 #include "ui/gl/gpu_switching_observer.h"
33 34
34 namespace base { 35 namespace base {
35 class CommandLine; 36 class CommandLine;
36 class MessageLoop; 37 class MessageLoop;
37 } 38 }
38 39
39 namespace gfx { 40 namespace gfx {
40 class Size; 41 class Size;
41 } 42 }
42 43
43 namespace IPC { 44 namespace IPC {
44 class ChannelMojoHost; 45 class ChannelMojoHost;
45 } 46 }
46 47
47 namespace content { 48 namespace content {
48 class AudioInputRendererHost; 49 class AudioInputRendererHost;
49 class AudioRendererHost; 50 class AudioRendererHost;
50 class BluetoothDispatcherHost;
51 class BrowserCdmManager; 51 class BrowserCdmManager;
52 class BrowserDemuxerAndroid; 52 class BrowserDemuxerAndroid;
53 class InProcessChildThreadParams; 53 class InProcessChildThreadParams;
54 class MessagePortMessageFilter; 54 class MessagePortMessageFilter;
55 class MojoApplicationHost; 55 class MojoApplicationHost;
56 class MojoChildConnection; 56 class MojoChildConnection;
57 class NotificationMessageFilter; 57 class NotificationMessageFilter;
58 #if defined(ENABLE_WEBRTC) 58 #if defined(ENABLE_WEBRTC)
59 class P2PSocketDispatcherHost; 59 class P2PSocketDispatcherHost;
60 #endif 60 #endif
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return notification_message_filter_.get(); 254 return notification_message_filter_.get();
255 } 255 }
256 256
257 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { 257 void set_is_for_guests_only_for_testing(bool is_for_guests_only) {
258 is_for_guests_only_ = is_for_guests_only; 258 is_for_guests_only_ = is_for_guests_only;
259 } 259 }
260 260
261 void GetAudioOutputControllers( 261 void GetAudioOutputControllers(
262 const GetAudioOutputControllersCallback& callback) const override; 262 const GetAudioOutputControllersCallback& callback) const override;
263 263
264 BluetoothDispatcherHost* GetBluetoothDispatcherHost(); 264 BluetoothAdapterFactoryWrapper* GetBluetoothAdapterFactoryWrapper();
265 265
266 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 266 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
267 // Launch the zygote early in the browser startup. 267 // Launch the zygote early in the browser startup.
268 static void EarlyZygoteLaunch(); 268 static void EarlyZygoteLaunch();
269 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 269 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
270 270
271 void RecomputeAndUpdateWebKitPreferences(); 271 void RecomputeAndUpdateWebKitPreferences();
272 272
273 protected: 273 protected:
274 // A proxy for our IPC::Channel that lives on the IO thread. 274 // A proxy for our IPC::Channel that lives on the IO thread.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // through RenderProcessHostObserver::RenderProcessExited. 460 // through RenderProcessHostObserver::RenderProcessExited.
461 bool within_process_died_observer_; 461 bool within_process_died_observer_;
462 462
463 // Forwards power state messages to the renderer process. 463 // Forwards power state messages to the renderer process.
464 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; 464 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
465 465
466 scoped_refptr<AudioRendererHost> audio_renderer_host_; 466 scoped_refptr<AudioRendererHost> audio_renderer_host_;
467 467
468 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 468 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
469 469
470 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host_; 470 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_;
471 471
472 #if defined(OS_ANDROID) 472 #if defined(OS_ANDROID)
473 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 473 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
474 #endif 474 #endif
475 475
476 #if defined(ENABLE_WEBRTC) 476 #if defined(ENABLE_WEBRTC)
477 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 477 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
478 478
479 // Must be accessed on UI thread. 479 // Must be accessed on UI thread.
480 std::vector<int> aec_dump_consumers_; 480 std::vector<int> aec_dump_consumers_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
515 515
516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
517 517
518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
519 }; 519 };
520 520
521 } // namespace content 521 } // namespace content
522 522
523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698