OLD | NEW |
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 class BrowserPluginManager; | 129 class BrowserPluginManager; |
130 class DeviceOrientationDispatcher; | 130 class DeviceOrientationDispatcher; |
131 class DevToolsAgent; | 131 class DevToolsAgent; |
132 class DocumentState; | 132 class DocumentState; |
133 class ExternalPopupMenu; | 133 class ExternalPopupMenu; |
134 class FaviconHelper; | 134 class FaviconHelper; |
135 class GeolocationDispatcher; | 135 class GeolocationDispatcher; |
136 class HistoryController; | 136 class HistoryController; |
137 class HistoryEntry; | 137 class HistoryEntry; |
138 class ImageResourceFetcher; | 138 class ImageResourceFetcher; |
139 class LoadProgressTracker; | |
140 class MidiDispatcher; | 139 class MidiDispatcher; |
141 class MediaStreamDispatcher; | 140 class MediaStreamDispatcher; |
142 class MouseLockDispatcher; | 141 class MouseLockDispatcher; |
143 class NavigationState; | 142 class NavigationState; |
144 class PepperPluginInstanceImpl; | 143 class PepperPluginInstanceImpl; |
145 class PushMessagingDispatcher; | 144 class PushMessagingDispatcher; |
146 class RenderViewObserver; | 145 class RenderViewObserver; |
147 class RenderViewTest; | 146 class RenderViewTest; |
148 class RendererAccessibility; | 147 class RendererAccessibility; |
149 class RendererDateTimePicker; | 148 class RendererDateTimePicker; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 #endif | 269 #endif |
271 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 270 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
272 void DidHideExternalPopupMenu(); | 271 void DidHideExternalPopupMenu(); |
273 #endif | 272 #endif |
274 | 273 |
275 bool is_loading() const { return frames_in_progress_ != 0; } | 274 bool is_loading() const { return frames_in_progress_ != 0; } |
276 | 275 |
277 void FrameDidStartLoading(blink::WebFrame* frame); | 276 void FrameDidStartLoading(blink::WebFrame* frame); |
278 void FrameDidStopLoading(blink::WebFrame* frame); | 277 void FrameDidStopLoading(blink::WebFrame* frame); |
279 | 278 |
280 void FrameDidChangeLoadProgress(blink::WebFrame* frame, | |
281 double load_progress); | |
282 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 279 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
283 bool is_new_navigation); | 280 bool is_new_navigation); |
284 | 281 |
285 // Plugin-related functions -------------------------------------------------- | 282 // Plugin-related functions -------------------------------------------------- |
286 | 283 |
287 #if defined(ENABLE_PLUGINS) | 284 #if defined(ENABLE_PLUGINS) |
288 // Get/set the plugin which will be used as to handle document find requests. | 285 // Get/set the plugin which will be used as to handle document find requests. |
289 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { | 286 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { |
290 plugin_find_handler_ = plugin; | 287 plugin_find_handler_ = plugin; |
291 } | 288 } |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 // The offset of the current item in the history list. | 997 // The offset of the current item in the history list. |
1001 int history_list_offset_; | 998 int history_list_offset_; |
1002 | 999 |
1003 // The RenderView's current impression of the history length. This includes | 1000 // The RenderView's current impression of the history length. This includes |
1004 // any items that have committed in this process, but because of cross-process | 1001 // any items that have committed in this process, but because of cross-process |
1005 // navigations, the history may have some entries that were committed in other | 1002 // navigations, the history may have some entries that were committed in other |
1006 // processes. We won't know about them until the next navigation in this | 1003 // processes. We won't know about them until the next navigation in this |
1007 // process. | 1004 // process. |
1008 int history_list_length_; | 1005 int history_list_length_; |
1009 | 1006 |
1010 // Counter to track how many frames have sent start notifications but not | 1007 // Counter to track how many frames have sent start notifications but not stop |
1011 // stop notifications. | 1008 // notifications. TODO(avi): Remove this once DidStartLoading/DidStopLoading |
1012 // TODO(japhet): This state will need to move to the browser process | 1009 // are gone. |
1013 // (probably WebContents) for site isolation. | |
1014 int frames_in_progress_; | 1010 int frames_in_progress_; |
1015 | 1011 |
1016 // The list of page IDs for each history item this RenderView knows about. | 1012 // The list of page IDs for each history item this RenderView knows about. |
1017 // Some entries may be -1 if they were rendered by other processes or were | 1013 // Some entries may be -1 if they were rendered by other processes or were |
1018 // restored from a previous session. This lets us detect attempts to | 1014 // restored from a previous session. This lets us detect attempts to |
1019 // navigate to stale entries that have been cropped from our history. | 1015 // navigate to stale entries that have been cropped from our history. |
1020 std::vector<int32> history_page_ids_; | 1016 std::vector<int32> history_page_ids_; |
1021 | 1017 |
1022 // Page info ----------------------------------------------------------------- | 1018 // Page info ----------------------------------------------------------------- |
1023 | 1019 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 // nonempty, the first item represents the currently running file chooser | 1179 // nonempty, the first item represents the currently running file chooser |
1184 // callback, and the remaining elements are the other file chooser completion | 1180 // callback, and the remaining elements are the other file chooser completion |
1185 // still waiting to be run (in order). | 1181 // still waiting to be run (in order). |
1186 struct PendingFileChooser; | 1182 struct PendingFileChooser; |
1187 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1183 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1188 | 1184 |
1189 // The current directory enumeration callback | 1185 // The current directory enumeration callback |
1190 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; | 1186 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; |
1191 int enumeration_completion_id_; | 1187 int enumeration_completion_id_; |
1192 | 1188 |
1193 // Reports load progress to the browser. | |
1194 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | |
1195 | |
1196 // The SessionStorage namespace that we're assigned to has an ID, and that ID | 1189 // The SessionStorage namespace that we're assigned to has an ID, and that ID |
1197 // is passed to us upon creation. WebKit asks for this ID upon first use and | 1190 // is passed to us upon creation. WebKit asks for this ID upon first use and |
1198 // uses it whenever asking the browser process to allocate new storage areas. | 1191 // uses it whenever asking the browser process to allocate new storage areas. |
1199 int64 session_storage_namespace_id_; | 1192 int64 session_storage_namespace_id_; |
1200 | 1193 |
1201 // Stores edit commands associated to the next key event. | 1194 // Stores edit commands associated to the next key event. |
1202 // Shall be cleared as soon as the next key event is processed. | 1195 // Shall be cleared as soon as the next key event is processed. |
1203 EditCommands edit_commands_; | 1196 EditCommands edit_commands_; |
1204 | 1197 |
1205 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1198 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 // use the Observer interface to filter IPC messages and receive frame change | 1232 // use the Observer interface to filter IPC messages and receive frame change |
1240 // notifications. | 1233 // notifications. |
1241 // --------------------------------------------------------------------------- | 1234 // --------------------------------------------------------------------------- |
1242 | 1235 |
1243 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1236 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1244 }; | 1237 }; |
1245 | 1238 |
1246 } // namespace content | 1239 } // namespace content |
1247 | 1240 |
1248 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1241 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |