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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 class DeviceOrientationDispatcher; | 136 class DeviceOrientationDispatcher; |
137 class DevToolsAgent; | 137 class DevToolsAgent; |
138 class DocumentState; | 138 class DocumentState; |
139 class ExternalPopupMenu; | 139 class ExternalPopupMenu; |
140 class FaviconHelper; | 140 class FaviconHelper; |
141 class GeolocationDispatcher; | 141 class GeolocationDispatcher; |
142 class HistoryController; | 142 class HistoryController; |
143 class HistoryEntry; | 143 class HistoryEntry; |
144 class ImageResourceFetcher; | 144 class ImageResourceFetcher; |
145 class InputTagSpeechDispatcher; | 145 class InputTagSpeechDispatcher; |
146 class LoadProgressTracker; | |
147 class MidiDispatcher; | 146 class MidiDispatcher; |
148 class MediaStreamClient; | 147 class MediaStreamClient; |
149 class MediaStreamDispatcher; | 148 class MediaStreamDispatcher; |
150 class MouseLockDispatcher; | 149 class MouseLockDispatcher; |
151 class NavigationState; | 150 class NavigationState; |
152 class PepperPluginInstanceImpl; | 151 class PepperPluginInstanceImpl; |
153 class PushMessagingDispatcher; | 152 class PushMessagingDispatcher; |
154 class RenderViewObserver; | 153 class RenderViewObserver; |
155 class RenderViewTest; | 154 class RenderViewTest; |
156 class RendererAccessibility; | 155 class RendererAccessibility; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 #endif | 277 #endif |
279 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 278 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
280 void DidHideExternalPopupMenu(); | 279 void DidHideExternalPopupMenu(); |
281 #endif | 280 #endif |
282 | 281 |
283 bool is_loading() const { return frames_in_progress_ != 0; } | 282 bool is_loading() const { return frames_in_progress_ != 0; } |
284 | 283 |
285 void FrameDidStartLoading(blink::WebFrame* frame); | 284 void FrameDidStartLoading(blink::WebFrame* frame); |
286 void FrameDidStopLoading(blink::WebFrame* frame); | 285 void FrameDidStopLoading(blink::WebFrame* frame); |
287 | 286 |
288 void FrameDidChangeLoadProgress(blink::WebFrame* frame, | |
289 double load_progress); | |
290 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 287 void FrameDidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
291 bool is_new_navigation); | 288 bool is_new_navigation); |
292 | 289 |
293 // Plugin-related functions -------------------------------------------------- | 290 // Plugin-related functions -------------------------------------------------- |
294 | 291 |
295 #if defined(ENABLE_PLUGINS) | 292 #if defined(ENABLE_PLUGINS) |
296 // Get/set the plugin which will be used as to handle document find requests. | 293 // Get/set the plugin which will be used as to handle document find requests. |
297 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { | 294 void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) { |
298 plugin_find_handler_ = plugin; | 295 plugin_find_handler_ = plugin; |
299 } | 296 } |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 // nonempty, the first item represents the currently running file chooser | 1230 // nonempty, the first item represents the currently running file chooser |
1234 // callback, and the remaining elements are the other file chooser completion | 1231 // callback, and the remaining elements are the other file chooser completion |
1235 // still waiting to be run (in order). | 1232 // still waiting to be run (in order). |
1236 struct PendingFileChooser; | 1233 struct PendingFileChooser; |
1237 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1234 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1238 | 1235 |
1239 // The current directory enumeration callback | 1236 // The current directory enumeration callback |
1240 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; | 1237 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; |
1241 int enumeration_completion_id_; | 1238 int enumeration_completion_id_; |
1242 | 1239 |
1243 // Reports load progress to the browser. | |
1244 scoped_ptr<LoadProgressTracker> load_progress_tracker_; | |
1245 | |
1246 // The SessionStorage namespace that we're assigned to has an ID, and that ID | 1240 // The SessionStorage namespace that we're assigned to has an ID, and that ID |
1247 // is passed to us upon creation. WebKit asks for this ID upon first use and | 1241 // is passed to us upon creation. WebKit asks for this ID upon first use and |
1248 // uses it whenever asking the browser process to allocate new storage areas. | 1242 // uses it whenever asking the browser process to allocate new storage areas. |
1249 int64 session_storage_namespace_id_; | 1243 int64 session_storage_namespace_id_; |
1250 | 1244 |
1251 // Stores edit commands associated to the next key event. | 1245 // Stores edit commands associated to the next key event. |
1252 // Shall be cleared as soon as the next key event is processed. | 1246 // Shall be cleared as soon as the next key event is processed. |
1253 EditCommands edit_commands_; | 1247 EditCommands edit_commands_; |
1254 | 1248 |
1255 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1249 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1289 // use the Observer interface to filter IPC messages and receive frame change | 1283 // use the Observer interface to filter IPC messages and receive frame change |
1290 // notifications. | 1284 // notifications. |
1291 // --------------------------------------------------------------------------- | 1285 // --------------------------------------------------------------------------- |
1292 | 1286 |
1293 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1287 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1294 }; | 1288 }; |
1295 | 1289 |
1296 } // namespace content | 1290 } // namespace content |
1297 | 1291 |
1298 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1292 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |