| 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_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_sender.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 | 14 |
| 15 namespace webkit_glue { | 15 namespace webkit_glue { |
| 16 struct WebPreferences; | 16 struct WebPreferences; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace WebKit { | 19 namespace WebKit { |
| 20 class WebFrame; | 20 class WebFrame; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace webkit { | 34 namespace webkit { |
| 35 struct WebPluginInfo; | 35 struct WebPluginInfo; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace content { | 38 namespace content { |
| 39 | 39 |
| 40 class RenderViewVisitor; | 40 class RenderViewVisitor; |
| 41 | 41 |
| 42 class CONTENT_EXPORT RenderView : public IPC::Message::Sender { | 42 class CONTENT_EXPORT RenderView : public IPC::Sender { |
| 43 public: | 43 public: |
| 44 // Returns the RenderView containing the given WebView. | 44 // Returns the RenderView containing the given WebView. |
| 45 static RenderView* FromWebView(WebKit::WebView* webview); | 45 static RenderView* FromWebView(WebKit::WebView* webview); |
| 46 | 46 |
| 47 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 47 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 48 // been closed but not yet destroyed are excluded). | 48 // been closed but not yet destroyed are excluded). |
| 49 static void ForEach(RenderViewVisitor* visitor); | 49 static void ForEach(RenderViewVisitor* visitor); |
| 50 | 50 |
| 51 virtual ~RenderView() {} | 51 virtual ~RenderView() {} |
| 52 | 52 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // The client should handle the navigation externally. | 125 // The client should handle the navigation externally. |
| 126 virtual void LoadURLExternally( | 126 virtual void LoadURLExternally( |
| 127 WebKit::WebFrame* frame, | 127 WebKit::WebFrame* frame, |
| 128 const WebKit::WebURLRequest& request, | 128 const WebKit::WebURLRequest& request, |
| 129 WebKit::WebNavigationPolicy policy) = 0; | 129 WebKit::WebNavigationPolicy policy) = 0; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 } // namespace content | 132 } // namespace content |
| 133 | 133 |
| 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |