| OLD | NEW |
| 1 // Copyright (c) 2011 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_PUBLIC_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 42 // Returns the RenderView containing the given WebView. | 42 // Returns the RenderView containing the given WebView. |
| 43 static RenderView* FromWebView(WebKit::WebView* webview); | 43 static RenderView* FromWebView(WebKit::WebView* webview); |
| 44 | 44 |
| 45 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 45 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 46 // been closed but not yet destroyed are excluded). | 46 // been closed but not yet destroyed are excluded). |
| 47 static void ForEach(RenderViewVisitor* visitor); | 47 static void ForEach(RenderViewVisitor* visitor); |
| 48 | 48 |
| 49 virtual ~RenderView() {} | 49 virtual ~RenderView() {} |
| 50 | 50 |
| 51 // Get the routing ID of the view. | 51 // Get the routing ID of the view. |
| 52 virtual int GetRoutingId() const = 0; | 52 virtual int GetRoutingID() const = 0; |
| 53 | 53 |
| 54 // Page IDs allow the browser to identify pages in each renderer process for | 54 // Page IDs allow the browser to identify pages in each renderer process for |
| 55 // keeping back/forward history in sync. | 55 // keeping back/forward history in sync. |
| 56 // Note that this is NOT updated for every main frame navigation, only for | 56 // Note that this is NOT updated for every main frame navigation, only for |
| 57 // "regular" navigations that go into session history. In particular, client | 57 // "regular" navigations that go into session history. In particular, client |
| 58 // redirects, like the page cycler uses (document.location.href="foo") do not | 58 // redirects, like the page cycler uses (document.location.href="foo") do not |
| 59 // count as regular navigations and do not increment the page id. | 59 // count as regular navigations and do not increment the page id. |
| 60 virtual int GetPageId() = 0; | 60 virtual int GetPageId() = 0; |
| 61 | 61 |
| 62 // Returns the size of the view. | 62 // Returns the size of the view. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // The client should handle the navigation externally. | 126 // The client should handle the navigation externally. |
| 127 virtual void LoadURLExternally( | 127 virtual void LoadURLExternally( |
| 128 WebKit::WebFrame* frame, | 128 WebKit::WebFrame* frame, |
| 129 const WebKit::WebURLRequest& request, | 129 const WebKit::WebURLRequest& request, |
| 130 WebKit::WebNavigationPolicy policy) = 0; | 130 WebKit::WebNavigationPolicy policy) = 0; |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 } // namespace content | 133 } // namespace content |
| 134 | 134 |
| 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |