| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/id_map.h" | 16 #include "base/id_map.h" |
| 17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
| 20 #include "base/process/process.h" | 20 #include "base/process/process.h" |
| 21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
| 22 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
| 23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
| 24 #include "cc/input/top_controls_state.h" | 24 #include "cc/input/top_controls_state.h" |
| 25 #include "cc/resources/shared_bitmap.h" | 25 #include "cc/resources/shared_bitmap.h" |
| 26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
| 27 #include "content/common/drag_event_source_info.h" | 27 #include "content/common/drag_event_source_info.h" |
| 28 #include "content/common/edit_command.h" | 28 #include "content/common/edit_command.h" |
| 29 #include "content/common/frame_message_enums.h" | 29 #include "content/common/frame_message_enums.h" |
| 30 #include "content/common/frame_replication_state.h" |
| 30 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 31 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 31 #include "content/common/navigation_gesture.h" | 32 #include "content/common/navigation_gesture.h" |
| 32 #include "content/common/navigation_params.h" | 33 #include "content/common/navigation_params.h" |
| 33 #include "content/common/view_message_enums.h" | 34 #include "content/common/view_message_enums.h" |
| 34 #include "content/public/common/page_zoom.h" | 35 #include "content/public/common/page_zoom.h" |
| 35 #include "content/public/common/referrer.h" | 36 #include "content/public/common/referrer.h" |
| 36 #include "content/public/common/renderer_preferences.h" | 37 #include "content/public/common/renderer_preferences.h" |
| 37 #include "content/public/common/stop_find_action.h" | 38 #include "content/public/common/stop_find_action.h" |
| 38 #include "content/public/common/top_controls_state.h" | 39 #include "content/public/common/top_controls_state.h" |
| 39 #include "content/public/common/web_preferences.h" | 40 #include "content/public/common/web_preferences.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 NON_EXPORTED_BASE(public blink::WebPageSerializerClient), | 157 NON_EXPORTED_BASE(public blink::WebPageSerializerClient), |
| 157 public RenderView, | 158 public RenderView, |
| 158 public base::SupportsWeakPtr<RenderViewImpl> { | 159 public base::SupportsWeakPtr<RenderViewImpl> { |
| 159 public: | 160 public: |
| 160 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView | 161 // Creates a new RenderView. |opener_id| is the routing ID of the RenderView |
| 161 // responsible for creating this RenderView. Note that if the original opener | 162 // responsible for creating this RenderView. Note that if the original opener |
| 162 // has been closed, |window_was_created_with_opener| will be true and | 163 // has been closed, |window_was_created_with_opener| will be true and |
| 163 // |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the | 164 // |opener_id| will be MSG_ROUTING_NONE. When |swapped_out| is true, the |
| 164 // |proxy_routing_id| is specified, so a RenderFrameProxy can be created for | 165 // |proxy_routing_id| is specified, so a RenderFrameProxy can be created for |
| 165 // this RenderView's main RenderFrame. | 166 // this RenderView's main RenderFrame. |
| 166 static RenderViewImpl* Create(int32 opener_id, | 167 static RenderViewImpl* Create( |
| 167 bool window_was_created_with_opener, | 168 int32 opener_id, |
| 168 const RendererPreferences& renderer_prefs, | 169 bool window_was_created_with_opener, |
| 169 const WebPreferences& webkit_prefs, | 170 const RendererPreferences& renderer_prefs, |
| 170 int32 routing_id, | 171 const WebPreferences& webkit_prefs, |
| 171 int32 main_frame_routing_id, | 172 int32 routing_id, |
| 172 int32 surface_id, | 173 int32 main_frame_routing_id, |
| 173 int64 session_storage_namespace_id, | 174 int32 surface_id, |
| 174 const base::string16& frame_name, | 175 int64 session_storage_namespace_id, |
| 175 bool is_renderer_created, | 176 const base::string16& frame_name, |
| 176 bool swapped_out, | 177 bool is_renderer_created, |
| 177 int32 proxy_routing_id, | 178 bool swapped_out, |
| 178 bool hidden, | 179 int32 proxy_routing_id, |
| 179 bool never_visible, | 180 bool hidden, |
| 180 int32 next_page_id, | 181 bool never_visible, |
| 181 const blink::WebScreenInfo& screen_info); | 182 int32 next_page_id, |
| 183 const blink::WebScreenInfo& screen_info, |
| 184 const FrameReplicationState& remote_frame_state); |
| 182 | 185 |
| 183 // Used by content_layouttest_support to hook into the creation of | 186 // Used by content_layouttest_support to hook into the creation of |
| 184 // RenderViewImpls. | 187 // RenderViewImpls. |
| 185 static void InstallCreateHook( | 188 static void InstallCreateHook( |
| 186 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); | 189 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); |
| 187 | 190 |
| 188 // Returns the RenderViewImpl containing the given WebView. | 191 // Returns the RenderViewImpl containing the given WebView. |
| 189 static RenderViewImpl* FromWebView(blink::WebView* webview); | 192 static RenderViewImpl* FromWebView(blink::WebView* webview); |
| 190 | 193 |
| 191 // Returns the RenderViewImpl for the given routing ID. | 194 // Returns the RenderViewImpl for the given routing ID. |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 // use the Observer interface to filter IPC messages and receive frame change | 1108 // use the Observer interface to filter IPC messages and receive frame change |
| 1106 // notifications. | 1109 // notifications. |
| 1107 // --------------------------------------------------------------------------- | 1110 // --------------------------------------------------------------------------- |
| 1108 | 1111 |
| 1109 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1112 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1110 }; | 1113 }; |
| 1111 | 1114 |
| 1112 } // namespace content | 1115 } // namespace content |
| 1113 | 1116 |
| 1114 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1117 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |