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