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

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: Remove debug log 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 return notification_message_filter_.get(); 253 return notification_message_filter_.get();
254 } 254 }
255 255
256 void set_is_for_guests_only_for_testing(bool is_for_guests_only) { 256 void set_is_for_guests_only_for_testing(bool is_for_guests_only) {
257 is_for_guests_only_ = is_for_guests_only; 257 is_for_guests_only_ = is_for_guests_only;
258 } 258 }
259 259
260 void GetAudioOutputControllers( 260 void GetAudioOutputControllers(
261 const GetAudioOutputControllersCallback& callback) const override; 261 const GetAudioOutputControllersCallback& callback) const override;
262 262
263 BluetoothDispatcherHost* GetBluetoothDispatcherHost(); 263 BluetoothAdapterFactoryWrapper* GetBluetoothAdapterFactoryWrapper();
264 264
265 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 265 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
266 // Launch the zygote early in the browser startup. 266 // Launch the zygote early in the browser startup.
267 static void EarlyZygoteLaunch(); 267 static void EarlyZygoteLaunch();
268 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX) 268 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
269 269
270 void RecomputeAndUpdateWebKitPreferences(); 270 void RecomputeAndUpdateWebKitPreferences();
271 271
272 protected: 272 protected:
273 // A proxy for our IPC::Channel that lives on the IO thread. 273 // A proxy for our IPC::Channel that lives on the IO thread.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 // through RenderProcessHostObserver::RenderProcessExited. 459 // through RenderProcessHostObserver::RenderProcessExited.
460 bool within_process_died_observer_; 460 bool within_process_died_observer_;
461 461
462 // Forwards power state messages to the renderer process. 462 // Forwards power state messages to the renderer process.
463 PowerMonitorMessageBroadcaster power_monitor_broadcaster_; 463 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
464 464
465 scoped_refptr<AudioRendererHost> audio_renderer_host_; 465 scoped_refptr<AudioRendererHost> audio_renderer_host_;
466 466
467 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 467 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
468 468
469 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host_; 469 BluetoothAdapterFactoryWrapper bluetooth_adapter_factory_wrapper_;
470 470
471 #if defined(OS_ANDROID) 471 #if defined(OS_ANDROID)
472 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_; 472 scoped_refptr<BrowserDemuxerAndroid> browser_demuxer_android_;
473 #endif 473 #endif
474 474
475 #if defined(ENABLE_WEBRTC) 475 #if defined(ENABLE_WEBRTC)
476 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 476 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
477 477
478 // Must be accessed on UI thread. 478 // Must be accessed on UI thread.
479 std::vector<int> aec_dump_consumers_; 479 std::vector<int> aec_dump_consumers_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
514 514
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
516 516
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
518 }; 518 };
519 519
520 } // namespace content 520 } // namespace content
521 521
522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698