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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 #endif | 272 #endif |
274 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 273 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
275 void DidHideExternalPopupMenu(); | 274 void DidHideExternalPopupMenu(); |
276 #endif | 275 #endif |
277 | 276 |
278 bool is_loading() const { return frames_in_progress_ != 0; } | 277 bool is_loading() const { return frames_in_progress_ != 0; } |
279 | 278 |
280 void FrameDidStartLoading(blink::WebFrame* frame); | 279 void FrameDidStartLoading(blink::WebFrame* frame); |
281 void FrameDidStopLoading(blink::WebFrame* frame); | 280 void FrameDidStopLoading(blink::WebFrame* frame); |
282 | 281 |
283 void FrameDidChangeLoadProgress(blink::WebFrame* frame, | |
284 double load_progress); | |
285 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 282 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
286 bool is_new_navigation); | 283 bool is_new_navigation); |
287 | 284 |
288 // Plugin-related functions -------------------------------------------------- | 285 // Plugin-related functions -------------------------------------------------- |
289 | 286 |
290 #if defined(ENABLE_PLUGINS) | 287 #if defined(ENABLE_PLUGINS) |
291 // Get/set the plugin which will be used as to handle document find requests. | 288 // Get/set the plugin which will be used as to handle document find requests. |
292 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { | 289 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { |
293 plugin_find_handler_ = plugin; | 290 plugin_find_handler_ = plugin; |
294 } | 291 } |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 // The offset of the current item in the history list. | 983 // The offset of the current item in the history list. |
987 int history_list_offset_; | 984 int history_list_offset_; |
988 | 985 |
989 // The RenderView's current impression of the history length. This includes | 986 // The RenderView's current impression of the history length. This includes |
990 // any items that have committed in this process, but because of cross-process | 987 // any items that have committed in this process, but because of cross-process |
991 // navigations, the history may have some entries that were committed in other | 988 // navigations, the history may have some entries that were committed in other |
992 // processes. We won't know about them until the next navigation in this | 989 // processes. We won't know about them until the next navigation in this |
993 // process. | 990 // process. |
994 int history_list_length_; | 991 int history_list_length_; |
995 | 992 |
996 // Counter to track how many frames have sent start notifications but not | 993 // Counter to track how many frames have sent start notifications but not stop |
997 // stop notifications. | 994 // notifications. TODO(avi): Remove this once DidStartLoading/DidStopLoading |
998 // TODO(japhet): This state will need to move to the browser process | 995 // are gone. |
999 // (probably WebContents) for site isolation. | |
1000 int frames_in_progress_; | 996 int frames_in_progress_; |
1001 | 997 |
1002 // The list of page IDs for each history item this RenderView knows about. | 998 // The list of page IDs for each history item this RenderView knows about. |
1003 // Some entries may be -1 if they were rendered by other processes or were | 999 // Some entries may be -1 if they were rendered by other processes or were |
1004 // restored from a previous session. This lets us detect attempts to | 1000 // restored from a previous session. This lets us detect attempts to |
1005 // navigate to stale entries that have been cropped from our history. | 1001 // navigate to stale entries that have been cropped from our history. |
1006 std::vector<int32> history_page_ids_; | 1002 std::vector<int32> history_page_ids_; |
1007 | 1003 |
1008 // UI state ------------------------------------------------------------------ | 1004 // UI state ------------------------------------------------------------------ |
1009 | 1005 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 // nonempty, the first item represents the currently running file chooser | 1160 // nonempty, the first item represents the currently running file chooser |
1165 // callback, and the remaining elements are the other file chooser completion | 1161 // callback, and the remaining elements are the other file chooser completion |
1166 // still waiting to be run (in order). | 1162 // still waiting to be run (in order). |
1167 struct PendingFileChooser; | 1163 struct PendingFileChooser; |
1168 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1164 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1169 | 1165 |
1170 // The current directory enumeration callback | 1166 // The current directory enumeration callback |
1171 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; | 1167 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; |
1172 int enumeration_completion_id_; | 1168 int enumeration_completion_id_; |
1173 | 1169 |
1174 // Reports load progress to the browser. | |
1175 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | |
1176 | |
1177 // The SessionStorage namespace that we're assigned to has an ID, and that ID | 1170 // The SessionStorage namespace that we're assigned to has an ID, and that ID |
1178 // is passed to us upon creation. WebKit asks for this ID upon first use and | 1171 // is passed to us upon creation. WebKit asks for this ID upon first use and |
1179 // uses it whenever asking the browser process to allocate new storage areas. | 1172 // uses it whenever asking the browser process to allocate new storage areas. |
1180 int64 session_storage_namespace_id_; | 1173 int64 session_storage_namespace_id_; |
1181 | 1174 |
1182 // Stores edit commands associated to the next key event. | 1175 // Stores edit commands associated to the next key event. |
1183 // Shall be cleared as soon as the next key event is processed. | 1176 // Shall be cleared as soon as the next key event is processed. |
1184 EditCommands edit_commands_; | 1177 EditCommands edit_commands_; |
1185 | 1178 |
1186 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1179 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 // use the Observer interface to filter IPC messages and receive frame change | 1213 // use the Observer interface to filter IPC messages and receive frame change |
1221 // notifications. | 1214 // notifications. |
1222 // --------------------------------------------------------------------------- | 1215 // --------------------------------------------------------------------------- |
1223 | 1216 |
1224 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1217 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1225 }; | 1218 }; |
1226 | 1219 |
1227 } // namespace content | 1220 } // namespace content |
1228 | 1221 |
1229 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1222 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |