| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 public: | 172 public: |
| 173 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the | 173 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the |
| 174 // parent of the WebView HWND that will be created. If this is a constrained | 174 // parent of the WebView HWND that will be created. If this is a constrained |
| 175 // popup or as a new tab, opener_id is the routing ID of the RenderView | 175 // popup or as a new tab, opener_id is the routing ID of the RenderView |
| 176 // responsible for creating this RenderView (corresponding to parent_hwnd). | 176 // responsible for creating this RenderView (corresponding to parent_hwnd). |
| 177 // |counter| is either a currently initialized counter, or NULL (in which case | 177 // |counter| is either a currently initialized counter, or NULL (in which case |
| 178 // we treat this RenderView as a top level window). | 178 // we treat this RenderView as a top level window). |
| 179 static RenderView* Create( | 179 static RenderView* Create( |
| 180 RenderThreadBase* render_thread, | 180 RenderThreadBase* render_thread, |
| 181 gfx::NativeViewId parent_hwnd, | 181 gfx::NativeViewId parent_hwnd, |
| 182 gfx::PluginWindowHandle compositing_surface, | |
| 183 int32 opener_id, | 182 int32 opener_id, |
| 184 const RendererPreferences& renderer_prefs, | 183 const RendererPreferences& renderer_prefs, |
| 185 const WebPreferences& webkit_prefs, | 184 const WebPreferences& webkit_prefs, |
| 186 SharedRenderViewCounter* counter, | 185 SharedRenderViewCounter* counter, |
| 187 int32 routing_id, | 186 int32 routing_id, |
| 188 int64 session_storage_namespace_id, | 187 int64 session_storage_namespace_id, |
| 189 const string16& frame_name); | 188 const string16& frame_name); |
| 190 | 189 |
| 191 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 190 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 192 // been closed but not yet destroyed are excluded). | 191 // been closed but not yet destroyed are excluded). |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 }; | 656 }; |
| 658 | 657 |
| 659 enum ErrorPageType { | 658 enum ErrorPageType { |
| 660 DNS_ERROR, | 659 DNS_ERROR, |
| 661 HTTP_404, | 660 HTTP_404, |
| 662 CONNECTION_ERROR, | 661 CONNECTION_ERROR, |
| 663 }; | 662 }; |
| 664 | 663 |
| 665 RenderView(RenderThreadBase* render_thread, | 664 RenderView(RenderThreadBase* render_thread, |
| 666 gfx::NativeViewId parent_hwnd, | 665 gfx::NativeViewId parent_hwnd, |
| 667 gfx::PluginWindowHandle compositing_surface, | |
| 668 int32 opener_id, | 666 int32 opener_id, |
| 669 const RendererPreferences& renderer_prefs, | 667 const RendererPreferences& renderer_prefs, |
| 670 const WebPreferences& webkit_prefs, | 668 const WebPreferences& webkit_prefs, |
| 671 SharedRenderViewCounter* counter, | 669 SharedRenderViewCounter* counter, |
| 672 int32 routing_id, | 670 int32 routing_id, |
| 673 int64 session_storage_namespace_id, | 671 int64 session_storage_namespace_id, |
| 674 const string16& frame_name); | 672 const string16& frame_name); |
| 675 | 673 |
| 676 // Do not delete directly. This class is reference counted. | 674 // Do not delete directly. This class is reference counted. |
| 677 virtual ~RenderView(); | 675 virtual ~RenderView(); |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 // bunch of stuff, you should probably create a helper class and put your | 1158 // bunch of stuff, you should probably create a helper class and put your |
| 1161 // data and methods on that to avoid bloating RenderView more. You can use | 1159 // data and methods on that to avoid bloating RenderView more. You can use |
| 1162 // the Observer interface to filter IPC messages and receive frame change | 1160 // the Observer interface to filter IPC messages and receive frame change |
| 1163 // notifications. | 1161 // notifications. |
| 1164 // --------------------------------------------------------------------------- | 1162 // --------------------------------------------------------------------------- |
| 1165 | 1163 |
| 1166 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1164 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1167 }; | 1165 }; |
| 1168 | 1166 |
| 1169 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1167 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |