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

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

Issue 2353003004: Move ViewHostMsg_CreateWindow to mojom (Closed)
Patch Set: . Created 4 years, 3 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_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 30 matching lines...) Expand all
41 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
42 #include "content/common/mac/font_loader.h" 42 #include "content/common/mac/font_loader.h"
43 #endif 43 #endif
44 44
45 #if defined(OS_ANDROID) 45 #if defined(OS_ANDROID)
46 #include "base/threading/worker_pool.h" 46 #include "base/threading/worker_pool.h"
47 #endif 47 #endif
48 48
49 class GURL; 49 class GURL;
50 struct FontDescriptor; 50 struct FontDescriptor;
51 struct ViewHostMsg_CreateWindow_Params;
52 struct ViewHostMsg_CreateWindow_Reply;
53 51
54 namespace base { 52 namespace base {
55 class ProcessMetrics; 53 class ProcessMetrics;
56 class SharedMemory; 54 class SharedMemory;
57 class TaskRunner; 55 class TaskRunner;
58 } 56 }
59 57
60 namespace gfx { 58 namespace gfx {
61 struct GpuMemoryBufferHandle; 59 struct GpuMemoryBufferHandle;
62 } 60 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 int render_process_id() const { return render_process_id_; } 113 int render_process_id() const { return render_process_id_; }
116 114
117 protected: 115 protected:
118 ~RenderMessageFilter() override; 116 ~RenderMessageFilter() override;
119 117
120 private: 118 private:
121 friend class BrowserThread; 119 friend class BrowserThread;
122 friend class base::DeleteHelper<RenderMessageFilter>; 120 friend class base::DeleteHelper<RenderMessageFilter>;
123 121
124 void OnGetProcessMemorySizes(size_t* private_bytes, size_t* shared_bytes); 122 void OnGetProcessMemorySizes(size_t* private_bytes, size_t* shared_bytes);
125 void OnCreateWindow(const ViewHostMsg_CreateWindow_Params& params,
126 ViewHostMsg_CreateWindow_Reply* reply);
127 void OnCreateWidget(int opener_id, 123 void OnCreateWidget(int opener_id,
128 blink::WebPopupType popup_type, 124 blink::WebPopupType popup_type,
129 int* route_id); 125 int* route_id);
130 void OnCreateFullscreenWidget(int opener_id, int* route_id); 126 void OnCreateFullscreenWidget(int opener_id, int* route_id);
131 127
132 #if defined(OS_MACOSX) 128 #if defined(OS_MACOSX)
133 // Messages for OOP font loading. 129 // Messages for OOP font loading.
134 void OnLoadFont(const FontDescriptor& font, IPC::Message* reply_msg); 130 void OnLoadFont(const FontDescriptor& font, IPC::Message* reply_msg);
135 void SendLoadFontReply(IPC::Message* reply, FontLoader::Result* result); 131 void SendLoadFontReply(IPC::Message* reply, FontLoader::Result* result);
136 #endif 132 #endif
137 133
138 // mojom::RenderMessageFilter: 134 // mojom::RenderMessageFilter:
139 void GenerateRoutingID(const GenerateRoutingIDCallback& routing_id) override; 135 void GenerateRoutingID(const GenerateRoutingIDCallback& routing_id) override;
136 void CreateWindow(mojom::CreateWindowParamsPtr params,
137 const CreateWindowCallback& callback) override;
140 138
141 // Message handlers called on the browser IO thread: 139 // Message handlers called on the browser IO thread:
142 void OnEstablishGpuChannel(IPC::Message* reply); 140 void OnEstablishGpuChannel(IPC::Message* reply);
143 void OnHasGpuProcess(IPC::Message* reply); 141 void OnHasGpuProcess(IPC::Message* reply);
144 // Helper callbacks for the message handlers. 142 // Helper callbacks for the message handlers.
145 void EstablishChannelCallback(std::unique_ptr<IPC::Message> reply, 143 void EstablishChannelCallback(std::unique_ptr<IPC::Message> reply,
146 const IPC::ChannelHandle& channel, 144 const IPC::ChannelHandle& channel,
147 const gpu::GPUInfo& gpu_info); 145 const gpu::GPUInfo& gpu_info);
148 void GetGpuProcessHandlesCallback( 146 void GetGpuProcessHandlesCallback(
149 std::unique_ptr<IPC::Message> reply, 147 std::unique_ptr<IPC::Message> reply,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 CacheStorageContextImpl* cache_storage_context_; 249 CacheStorageContextImpl* cache_storage_context_;
252 250
253 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_; 251 base::WeakPtrFactory<RenderMessageFilter> weak_ptr_factory_;
254 252
255 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter); 253 DISALLOW_COPY_AND_ASSIGN(RenderMessageFilter);
256 }; 254 };
257 255
258 } // namespace content 256 } // namespace content
259 257
260 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_ 258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.cc ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698