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

Side by Side Diff: content/child/child_thread_impl.h

Issue 2225133002: Revert "Port WebSockets to Mojo IPC" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class ChildSharedBitmapManager; 57 class ChildSharedBitmapManager;
58 class FileSystemDispatcher; 58 class FileSystemDispatcher;
59 class InProcessChildThreadParams; 59 class InProcessChildThreadParams;
60 class NotificationDispatcher; 60 class NotificationDispatcher;
61 class PushDispatcher; 61 class PushDispatcher;
62 class ServiceWorkerMessageFilter; 62 class ServiceWorkerMessageFilter;
63 class QuotaDispatcher; 63 class QuotaDispatcher;
64 class QuotaMessageFilter; 64 class QuotaMessageFilter;
65 class ResourceDispatcher; 65 class ResourceDispatcher;
66 class ThreadSafeSender; 66 class ThreadSafeSender;
67 class WebSocketDispatcher;
68 class WebSocketMessageFilter;
67 struct RequestInfo; 69 struct RequestInfo;
68 70
69 // The main thread of a child process derives from this class. 71 // The main thread of a child process derives from this class.
70 class CONTENT_EXPORT ChildThreadImpl 72 class CONTENT_EXPORT ChildThreadImpl
71 : public IPC::Listener, 73 : public IPC::Listener,
72 virtual public ChildThread { 74 virtual public ChildThread {
73 public: 75 public:
74 struct CONTENT_EXPORT Options; 76 struct CONTENT_EXPORT Options;
75 77
76 // Creates the thread. 78 // Creates the thread.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 132
131 ChildDiscardableSharedMemoryManager* discardable_shared_memory_manager() 133 ChildDiscardableSharedMemoryManager* discardable_shared_memory_manager()
132 const { 134 const {
133 return discardable_shared_memory_manager_.get(); 135 return discardable_shared_memory_manager_.get();
134 } 136 }
135 137
136 ResourceDispatcher* resource_dispatcher() const { 138 ResourceDispatcher* resource_dispatcher() const {
137 return resource_dispatcher_.get(); 139 return resource_dispatcher_.get();
138 } 140 }
139 141
142 WebSocketDispatcher* websocket_dispatcher() const {
143 return websocket_dispatcher_.get();
144 }
145
140 FileSystemDispatcher* file_system_dispatcher() const { 146 FileSystemDispatcher* file_system_dispatcher() const {
141 return file_system_dispatcher_.get(); 147 return file_system_dispatcher_.get();
142 } 148 }
143 149
144 QuotaDispatcher* quota_dispatcher() const { 150 QuotaDispatcher* quota_dispatcher() const {
145 return quota_dispatcher_.get(); 151 return quota_dispatcher_.get();
146 } 152 }
147 153
148 NotificationDispatcher* notification_dispatcher() const { 154 NotificationDispatcher* notification_dispatcher() const {
149 return notification_dispatcher_.get(); 155 return notification_dispatcher_.get();
(...skipping 23 matching lines...) Expand all
173 } 179 }
174 180
175 QuotaMessageFilter* quota_message_filter() const { 181 QuotaMessageFilter* quota_message_filter() const {
176 return quota_message_filter_.get(); 182 return quota_message_filter_.get();
177 } 183 }
178 184
179 ChildResourceMessageFilter* child_resource_message_filter() const { 185 ChildResourceMessageFilter* child_resource_message_filter() const {
180 return resource_message_filter_.get(); 186 return resource_message_filter_.get();
181 } 187 }
182 188
189 WebSocketMessageFilter* websocket_message_filter() const {
190 return websocket_message_filter_.get();
191 }
192
183 base::MessageLoop* message_loop() const { return message_loop_; } 193 base::MessageLoop* message_loop() const { return message_loop_; }
184 194
185 // Returns the one child thread. Can only be called on the main thread. 195 // Returns the one child thread. Can only be called on the main thread.
186 static ChildThreadImpl* current(); 196 static ChildThreadImpl* current();
187 197
188 #if defined(OS_ANDROID) 198 #if defined(OS_ANDROID)
189 // Called on Android's service thread to shutdown the main thread of this 199 // Called on Android's service thread to shutdown the main thread of this
190 // process. 200 // process.
191 static void ShutdownThread(); 201 static void ShutdownThread();
192 #endif 202 #endif
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 269
260 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 270 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
261 271
262 // Implements message routing functionality to the consumers of 272 // Implements message routing functionality to the consumers of
263 // ChildThreadImpl. 273 // ChildThreadImpl.
264 ChildThreadMessageRouter router_; 274 ChildThreadMessageRouter router_;
265 275
266 // Handles resource loads for this process. 276 // Handles resource loads for this process.
267 std::unique_ptr<ResourceDispatcher> resource_dispatcher_; 277 std::unique_ptr<ResourceDispatcher> resource_dispatcher_;
268 278
279 std::unique_ptr<WebSocketDispatcher> websocket_dispatcher_;
280
269 // The OnChannelError() callback was invoked - the channel is dead, don't 281 // The OnChannelError() callback was invoked - the channel is dead, don't
270 // attempt to communicate. 282 // attempt to communicate.
271 bool on_channel_error_called_; 283 bool on_channel_error_called_;
272 284
273 base::MessageLoop* message_loop_; 285 base::MessageLoop* message_loop_;
274 286
275 std::unique_ptr<FileSystemDispatcher> file_system_dispatcher_; 287 std::unique_ptr<FileSystemDispatcher> file_system_dispatcher_;
276 288
277 std::unique_ptr<QuotaDispatcher> quota_dispatcher_; 289 std::unique_ptr<QuotaDispatcher> quota_dispatcher_;
278 290
279 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; 291 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
280 292
281 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 293 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
282 294
283 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_; 295 scoped_refptr<ServiceWorkerMessageFilter> service_worker_message_filter_;
284 296
285 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 297 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
286 298
299 scoped_refptr<WebSocketMessageFilter> websocket_message_filter_;
300
287 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 301 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
288 302
289 scoped_refptr<PushDispatcher> push_dispatcher_; 303 scoped_refptr<PushDispatcher> push_dispatcher_;
290 304
291 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_; 305 std::unique_ptr<ChildSharedBitmapManager> shared_bitmap_manager_;
292 306
293 std::unique_ptr<ChildGpuMemoryBufferManager> gpu_memory_buffer_manager_; 307 std::unique_ptr<ChildGpuMemoryBufferManager> gpu_memory_buffer_manager_;
294 308
295 std::unique_ptr<ChildDiscardableSharedMemoryManager> 309 std::unique_ptr<ChildDiscardableSharedMemoryManager>
296 discardable_shared_memory_manager_; 310 discardable_shared_memory_manager_;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 355
342 private: 356 private:
343 struct Options options_; 357 struct Options options_;
344 358
345 DISALLOW_COPY_AND_ASSIGN(Builder); 359 DISALLOW_COPY_AND_ASSIGN(Builder);
346 }; 360 };
347 361
348 } // namespace content 362 } // namespace content
349 363
350 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 364 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698