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