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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 return render_view_termination_status_; | 250 return render_view_termination_status_; |
251 } | 251 } |
252 | 252 |
253 // Sends the given navigation message. Use this rather than sending it | 253 // Sends the given navigation message. Use this rather than sending it |
254 // yourself since this does the internal bookkeeping described below. This | 254 // yourself since this does the internal bookkeeping described below. This |
255 // function takes ownership of the provided message pointer. | 255 // function takes ownership of the provided message pointer. |
256 // | 256 // |
257 // If a cross-site request is in progress, we may be suspended while waiting | 257 // If a cross-site request is in progress, we may be suspended while waiting |
258 // for the onbeforeunload handler, so this function might buffer the message | 258 // for the onbeforeunload handler, so this function might buffer the message |
259 // rather than sending it. | 259 // rather than sending it. |
260 void Navigate(const ViewMsg_Navigate_Params& message); | 260 virtual void Navigate(const ViewMsg_Navigate_Params& message); |
261 | 261 |
262 // Load the specified URL, this is a shortcut for Navigate(). | 262 // Load the specified URL, this is a shortcut for Navigate(). |
263 void NavigateToURL(const GURL& url); | 263 void NavigateToURL(const GURL& url); |
264 | 264 |
265 // Returns whether navigation messages are currently suspended for this | 265 // Returns whether navigation messages are currently suspended for this |
266 // RenderViewHost. Only true during a cross-site navigation, while waiting | 266 // RenderViewHost. Only true during a cross-site navigation, while waiting |
267 // for the onbeforeunload handler. | 267 // for the onbeforeunload handler. |
268 bool are_navigations_suspended() const { return navigations_suspended_; } | 268 bool are_navigations_suspended() const { return navigations_suspended_; } |
269 | 269 |
270 // Suspends (or unsuspends) any navigation messages from being sent from this | 270 // Suspends (or unsuspends) any navigation messages from being sent from this |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 657 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
658 }; | 658 }; |
659 | 659 |
660 #if defined(COMPILER_MSVC) | 660 #if defined(COMPILER_MSVC) |
661 #pragma warning(pop) | 661 #pragma warning(pop) |
662 #endif | 662 #endif |
663 | 663 |
664 } // namespace content | 664 } // namespace content |
665 | 665 |
666 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 666 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |