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

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

Issue 1926873002: MediaStream Image Capture (3): Adding mojo and browser impl for dummy takePhoto(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@ comments 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
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 namespace IPC { 43 namespace IPC {
44 class ChannelMojoHost; 44 class ChannelMojoHost;
45 } 45 }
46 46
47 namespace content { 47 namespace content {
48 class AudioInputRendererHost; 48 class AudioInputRendererHost;
49 class AudioRendererHost; 49 class AudioRendererHost;
50 class BluetoothDispatcherHost; 50 class BluetoothDispatcherHost;
51 class BrowserCdmManager; 51 class BrowserCdmManager;
52 class BrowserDemuxerAndroid; 52 class BrowserDemuxerAndroid;
53 class ImageCaptureContext;
53 class InProcessChildThreadParams; 54 class InProcessChildThreadParams;
54 class MessagePortMessageFilter; 55 class MessagePortMessageFilter;
55 class MojoApplicationHost; 56 class MojoApplicationHost;
56 class MojoChildConnection; 57 class MojoChildConnection;
57 class NotificationMessageFilter; 58 class NotificationMessageFilter;
58 #if defined(ENABLE_WEBRTC) 59 #if defined(ENABLE_WEBRTC)
59 class P2PSocketDispatcherHost; 60 class P2PSocketDispatcherHost;
60 #endif 61 #endif
61 class PermissionServiceContext; 62 class PermissionServiceContext;
62 class PeerConnectionTrackerHost; 63 class PeerConnectionTrackerHost;
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 base::TimeTicks survive_for_worker_start_time_; 488 base::TimeTicks survive_for_worker_start_time_;
488 489
489 // Records the maximum # of workers simultaneously hosted in this process 490 // Records the maximum # of workers simultaneously hosted in this process
490 // for UMA. 491 // for UMA.
491 int max_worker_count_; 492 int max_worker_count_;
492 493
493 // Context shared for each mojom::PermissionService instance created for this 494 // Context shared for each mojom::PermissionService instance created for this
494 // RPH. 495 // RPH.
495 std::unique_ptr<PermissionServiceContext> permission_service_context_; 496 std::unique_ptr<PermissionServiceContext> permission_service_context_;
496 497
498 std::unique_ptr<ImageCaptureContext> image_capture_context_;
499
497 // The memory allocator, if any, in which the renderer will write its metrics. 500 // The memory allocator, if any, in which the renderer will write its metrics.
498 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; 501 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_;
499 502
500 bool channel_connected_; 503 bool channel_connected_;
501 bool sent_render_process_ready_; 504 bool sent_render_process_ready_;
502 505
503 #if defined(OS_ANDROID) 506 #if defined(OS_ANDROID)
504 // UI thread is the source of sync IPCs and all shutdown signals. 507 // UI thread is the source of sync IPCs and all shutdown signals.
505 // Therefore a proper shutdown event to unblock the UI thread is not 508 // Therefore a proper shutdown event to unblock the UI thread is not
506 // possible without massive refactoring shutdown code. 509 // possible without massive refactoring shutdown code.
507 // Luckily Android never performs a clean shutdown. So explicitly 510 // Luckily Android never performs a clean shutdown. So explicitly
508 // ignore this problem. 511 // ignore this problem.
509 base::WaitableEvent never_signaled_; 512 base::WaitableEvent never_signaled_;
510 #endif 513 #endif
511 514
512 std::string mojo_channel_token_; 515 std::string mojo_channel_token_;
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 516 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
514 517
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 518 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
516 519
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 520 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
518 }; 521 };
519 522
520 } // namespace content 523 } // namespace content
521 524
522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 525 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698