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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
28 #include "content/common/navigation_gesture.h" | 28 #include "content/common/navigation_gesture.h" |
29 #include "content/common/view_message_enums.h" | 29 #include "content/common/view_message_enums.h" |
30 #include "content/public/common/javascript_message_type.h" | 30 #include "content/public/common/javascript_message_type.h" |
31 #include "content/public/common/page_zoom.h" | 31 #include "content/public/common/page_zoom.h" |
32 #include "content/public/common/referrer.h" | 32 #include "content/public/common/referrer.h" |
33 #include "content/public/common/renderer_preferences.h" | 33 #include "content/public/common/renderer_preferences.h" |
34 #include "content/public/common/stop_find_action.h" | 34 #include "content/public/common/stop_find_action.h" |
35 #include "content/public/common/top_controls_state.h" | 35 #include "content/public/common/top_controls_state.h" |
36 #include "content/public/renderer/render_view.h" | 36 #include "content/public/renderer/render_view.h" |
| 37 #include "content/renderer/media/webmediaplayer_delegate.h" |
37 #include "content/renderer/mouse_lock_dispatcher.h" | 38 #include "content/renderer/mouse_lock_dispatcher.h" |
38 #include "content/renderer/render_frame_impl.h" | 39 #include "content/renderer/render_frame_impl.h" |
39 #include "content/renderer/render_view_pepper_helper.h" | 40 #include "content/renderer/render_view_pepper_helper.h" |
40 #include "content/renderer/render_widget.h" | 41 #include "content/renderer/render_widget.h" |
41 #include "content/renderer/renderer_webcookiejar_impl.h" | 42 #include "content/renderer/renderer_webcookiejar_impl.h" |
42 #include "content/renderer/stats_collection_observer.h" | 43 #include "content/renderer/stats_collection_observer.h" |
43 #include "ipc/ipc_platform_file.h" | 44 #include "ipc/ipc_platform_file.h" |
44 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 45 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
45 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 46 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
46 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 47 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
47 #include "third_party/WebKit/public/web/WebDataSource.h" | 48 #include "third_party/WebKit/public/web/WebDataSource.h" |
48 #include "third_party/WebKit/public/web/WebFrameClient.h" | 49 #include "third_party/WebKit/public/web/WebFrameClient.h" |
49 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 50 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
50 #include "third_party/WebKit/public/web/WebIconURL.h" | 51 #include "third_party/WebKit/public/web/WebIconURL.h" |
51 #include "third_party/WebKit/public/web/WebInputEvent.h" | 52 #include "third_party/WebKit/public/web/WebInputEvent.h" |
52 #include "third_party/WebKit/public/web/WebNavigationType.h" | 53 #include "third_party/WebKit/public/web/WebNavigationType.h" |
53 #include "third_party/WebKit/public/web/WebNode.h" | 54 #include "third_party/WebKit/public/web/WebNode.h" |
54 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" | 55 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" |
55 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 56 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
56 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 57 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
57 #include "third_party/WebKit/public/web/WebViewClient.h" | 58 #include "third_party/WebKit/public/web/WebViewClient.h" |
58 #include "ui/base/ui_base_types.h" | 59 #include "ui/base/ui_base_types.h" |
59 #include "ui/surface/transport_dib.h" | 60 #include "ui/surface/transport_dib.h" |
60 #include "webkit/common/webpreferences.h" | 61 #include "webkit/common/webpreferences.h" |
61 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 62 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
62 #include "webkit/renderer/media/webmediaplayer_delegate.h" | |
63 | 63 |
64 #if defined(OS_ANDROID) | 64 #if defined(OS_ANDROID) |
65 #include "content/renderer/android/content_detector.h" | 65 #include "content/renderer/android/content_detector.h" |
66 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" | 66 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" |
67 #endif | 67 #endif |
68 | 68 |
69 #if defined(COMPILER_MSVC) | 69 #if defined(COMPILER_MSVC) |
70 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 70 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
71 // root. VS warns when we inherit the WebWidgetClient method implementations | 71 // root. VS warns when we inherit the WebWidgetClient method implementations |
72 // from RenderWidget. It's safe to ignore that warning. | 72 // from RenderWidget. It's safe to ignore that warning. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // RenderView is an object that manages a WebView object, and provides a | 190 // RenderView is an object that manages a WebView object, and provides a |
191 // communication interface with an embedding application process | 191 // communication interface with an embedding application process |
192 // | 192 // |
193 class CONTENT_EXPORT RenderViewImpl | 193 class CONTENT_EXPORT RenderViewImpl |
194 : public RenderWidget, | 194 : public RenderWidget, |
195 NON_EXPORTED_BASE(public WebKit::WebViewClient), | 195 NON_EXPORTED_BASE(public WebKit::WebViewClient), |
196 NON_EXPORTED_BASE(public WebKit::WebFrameClient), | 196 NON_EXPORTED_BASE(public WebKit::WebFrameClient), |
197 NON_EXPORTED_BASE(public WebKit::WebPageSerializerClient), | 197 NON_EXPORTED_BASE(public WebKit::WebPageSerializerClient), |
198 public RenderView, | 198 public RenderView, |
199 NON_EXPORTED_BASE(public webkit::npapi::WebPluginPageDelegate), | 199 NON_EXPORTED_BASE(public webkit::npapi::WebPluginPageDelegate), |
200 NON_EXPORTED_BASE(public webkit_media::WebMediaPlayerDelegate), | 200 NON_EXPORTED_BASE(public WebMediaPlayerDelegate), |
201 public base::SupportsWeakPtr<RenderViewImpl> { | 201 public base::SupportsWeakPtr<RenderViewImpl> { |
202 public: | 202 public: |
203 // Creates a new RenderView. If this is a blocked popup or as a new tab, | 203 // Creates a new RenderView. If this is a blocked popup or as a new tab, |
204 // opener_id is the routing ID of the RenderView responsible for creating this | 204 // opener_id is the routing ID of the RenderView responsible for creating this |
205 // RenderView. |counter| is either a currently initialized counter, or NULL | 205 // RenderView. |counter| is either a currently initialized counter, or NULL |
206 // (in which case we treat this RenderView as a top level window). | 206 // (in which case we treat this RenderView as a top level window). |
207 static RenderViewImpl* Create( | 207 static RenderViewImpl* Create( |
208 int32 opener_id, | 208 int32 opener_id, |
209 const RendererPreferences& renderer_prefs, | 209 const RendererPreferences& renderer_prefs, |
210 const WebPreferences& webkit_prefs, | 210 const WebPreferences& webkit_prefs, |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1568 // use the Observer interface to filter IPC messages and receive frame change | 1568 // use the Observer interface to filter IPC messages and receive frame change |
1569 // notifications. | 1569 // notifications. |
1570 // --------------------------------------------------------------------------- | 1570 // --------------------------------------------------------------------------- |
1571 | 1571 |
1572 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1572 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1573 }; | 1573 }; |
1574 | 1574 |
1575 } // namespace content | 1575 } // namespace content |
1576 | 1576 |
1577 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1577 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |