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

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

Issue 2789753002: Convert offscreen canvas to use FrameSinkManagerHost. (Closed)
Patch Set: Fixes. 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
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 <set> 14 #include <set>
15 #include <string> 15 #include <string>
16 16
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/process/process.h" 20 #include "base/process/process.h"
21 #include "base/single_thread_task_runner.h" 21 #include "base/single_thread_task_runner.h"
22 #include "base/synchronization/waitable_event.h" 22 #include "base/synchronization/waitable_event.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/browser/child_process_launcher.h" 24 #include "content/browser/child_process_launcher.h"
25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
26 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink_p rovider_impl.h" 26 #include "content/browser/renderer_host/offscreen_canvas_provider_impl.h"
27 #include "content/browser/webrtc/webrtc_eventlog_host.h" 27 #include "content/browser/webrtc/webrtc_eventlog_host.h"
28 #include "content/common/associated_interfaces.mojom.h" 28 #include "content/common/associated_interfaces.mojom.h"
29 #include "content/common/content_export.h" 29 #include "content/common/content_export.h"
30 #include "content/common/indexed_db/indexed_db.mojom.h" 30 #include "content/common/indexed_db/indexed_db.mojom.h"
31 #include "content/common/renderer.mojom.h" 31 #include "content/common/renderer.mojom.h"
32 #include "content/public/browser/render_process_host.h" 32 #include "content/public/browser/render_process_host.h"
33 #include "content/public/common/service_manager_connection.h" 33 #include "content/public/common/service_manager_connection.h"
34 #include "ipc/ipc_channel_proxy.h" 34 #include "ipc/ipc_channel_proxy.h"
35 #include "ipc/ipc_platform_file.h" 35 #include "ipc/ipc_platform_file.h"
36 #include "media/media_features.h" 36 #include "media/media_features.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 void GetRoute( 338 void GetRoute(
339 int32_t routing_id, 339 int32_t routing_id,
340 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; 340 mojom::AssociatedInterfaceProviderAssociatedRequest request) override;
341 341
342 // mojom::AssociatedInterfaceProvider: 342 // mojom::AssociatedInterfaceProvider:
343 void GetAssociatedInterface( 343 void GetAssociatedInterface(
344 const std::string& name, 344 const std::string& name,
345 mojom::AssociatedInterfaceAssociatedRequest request) override; 345 mojom::AssociatedInterfaceAssociatedRequest request) override;
346 346
347 void CreateMusGpuRequest(ui::mojom::GpuRequest request); 347 void CreateMusGpuRequest(ui::mojom::GpuRequest request);
348 void CreateOffscreenCanvasCompositorFrameSinkProvider( 348 void CreateOffscreenCanvasProvider(
349 blink::mojom::OffscreenCanvasCompositorFrameSinkProviderRequest request); 349 blink::mojom::OffscreenCanvasProviderRequest request);
350 void CreateStoragePartitionService( 350 void CreateStoragePartitionService(
351 mojo::InterfaceRequest<mojom::StoragePartitionService> request); 351 mojo::InterfaceRequest<mojom::StoragePartitionService> request);
352 352
353 // Control message handlers. 353 // Control message handlers.
354 void OnShutdownRequest(); 354 void OnShutdownRequest();
355 void SuddenTerminationChanged(bool enabled); 355 void SuddenTerminationChanged(bool enabled);
356 void OnUserMetricsRecordAction(const std::string& action); 356 void OnUserMetricsRecordAction(const std::string& action);
357 void OnCloseACK(int old_route_id); 357 void OnCloseACK(int old_route_id);
358 358
359 // Generates a command line to be used to spawn a renderer and appends the 359 // Generates a command line to be used to spawn a renderer and appends the
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // Luckily Android never performs a clean shutdown. So explicitly 595 // Luckily Android never performs a clean shutdown. So explicitly
596 // ignore this problem. 596 // ignore this problem.
597 base::WaitableEvent never_signaled_; 597 base::WaitableEvent never_signaled_;
598 #endif 598 #endif
599 599
600 scoped_refptr<ResourceMessageFilter> resource_message_filter_; 600 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
601 std::unique_ptr<GpuClient, BrowserThread::DeleteOnIOThread> gpu_client_; 601 std::unique_ptr<GpuClient, BrowserThread::DeleteOnIOThread> gpu_client_;
602 std::unique_ptr<PushMessagingManager, BrowserThread::DeleteOnIOThread> 602 std::unique_ptr<PushMessagingManager, BrowserThread::DeleteOnIOThread>
603 push_messaging_manager_; 603 push_messaging_manager_;
604 604
605 std::unique_ptr<OffscreenCanvasCompositorFrameSinkProviderImpl> 605 std::unique_ptr<OffscreenCanvasProviderImpl> offscreen_canvas_provider_;
606 offscreen_canvas_provider_;
607 606
608 mojom::RouteProviderAssociatedPtr remote_route_provider_; 607 mojom::RouteProviderAssociatedPtr remote_route_provider_;
609 mojom::RendererAssociatedPtr renderer_interface_; 608 mojom::RendererAssociatedPtr renderer_interface_;
610 609
611 // Tracks active audio streams within the render process; used to determine if 610 // Tracks active audio streams within the render process; used to determine if
612 // if a process should be backgrounded. 611 // if a process should be backgrounded.
613 int audio_stream_count_ = 0; 612 int audio_stream_count_ = 0;
614 613
615 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend 614 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend
616 // WeakPtrs which are invalidated any time the RPHI is recycled. 615 // WeakPtrs which are invalidated any time the RPHI is recycled.
617 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> 616 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>>
618 instance_weak_factory_; 617 instance_weak_factory_;
619 618
620 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 619 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
621 620
622 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 621 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
623 }; 622 };
624 623
625 } // namespace content 624 } // namespace content
626 625
627 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 626 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698