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

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

Issue 10917167: Refactor the P2PSocketDispatcher to be created on the RenderThread instead of the RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unnecessary destruction callback. Removed remaining routing_id. Created 8 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 | Annotate | Revision Log
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_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 struct ViewMsg_StopFinding_Params; 91 struct ViewMsg_StopFinding_Params;
92 struct ViewMsg_SwapOut_Params; 92 struct ViewMsg_SwapOut_Params;
93 struct WebDropData; 93 struct WebDropData;
94 class WebIntentsHost; 94 class WebIntentsHost;
95 class WebPluginDelegateProxy; 95 class WebPluginDelegateProxy;
96 class WebUIBindings; 96 class WebUIBindings;
97 97
98 namespace content { 98 namespace content {
99 class DocumentState; 99 class DocumentState;
100 class NavigationState; 100 class NavigationState;
101 class P2PSocketDispatcher;
102 class RenderViewObserver; 101 class RenderViewObserver;
103 class RenderViewTest; 102 class RenderViewTest;
104 class RendererAccessibility; 103 class RendererAccessibility;
105 class RendererPpapiHost; 104 class RendererPpapiHost;
106 struct CustomContextMenuContext; 105 struct CustomContextMenuContext;
107 struct FileChooserParams; 106 struct FileChooserParams;
108 107
109 namespace old { 108 namespace old {
110 class GuestToEmbedderChannel; 109 class GuestToEmbedderChannel;
111 } 110 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 249 }
251 250
252 void set_send_content_state_immediately(bool value) { 251 void set_send_content_state_immediately(bool value) {
253 send_content_state_immediately_ = value; 252 send_content_state_immediately_ = value;
254 } 253 }
255 254
256 MediaStreamDispatcher* media_stream_dispatcher() { 255 MediaStreamDispatcher* media_stream_dispatcher() {
257 return media_stream_dispatcher_; 256 return media_stream_dispatcher_;
258 } 257 }
259 258
260 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
261 content::P2PSocketDispatcher* p2p_socket_dispatcher() {
262 return p2p_socket_dispatcher_;
263 }
264
265 MouseLockDispatcher* mouse_lock_dispatcher() { 259 MouseLockDispatcher* mouse_lock_dispatcher() {
266 return mouse_lock_dispatcher_; 260 return mouse_lock_dispatcher_;
267 } 261 }
268 262
269 #if defined(OS_ANDROID) 263 #if defined(OS_ANDROID)
270 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { 264 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() {
271 return media_player_manager_.get(); 265 return media_player_manager_.get();
272 } 266 }
273 #endif 267 #endif
274 268
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 1366
1373 // Device orientation dispatcher attached to this view; lazily initialized. 1367 // Device orientation dispatcher attached to this view; lazily initialized.
1374 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1368 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1375 1369
1376 // MediaStream dispatcher attached to this view; lazily initialized. 1370 // MediaStream dispatcher attached to this view; lazily initialized.
1377 MediaStreamDispatcher* media_stream_dispatcher_; 1371 MediaStreamDispatcher* media_stream_dispatcher_;
1378 1372
1379 // MediaStreamImpl attached to this view; lazily initialized. 1373 // MediaStreamImpl attached to this view; lazily initialized.
1380 MediaStreamImpl* media_stream_impl_; 1374 MediaStreamImpl* media_stream_impl_;
1381 1375
1382 // Dispatches all P2P socket used by the renderer.
1383 content::P2PSocketDispatcher* p2p_socket_dispatcher_;
1384
1385 DevToolsAgent* devtools_agent_; 1376 DevToolsAgent* devtools_agent_;
1386 1377
1387 // The current accessibility mode. 1378 // The current accessibility mode.
1388 AccessibilityMode accessibility_mode_; 1379 AccessibilityMode accessibility_mode_;
1389 1380
1390 // Only valid if |accessibility_mode_| is anything other than 1381 // Only valid if |accessibility_mode_| is anything other than
1391 // AccessibilityModeOff. 1382 // AccessibilityModeOff.
1392 content::RendererAccessibility* renderer_accessibility_; 1383 content::RendererAccessibility* renderer_accessibility_;
1393 1384
1394 // Java Bridge dispatcher attached to this view; lazily initialized. 1385 // Java Bridge dispatcher attached to this view; lazily initialized.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 // bunch of stuff, you should probably create a helper class and put your 1534 // bunch of stuff, you should probably create a helper class and put your
1544 // data and methods on that to avoid bloating RenderView more. You can 1535 // data and methods on that to avoid bloating RenderView more. You can
1545 // use the Observer interface to filter IPC messages and receive frame change 1536 // use the Observer interface to filter IPC messages and receive frame change
1546 // notifications. 1537 // notifications.
1547 // --------------------------------------------------------------------------- 1538 // ---------------------------------------------------------------------------
1548 1539
1549 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1540 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1550 }; 1541 };
1551 1542
1552 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1543 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698