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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void OnSwappedOut(bool timed_out); 120 void OnSwappedOut(bool timed_out);
121 bool is_swapped_out() { return is_swapped_out_; } 121 bool is_swapped_out() { return is_swapped_out_; }
122 void set_swapped_out(bool is_swapped_out) { 122 void set_swapped_out(bool is_swapped_out) {
123 is_swapped_out_ = is_swapped_out; 123 is_swapped_out_ = is_swapped_out;
124 } 124 }
125 125
126 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called 126 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called
127 // when the SwapOutACK is received. 127 // when the SwapOutACK is received.
128 void SetPendingShutdown(const base::Closure& on_swap_out); 128 void SetPendingShutdown(const base::Closure& on_swap_out);
129 129
130 // TODO(nasko): This method is public so RenderViewHostImpl::Navigate can
131 // call it directly. It should be made private once Navigate moves here.
132 // |to_different_document| will be true unless the load is a fragment
133 // navigation, or triggered by history.pushState/replaceState.
134 void OnDidStartLoading(bool to_different_document);
135
136 // Sends the given navigation message. Use this rather than sending it 130 // Sends the given navigation message. Use this rather than sending it
137 // yourself since this does the internal bookkeeping described below. This 131 // yourself since this does the internal bookkeeping described below. This
138 // function takes ownership of the provided message pointer. 132 // function takes ownership of the provided message pointer.
139 // 133 //
140 // If a cross-site request is in progress, we may be suspended while waiting 134 // If a cross-site request is in progress, we may be suspended while waiting
141 // for the onbeforeunload handler, so this function might buffer the message 135 // for the onbeforeunload handler, so this function might buffer the message
142 // rather than sending it. 136 // rather than sending it.
143 void Navigate(const FrameMsg_Navigate_Params& params); 137 void Navigate(const FrameMsg_Navigate_Params& params);
144 138
145 // Load the specified URL; this is a shortcut for Navigate(). 139 // Load the specified URL; this is a shortcut for Navigate().
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void OnDidFailProvisionalLoadWithError( 189 void OnDidFailProvisionalLoadWithError(
196 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); 190 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params);
197 void OnDidFailLoadWithError( 191 void OnDidFailLoadWithError(
198 const GURL& url, 192 const GURL& url,
199 int error_code, 193 int error_code,
200 const base::string16& error_description); 194 const base::string16& error_description);
201 void OnDidRedirectProvisionalLoad(int32 page_id, 195 void OnDidRedirectProvisionalLoad(int32 page_id,
202 const GURL& source_url, 196 const GURL& source_url,
203 const GURL& target_url); 197 const GURL& target_url);
204 void OnNavigate(const IPC::Message& msg); 198 void OnNavigate(const IPC::Message& msg);
205 void OnDidStopLoading();
206 void OnBeforeUnloadACK( 199 void OnBeforeUnloadACK(
207 bool proceed, 200 bool proceed,
208 const base::TimeTicks& renderer_before_unload_start_time, 201 const base::TimeTicks& renderer_before_unload_start_time,
209 const base::TimeTicks& renderer_before_unload_end_time); 202 const base::TimeTicks& renderer_before_unload_end_time);
210 void OnSwapOutACK(); 203 void OnSwapOutACK();
211 void OnContextMenu(const ContextMenuParams& params); 204 void OnContextMenu(const ContextMenuParams& params);
212 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); 205 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result);
213 void OnRunJavaScriptMessage(const base::string16& message, 206 void OnRunJavaScriptMessage(const base::string16& message,
214 const base::string16& default_prompt, 207 const base::string16& default_prompt,
215 const GURL& frame_url, 208 const GURL& frame_url,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 base::TimeTicks send_before_unload_start_time_; 276 base::TimeTicks send_before_unload_start_time_;
284 277
285 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 278 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
286 279
287 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 280 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
288 }; 281 };
289 282
290 } // namespace content 283 } // namespace content
291 284
292 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 285 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698