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

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

Issue 2835403004: Revert "Use MojoCompositorFrameSink in RendererCompositorFrameSink"
Patch Set: Rebased Created 3 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 <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/frame_sink_provider_impl.h"
27 #include "content/browser/renderer_host/offscreen_canvas_provider_impl.h" 26 #include "content/browser/renderer_host/offscreen_canvas_provider_impl.h"
28 #include "content/browser/webrtc/webrtc_eventlog_host.h" 27 #include "content/browser/webrtc/webrtc_eventlog_host.h"
29 #include "content/common/associated_interfaces.mojom.h" 28 #include "content/common/associated_interfaces.mojom.h"
30 #include "content/common/content_export.h" 29 #include "content/common/content_export.h"
31 #include "content/common/indexed_db/indexed_db.mojom.h" 30 #include "content/common/indexed_db/indexed_db.mojom.h"
32 #include "content/common/renderer.mojom.h" 31 #include "content/common/renderer.mojom.h"
33 #include "content/public/browser/render_process_host.h" 32 #include "content/public/browser/render_process_host.h"
34 #include "content/public/common/service_manager_connection.h" 33 #include "content/public/common/service_manager_connection.h"
35 #include "ipc/ipc_channel_proxy.h" 34 #include "ipc/ipc_channel_proxy.h"
36 #include "ipc/ipc_platform_file.h" 35 #include "ipc/ipc_platform_file.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; 338 mojom::AssociatedInterfaceProviderAssociatedRequest request) override;
340 339
341 // mojom::AssociatedInterfaceProvider: 340 // mojom::AssociatedInterfaceProvider:
342 void GetAssociatedInterface( 341 void GetAssociatedInterface(
343 const std::string& name, 342 const std::string& name,
344 mojom::AssociatedInterfaceAssociatedRequest request) override; 343 mojom::AssociatedInterfaceAssociatedRequest request) override;
345 344
346 void CreateMusGpuRequest(ui::mojom::GpuRequest request); 345 void CreateMusGpuRequest(ui::mojom::GpuRequest request);
347 void CreateOffscreenCanvasProvider( 346 void CreateOffscreenCanvasProvider(
348 blink::mojom::OffscreenCanvasProviderRequest request); 347 blink::mojom::OffscreenCanvasProviderRequest request);
349 void BindFrameSinkProvider(mojom::FrameSinkProviderRequest request);
350 void CreateStoragePartitionService( 348 void CreateStoragePartitionService(
351 mojo::InterfaceRequest<mojom::StoragePartitionService> request); 349 mojo::InterfaceRequest<mojom::StoragePartitionService> request);
352 350
353 // Control message handlers. 351 // Control message handlers.
354 void OnShutdownRequest(); 352 void OnShutdownRequest();
355 void SuddenTerminationChanged(bool enabled); 353 void SuddenTerminationChanged(bool enabled);
356 void OnUserMetricsRecordAction(const std::string& action); 354 void OnUserMetricsRecordAction(const std::string& action);
357 void OnCloseACK(int old_route_id); 355 void OnCloseACK(int old_route_id);
358 356
359 // Generates a command line to be used to spawn a renderer and appends the 357 // Generates a command line to be used to spawn a renderer and appends the
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 608
611 // Tracks active audio streams within the render process; used to determine if 609 // Tracks active audio streams within the render process; used to determine if
612 // if a process should be backgrounded. 610 // if a process should be backgrounded.
613 int audio_stream_count_ = 0; 611 int audio_stream_count_ = 0;
614 612
615 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend 613 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend
616 // WeakPtrs which are invalidated any time the RPHI is recycled. 614 // WeakPtrs which are invalidated any time the RPHI is recycled.
617 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> 615 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>>
618 instance_weak_factory_; 616 instance_weak_factory_;
619 617
620 FrameSinkProviderImpl frame_sink_provider_;
621
622 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 618 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
623 619
624 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 620 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
625 }; 621 };
626 622
627 } // namespace content 623 } // namespace content
628 624
629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 625 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698