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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2167513003: Moves FrameHostMsg_SetCookie to a Mojo message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser-associated-interface
Patch Set: . Created 4 years, 4 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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/strings/string16.h" 21 #include "base/strings/string16.h"
22 #include "base/threading/thread_checker.h" 22 #include "base/threading/thread_checker.h"
23 #include "base/timer/timer.h" 23 #include "base/timer/timer.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "components/scheduler/renderer/renderer_scheduler.h" 25 #include "components/scheduler/renderer/renderer_scheduler.h"
26 #include "content/child/child_thread_impl.h" 26 #include "content/child/child_thread_impl.h"
27 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
28 #include "content/common/frame.mojom.h" 28 #include "content/common/frame.mojom.h"
29 #include "content/common/frame_replication_state.h" 29 #include "content/common/frame_replication_state.h"
30 #include "content/common/gpu_process_launch_causes.h" 30 #include "content/common/gpu_process_launch_causes.h"
31 #include "content/common/render_frame_message_filter.mojom.h"
31 #include "content/common/storage_partition_service.mojom.h" 32 #include "content/common/storage_partition_service.mojom.h"
32 #include "content/public/renderer/render_thread.h" 33 #include "content/public/renderer/render_thread.h"
33 #include "content/renderer/gpu/compositor_dependencies.h" 34 #include "content/renderer/gpu/compositor_dependencies.h"
34 #include "content/renderer/layout_test_dependencies.h" 35 #include "content/renderer/layout_test_dependencies.h"
35 #include "gpu/ipc/client/gpu_channel_host.h" 36 #include "gpu/ipc/client/gpu_channel_host.h"
36 #include "net/base/network_change_notifier.h" 37 #include "net/base/network_change_notifier.h"
37 #include "third_party/WebKit/public/platform/WebConnectionType.h" 38 #include "third_party/WebKit/public/platform/WebConnectionType.h"
38 #include "ui/gfx/native_widget_types.h" 39 #include "ui/gfx/native_widget_types.h"
39 40
40 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 324 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
324 P2PSocketDispatcher* p2p_socket_dispatcher() { 325 P2PSocketDispatcher* p2p_socket_dispatcher() {
325 return p2p_socket_dispatcher_.get(); 326 return p2p_socket_dispatcher_.get();
326 } 327 }
327 #endif 328 #endif
328 329
329 VideoCaptureImplManager* video_capture_impl_manager() const { 330 VideoCaptureImplManager* video_capture_impl_manager() const {
330 return vc_manager_.get(); 331 return vc_manager_.get();
331 } 332 }
332 333
334 mojom::RenderFrameMessageFilter* render_frame_message_filter();
335
333 // Get the GPU channel. Returns NULL if the channel is not established or 336 // Get the GPU channel. Returns NULL if the channel is not established or
334 // has been lost. 337 // has been lost.
335 gpu::GpuChannelHost* GetGpuChannel(); 338 gpu::GpuChannelHost* GetGpuChannel();
336 339
337 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 340 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
338 // of the thread on which file operations should be run. Must be called 341 // of the thread on which file operations should be run. Must be called
339 // on the renderer's main thread. 342 // on the renderer's main thread.
340 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner(); 343 scoped_refptr<base::SingleThreadTaskRunner> GetFileThreadTaskRunner();
341 344
342 // Returns a SingleThreadTaskRunner instance corresponding to the message loop 345 // Returns a SingleThreadTaskRunner instance corresponding to the message loop
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 mojom::FrameRequest frame_request_; 694 mojom::FrameRequest frame_request_;
692 mojom::FrameHostPtr frame_host_; 695 mojom::FrameHostPtr frame_host_;
693 }; 696 };
694 697
695 using PendingFrameCreateMap = 698 using PendingFrameCreateMap =
696 std::map<int, scoped_refptr<PendingFrameCreate>>; 699 std::map<int, scoped_refptr<PendingFrameCreate>>;
697 PendingFrameCreateMap pending_frame_creates_; 700 PendingFrameCreateMap pending_frame_creates_;
698 701
699 mojom::StoragePartitionServicePtr storage_partition_service_; 702 mojom::StoragePartitionServicePtr storage_partition_service_;
700 703
704 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
705
701 bool is_renderer_suspended_; 706 bool is_renderer_suspended_;
702 707
703 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 708 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
704 }; 709 };
705 710
706 #if defined(COMPILER_MSVC) 711 #if defined(COMPILER_MSVC)
707 #pragma warning(pop) 712 #pragma warning(pop)
708 #endif 713 #endif
709 714
710 } // namespace content 715 } // namespace content
711 716
712 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 717 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698