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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 // The offset of the current item in the history list. | 975 // The offset of the current item in the history list. |
979 int history_list_offset_; | 976 int history_list_offset_; |
980 | 977 |
981 // The RenderView's current impression of the history length. This includes | 978 // The RenderView's current impression of the history length. This includes |
982 // any items that have committed in this process, but because of cross-process | 979 // any items that have committed in this process, but because of cross-process |
983 // navigations, the history may have some entries that were committed in other | 980 // navigations, the history may have some entries that were committed in other |
984 // processes. We won't know about them until the next navigation in this | 981 // processes. We won't know about them until the next navigation in this |
985 // process. | 982 // process. |
986 int history_list_length_; | 983 int history_list_length_; |
987 | 984 |
988 // Counter to track how many frames have sent start notifications but not | 985 // Counter to track how many frames have sent start notifications but not stop |
989 // stop notifications. | 986 // notifications. TODO(avi): Remove this once DidStartLoading/DidStopLoading |
990 // TODO(japhet): This state will need to move to the browser process | 987 // are gone. |
991 // (probably WebContents) for site isolation. | |
992 int frames_in_progress_; | 988 int frames_in_progress_; |
993 | 989 |
994 // The list of page IDs for each history item this RenderView knows about. | 990 // The list of page IDs for each history item this RenderView knows about. |
995 // Some entries may be -1 if they were rendered by other processes or were | 991 // Some entries may be -1 if they were rendered by other processes or were |
996 // restored from a previous session. This lets us detect attempts to | 992 // restored from a previous session. This lets us detect attempts to |
997 // navigate to stale entries that have been cropped from our history. | 993 // navigate to stale entries that have been cropped from our history. |
998 std::vector<int32> history_page_ids_; | 994 std::vector<int32> history_page_ids_; |
999 | 995 |
1000 // UI state ------------------------------------------------------------------ | 996 // UI state ------------------------------------------------------------------ |
1001 | 997 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 // nonempty, the first item represents the currently running file chooser | 1152 // nonempty, the first item represents the currently running file chooser |
1157 // callback, and the remaining elements are the other file chooser completion | 1153 // callback, and the remaining elements are the other file chooser completion |
1158 // still waiting to be run (in order). | 1154 // still waiting to be run (in order). |
1159 struct PendingFileChooser; | 1155 struct PendingFileChooser; |
1160 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1156 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1161 | 1157 |
1162 // The current directory enumeration callback | 1158 // The current directory enumeration callback |
1163 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; | 1159 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; |
1164 int enumeration_completion_id_; | 1160 int enumeration_completion_id_; |
1165 | 1161 |
1166 // Reports load progress to the browser. | |
1167 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | |
1168 | |
1169 // The SessionStorage namespace that we're assigned to has an ID, and that ID | 1162 // The SessionStorage namespace that we're assigned to has an ID, and that ID |
1170 // is passed to us upon creation. WebKit asks for this ID upon first use and | 1163 // is passed to us upon creation. WebKit asks for this ID upon first use and |
1171 // uses it whenever asking the browser process to allocate new storage areas. | 1164 // uses it whenever asking the browser process to allocate new storage areas. |
1172 int64 session_storage_namespace_id_; | 1165 int64 session_storage_namespace_id_; |
1173 | 1166 |
1174 // Stores edit commands associated to the next key event. | 1167 // Stores edit commands associated to the next key event. |
1175 // Shall be cleared as soon as the next key event is processed. | 1168 // Shall be cleared as soon as the next key event is processed. |
1176 EditCommands edit_commands_; | 1169 EditCommands edit_commands_; |
1177 | 1170 |
1178 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1171 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 // use the Observer interface to filter IPC messages and receive frame change | 1205 // use the Observer interface to filter IPC messages and receive frame change |
1213 // notifications. | 1206 // notifications. |
1214 // --------------------------------------------------------------------------- | 1207 // --------------------------------------------------------------------------- |
1215 | 1208 |
1216 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1209 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1217 }; | 1210 }; |
1218 | 1211 |
1219 } // namespace content | 1212 } // namespace content |
1220 | 1213 |
1221 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1214 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |