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

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

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

Powered by Google App Engine
This is Rietveld 408576698