| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 }; | 655 }; |
| 657 | 656 |
| 658 enum ErrorPageType { | 657 enum ErrorPageType { |
| 659 DNS_ERROR, | 658 DNS_ERROR, |
| 660 HTTP_404, | 659 HTTP_404, |
| 661 CONNECTION_ERROR, | 660 CONNECTION_ERROR, |
| 662 }; | 661 }; |
| 663 | 662 |
| 664 RenderView(RenderThreadBase* render_thread, | 663 RenderView(RenderThreadBase* render_thread, |
| 665 gfx::NativeViewId parent_hwnd, | 664 gfx::NativeViewId parent_hwnd, |
| 666 gfx::PluginWindowHandle compositing_surface, | |
| 667 int32 opener_id, | 665 int32 opener_id, |
| 668 const RendererPreferences& renderer_prefs, | 666 const RendererPreferences& renderer_prefs, |
| 669 const WebPreferences& webkit_prefs, | 667 const WebPreferences& webkit_prefs, |
| 670 SharedRenderViewCounter* counter, | 668 SharedRenderViewCounter* counter, |
| 671 int32 routing_id, | 669 int32 routing_id, |
| 672 int64 session_storage_namespace_id, | 670 int64 session_storage_namespace_id, |
| 673 const string16& frame_name); | 671 const string16& frame_name); |
| 674 | 672 |
| 675 // Do not delete directly. This class is reference counted. | 673 // Do not delete directly. This class is reference counted. |
| 676 virtual ~RenderView(); | 674 virtual ~RenderView(); |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 // bunch of stuff, you should probably create a helper class and put your | 1157 // bunch of stuff, you should probably create a helper class and put your |
| 1160 // data and methods on that to avoid bloating RenderView more. You can use | 1158 // data and methods on that to avoid bloating RenderView more. You can use |
| 1161 // the Observer interface to filter IPC messages and receive frame change | 1159 // the Observer interface to filter IPC messages and receive frame change |
| 1162 // notifications. | 1160 // notifications. |
| 1163 // --------------------------------------------------------------------------- | 1161 // --------------------------------------------------------------------------- |
| 1164 | 1162 |
| 1165 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1163 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1166 }; | 1164 }; |
| 1167 | 1165 |
| 1168 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1166 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |