OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void OnSwappedOut(bool timed_out); | 125 void OnSwappedOut(bool timed_out); |
126 bool is_swapped_out() { return is_swapped_out_; } | 126 bool is_swapped_out() { return is_swapped_out_; } |
127 void set_swapped_out(bool is_swapped_out) { | 127 void set_swapped_out(bool is_swapped_out) { |
128 is_swapped_out_ = is_swapped_out; | 128 is_swapped_out_ = is_swapped_out; |
129 } | 129 } |
130 | 130 |
131 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called | 131 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called |
132 // when the SwapOutACK is received. | 132 // when the SwapOutACK is received. |
133 void SetPendingShutdown(const base::Closure& on_swap_out); | 133 void SetPendingShutdown(const base::Closure& on_swap_out); |
134 | 134 |
135 // TODO(nasko): This method is public so RenderViewHostImpl::Navigate can | |
136 // call it directly. It should be made private once Navigate moves here. | |
137 // |to_different_document| will be true unless the load is a fragment | |
138 // navigation, or triggered by history.pushState/replaceState. | |
139 void OnDidStartLoading(bool to_different_document); | |
140 | |
141 // Sends the given navigation message. Use this rather than sending it | 135 // Sends the given navigation message. Use this rather than sending it |
142 // yourself since this does the internal bookkeeping described below. This | 136 // yourself since this does the internal bookkeeping described below. This |
143 // function takes ownership of the provided message pointer. | 137 // function takes ownership of the provided message pointer. |
144 // | 138 // |
145 // If a cross-site request is in progress, we may be suspended while waiting | 139 // If a cross-site request is in progress, we may be suspended while waiting |
146 // for the onbeforeunload handler, so this function might buffer the message | 140 // for the onbeforeunload handler, so this function might buffer the message |
147 // rather than sending it. | 141 // rather than sending it. |
148 void Navigate(const FrameMsg_Navigate_Params& params); | 142 void Navigate(const FrameMsg_Navigate_Params& params); |
149 | 143 |
150 // Load the specified URL; this is a shortcut for Navigate(). | 144 // Load the specified URL; this is a shortcut for Navigate(). |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void OnDidFailProvisionalLoadWithError( | 194 void OnDidFailProvisionalLoadWithError( |
201 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); | 195 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); |
202 void OnDidFailLoadWithError( | 196 void OnDidFailLoadWithError( |
203 const GURL& url, | 197 const GURL& url, |
204 int error_code, | 198 int error_code, |
205 const base::string16& error_description); | 199 const base::string16& error_description); |
206 void OnDidRedirectProvisionalLoad(int32 page_id, | 200 void OnDidRedirectProvisionalLoad(int32 page_id, |
207 const GURL& source_url, | 201 const GURL& source_url, |
208 const GURL& target_url); | 202 const GURL& target_url); |
209 void OnNavigate(const IPC::Message& msg); | 203 void OnNavigate(const IPC::Message& msg); |
210 void OnDidStopLoading(); | |
211 void OnBeforeUnloadACK( | 204 void OnBeforeUnloadACK( |
212 bool proceed, | 205 bool proceed, |
213 const base::TimeTicks& renderer_before_unload_start_time, | 206 const base::TimeTicks& renderer_before_unload_start_time, |
214 const base::TimeTicks& renderer_before_unload_end_time); | 207 const base::TimeTicks& renderer_before_unload_end_time); |
215 void OnSwapOutACK(); | 208 void OnSwapOutACK(); |
216 void OnContextMenu(const ContextMenuParams& params); | 209 void OnContextMenu(const ContextMenuParams& params); |
217 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 210 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
218 void OnRunJavaScriptMessage(const base::string16& message, | 211 void OnRunJavaScriptMessage(const base::string16& message, |
219 const base::string16& default_prompt, | 212 const base::string16& default_prompt, |
220 const GURL& frame_url, | 213 const GURL& frame_url, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 base::TimeTicks send_before_unload_start_time_; | 287 base::TimeTicks send_before_unload_start_time_; |
295 | 288 |
296 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 289 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
297 | 290 |
298 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 291 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
299 }; | 292 }; |
300 | 293 |
301 } // namespace content | 294 } // namespace content |
302 | 295 |
303 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 296 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |