| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 public: | 177 public: |
| 178 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the | 178 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the |
| 179 // parent of the WebView HWND that will be created. If this is a constrained | 179 // parent of the WebView HWND that will be created. If this is a constrained |
| 180 // popup or as a new tab, opener_id is the routing ID of the RenderView | 180 // popup or as a new tab, opener_id is the routing ID of the RenderView |
| 181 // responsible for creating this RenderView (corresponding to parent_hwnd). | 181 // responsible for creating this RenderView (corresponding to parent_hwnd). |
| 182 // |counter| is either a currently initialized counter, or NULL (in which case | 182 // |counter| is either a currently initialized counter, or NULL (in which case |
| 183 // we treat this RenderView as a top level window). | 183 // we treat this RenderView as a top level window). |
| 184 static RenderView* Create( | 184 static RenderView* Create( |
| 185 RenderThreadBase* render_thread, | 185 RenderThreadBase* render_thread, |
| 186 gfx::NativeViewId parent_hwnd, | 186 gfx::NativeViewId parent_hwnd, |
| 187 gfx::PluginWindowHandle compositing_surface, |
| 187 int32 opener_id, | 188 int32 opener_id, |
| 188 const RendererPreferences& renderer_prefs, | 189 const RendererPreferences& renderer_prefs, |
| 189 const WebPreferences& webkit_prefs, | 190 const WebPreferences& webkit_prefs, |
| 190 SharedRenderViewCounter* counter, | 191 SharedRenderViewCounter* counter, |
| 191 int32 routing_id, | 192 int32 routing_id, |
| 192 int64 session_storage_namespace_id, | 193 int64 session_storage_namespace_id, |
| 193 const string16& frame_name); | 194 const string16& frame_name); |
| 194 | 195 |
| 195 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 196 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 196 // been closed but not yet destroyed are excluded). | 197 // been closed but not yet destroyed are excluded). |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 }; | 675 }; |
| 675 | 676 |
| 676 enum ErrorPageType { | 677 enum ErrorPageType { |
| 677 DNS_ERROR, | 678 DNS_ERROR, |
| 678 HTTP_404, | 679 HTTP_404, |
| 679 CONNECTION_ERROR, | 680 CONNECTION_ERROR, |
| 680 }; | 681 }; |
| 681 | 682 |
| 682 RenderView(RenderThreadBase* render_thread, | 683 RenderView(RenderThreadBase* render_thread, |
| 683 gfx::NativeViewId parent_hwnd, | 684 gfx::NativeViewId parent_hwnd, |
| 685 gfx::PluginWindowHandle compositing_surface, |
| 684 int32 opener_id, | 686 int32 opener_id, |
| 685 const RendererPreferences& renderer_prefs, | 687 const RendererPreferences& renderer_prefs, |
| 686 const WebPreferences& webkit_prefs, | 688 const WebPreferences& webkit_prefs, |
| 687 SharedRenderViewCounter* counter, | 689 SharedRenderViewCounter* counter, |
| 688 int32 routing_id, | 690 int32 routing_id, |
| 689 int64 session_storage_namespace_id, | 691 int64 session_storage_namespace_id, |
| 690 const string16& frame_name); | 692 const string16& frame_name); |
| 691 | 693 |
| 692 // Do not delete directly. This class is reference counted. | 694 // Do not delete directly. This class is reference counted. |
| 693 virtual ~RenderView(); | 695 virtual ~RenderView(); |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 // bunch of stuff, you should probably create a helper class and put your | 1317 // bunch of stuff, you should probably create a helper class and put your |
| 1316 // data and methods on that to avoid bloating RenderView more. You can use | 1318 // data and methods on that to avoid bloating RenderView more. You can use |
| 1317 // the Observer interface to filter IPC messages and receive frame change | 1319 // the Observer interface to filter IPC messages and receive frame change |
| 1318 // notifications. | 1320 // notifications. |
| 1319 // --------------------------------------------------------------------------- | 1321 // --------------------------------------------------------------------------- |
| 1320 | 1322 |
| 1321 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1323 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1322 }; | 1324 }; |
| 1323 | 1325 |
| 1324 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1326 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |