| OLD | NEW |
| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 int32 max_page_id, | 229 int32 max_page_id, |
| 230 bool window_was_created_with_opener); | 230 bool window_was_created_with_opener); |
| 231 | 231 |
| 232 base::TerminationStatus render_view_termination_status() const { | 232 base::TerminationStatus render_view_termination_status() const { |
| 233 return render_view_termination_status_; | 233 return render_view_termination_status_; |
| 234 } | 234 } |
| 235 | 235 |
| 236 // Returns the content specific prefs for this RenderViewHost. | 236 // Returns the content specific prefs for this RenderViewHost. |
| 237 WebPreferences ComputeWebkitPrefs(const GURL& url); | 237 WebPreferences ComputeWebkitPrefs(const GURL& url); |
| 238 | 238 |
| 239 // Sends the given navigation message. Use this rather than sending it | |
| 240 // yourself since this does the internal bookkeeping described below. This | |
| 241 // function takes ownership of the provided message pointer. | |
| 242 // | |
| 243 // If a cross-site request is in progress, we may be suspended while waiting | |
| 244 // for the onbeforeunload handler, so this function might buffer the message | |
| 245 // rather than sending it. | |
| 246 // TODO(nasko): Remove this method once all callers are converted to use | |
| 247 // RenderFrameHostImpl. | |
| 248 void Navigate(const FrameMsg_Navigate_Params& message); | |
| 249 | |
| 250 // Load the specified URL, this is a shortcut for Navigate(). | |
| 251 // TODO(nasko): Remove this method once all callers are converted to use | |
| 252 // RenderFrameHostImpl. | |
| 253 void NavigateToURL(const GURL& url); | |
| 254 | |
| 255 // Whether this RenderViewHost has been swapped out to be displayed by a | 239 // Whether this RenderViewHost has been swapped out to be displayed by a |
| 256 // different process. | 240 // different process. |
| 257 bool IsSwappedOut() const { return rvh_state_ == STATE_SWAPPED_OUT; } | 241 bool IsSwappedOut() const { return rvh_state_ == STATE_SWAPPED_OUT; } |
| 258 | 242 |
| 259 // The current state of this RVH. | 243 // The current state of this RVH. |
| 260 RenderViewHostImplState rvh_state() const { return rvh_state_; } | 244 RenderViewHostImplState rvh_state() const { return rvh_state_; } |
| 261 | 245 |
| 262 // Tells the renderer that this RenderView will soon be swapped out, and thus | 246 // Tells the renderer that this RenderView will soon be swapped out, and thus |
| 263 // not to create any new modal dialogs until it happens. This must be done | 247 // not to create any new modal dialogs until it happens. This must be done |
| 264 // separately so that the PageGroupLoadDeferrers of any current dialogs are no | 248 // separately so that the PageGroupLoadDeferrers of any current dialogs are no |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 525 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 542 }; | 526 }; |
| 543 | 527 |
| 544 #if defined(COMPILER_MSVC) | 528 #if defined(COMPILER_MSVC) |
| 545 #pragma warning(pop) | 529 #pragma warning(pop) |
| 546 #endif | 530 #endif |
| 547 | 531 |
| 548 } // namespace content | 532 } // namespace content |
| 549 | 533 |
| 550 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 534 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |