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

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

Issue 8804006: Reland 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix destruction issue Created 9 years 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
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | content/renderer/render_view_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 bool cached_has_main_frame_horizontal_scrollbar_; 1106 bool cached_has_main_frame_horizontal_scrollbar_;
1107 bool cached_has_main_frame_vertical_scrollbar_; 1107 bool cached_has_main_frame_vertical_scrollbar_;
1108 1108
1109 #if defined(OS_MACOSX) 1109 #if defined(OS_MACOSX)
1110 // Track the fake plugin window handles allocated on the browser side for 1110 // Track the fake plugin window handles allocated on the browser side for
1111 // the accelerated compositor and (currently) accelerated plugins so that 1111 // the accelerated compositor and (currently) accelerated plugins so that
1112 // we can discard them when the view goes away. 1112 // we can discard them when the view goes away.
1113 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; 1113 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_;
1114 #endif 1114 #endif
1115 1115
1116 // Plugins -------------------------------------------------------------------
1117
1118 PepperPluginDelegateImpl pepper_delegate_;
1119
1120 // All the currently active plugin delegates for this RenderView; kept so
1121 // that we can enumerate them to send updates about things like window
1122 // location or tab focus and visibily. These are non-owning references.
1123 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1124
1125 #if defined(OS_WIN)
1126 // The ID of the focused NPAPI plug-in.
1127 int focused_plugin_id_;
1128 #endif
1129
1130 // Helper objects ------------------------------------------------------------ 1116 // Helper objects ------------------------------------------------------------
1131 1117
1132 RendererWebCookieJarImpl cookie_jar_; 1118 RendererWebCookieJarImpl cookie_jar_;
1133 1119
1134 // The next group of objects all implement RenderViewObserver, so are deleted 1120 // The next group of objects all implement RenderViewObserver, so are deleted
1135 // along with the RenderView automatically. This is why we just store 1121 // along with the RenderView automatically. This is why we just store
1136 // weak references. 1122 // weak references.
1137 1123
1138 // Holds a reference to the service which provides desktop notifications. 1124 // Holds a reference to the service which provides desktop notifications.
1139 NotificationProvider* notification_provider_; 1125 NotificationProvider* notification_provider_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 scoped_ptr<LoadProgressTracker> load_progress_tracker_; 1200 scoped_ptr<LoadProgressTracker> load_progress_tracker_;
1215 1201
1216 // All the registered observers. We expect this list to be small, so vector 1202 // All the registered observers. We expect this list to be small, so vector
1217 // is fine. 1203 // is fine.
1218 ObserverList<content::RenderViewObserver> observers_; 1204 ObserverList<content::RenderViewObserver> observers_;
1219 1205
1220 // Used to inform didChangeSelection() when it is called in the context 1206 // Used to inform didChangeSelection() when it is called in the context
1221 // of handling a ViewMsg_SelectRange IPC. 1207 // of handling a ViewMsg_SelectRange IPC.
1222 bool handling_select_range_; 1208 bool handling_select_range_;
1223 1209
1210 // Plugins -------------------------------------------------------------------
1211
1212 // All the currently active plugin delegates for this RenderView; kept so
1213 // that we can enumerate them to send updates about things like window
1214 // location or tab focus and visibily. These are non-owning references.
1215 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1216
1217 #if defined(OS_WIN)
1218 // The ID of the focused NPAPI plug-in.
1219 int focused_plugin_id_;
1220 #endif
1221
1222 // NOTE: pepper_delegate_ should be last member because its constructor calls
1223 // AddObservers method of RenderViewImpl from c-tor.
1224 PepperPluginDelegateImpl pepper_delegate_;
1225
1224 // --------------------------------------------------------------------------- 1226 // ---------------------------------------------------------------------------
1225 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1227 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1226 // sections rather than throwing it randomly at the end. If you're adding a 1228 // sections rather than throwing it randomly at the end. If you're adding a
1227 // bunch of stuff, you should probably create a helper class and put your 1229 // bunch of stuff, you should probably create a helper class and put your
1228 // data and methods on that to avoid bloating RenderView more. You can 1230 // data and methods on that to avoid bloating RenderView more. You can
1229 // use the Observer interface to filter IPC messages and receive frame change 1231 // use the Observer interface to filter IPC messages and receive frame change
1230 // notifications. 1232 // notifications.
1231 // --------------------------------------------------------------------------- 1233 // ---------------------------------------------------------------------------
1232 1234
1233 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1235 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1234 }; 1236 };
1235 1237
1236 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1238 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698