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

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: cleanip 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
1011 // stop notifications. 1008 // stop notifications.
1012 // TODO(japhet): This state will need to move to the browser process
1013 // (probably WebContents) for site isolation.
1014 int frames_in_progress_; 1009 int frames_in_progress_;
nasko 2014/05/05 23:51:12 I don't think this should stay here long term, sho
Avi (use Gerrit) 2014/05/06 00:03:39 Done.
1015 1010
1016 // The list of page IDs for each history item this RenderView knows about. 1011 // 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 1012 // 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 1013 // restored from a previous session. This lets us detect attempts to
1019 // navigate to stale entries that have been cropped from our history. 1014 // navigate to stale entries that have been cropped from our history.
1020 std::vector<int32> history_page_ids_; 1015 std::vector<int32> history_page_ids_;
1021 1016
1022 // Page info ----------------------------------------------------------------- 1017 // Page info -----------------------------------------------------------------
1023 1018
1024 // The last gotten main frame's encoding. 1019 // The last gotten main frame's encoding.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 // nonempty, the first item represents the currently running file chooser 1178 // nonempty, the first item represents the currently running file chooser
1184 // callback, and the remaining elements are the other file chooser completion 1179 // callback, and the remaining elements are the other file chooser completion
1185 // still waiting to be run (in order). 1180 // still waiting to be run (in order).
1186 struct PendingFileChooser; 1181 struct PendingFileChooser;
1187 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; 1182 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_;
1188 1183
1189 // The current directory enumeration callback 1184 // The current directory enumeration callback
1190 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_; 1185 std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_;
1191 int enumeration_completion_id_; 1186 int enumeration_completion_id_;
1192 1187
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 1188 // 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 1189 // 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. 1190 // uses it whenever asking the browser process to allocate new storage areas.
1199 int64 session_storage_namespace_id_; 1191 int64 session_storage_namespace_id_;
1200 1192
1201 // Stores edit commands associated to the next key event. 1193 // Stores edit commands associated to the next key event.
1202 // Shall be cleared as soon as the next key event is processed. 1194 // Shall be cleared as soon as the next key event is processed.
1203 EditCommands edit_commands_; 1195 EditCommands edit_commands_;
1204 1196
1205 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1197 #if defined(OS_MACOSX) || defined(OS_ANDROID)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 // use the Observer interface to filter IPC messages and receive frame change 1231 // use the Observer interface to filter IPC messages and receive frame change
1240 // notifications. 1232 // notifications.
1241 // --------------------------------------------------------------------------- 1233 // ---------------------------------------------------------------------------
1242 1234
1243 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1235 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1244 }; 1236 };
1245 1237
1246 } // namespace content 1238 } // namespace content
1247 1239
1248 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1240 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698