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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // responsible for creating this RenderView (corresponding to parent_hwnd). | 169 // responsible for creating this RenderView (corresponding to parent_hwnd). |
170 // |counter| is either a currently initialized counter, or NULL (in which case | 170 // |counter| is either a currently initialized counter, or NULL (in which case |
171 // we treat this RenderView as a top level window). | 171 // we treat this RenderView as a top level window). |
172 CONTENT_EXPORT static RenderViewImpl* Create( | 172 CONTENT_EXPORT static RenderViewImpl* Create( |
173 gfx::NativeViewId parent_hwnd, | 173 gfx::NativeViewId parent_hwnd, |
174 int32 opener_id, | 174 int32 opener_id, |
175 const content::RendererPreferences& renderer_prefs, | 175 const content::RendererPreferences& renderer_prefs, |
176 const WebPreferences& webkit_prefs, | 176 const WebPreferences& webkit_prefs, |
177 SharedRenderViewCounter* counter, | 177 SharedRenderViewCounter* counter, |
178 int32 routing_id, | 178 int32 routing_id, |
| 179 int32 surface_id, |
179 int64 session_storage_namespace_id, | 180 int64 session_storage_namespace_id, |
180 const string16& frame_name, | 181 const string16& frame_name, |
181 int32 next_page_id); | 182 int32 next_page_id); |
182 | 183 |
183 // Returns the RenderViewImpl containing the given WebView. | 184 // Returns the RenderViewImpl containing the given WebView. |
184 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 185 CONTENT_EXPORT static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
185 | 186 |
186 // May return NULL when the view is closing. | 187 // May return NULL when the view is closing. |
187 CONTENT_EXPORT WebKit::WebView* webview() const; | 188 CONTENT_EXPORT WebKit::WebView* webview() const; |
188 | 189 |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 HTTP_404, | 683 HTTP_404, |
683 CONNECTION_ERROR, | 684 CONNECTION_ERROR, |
684 }; | 685 }; |
685 | 686 |
686 RenderViewImpl(gfx::NativeViewId parent_hwnd, | 687 RenderViewImpl(gfx::NativeViewId parent_hwnd, |
687 int32 opener_id, | 688 int32 opener_id, |
688 const content::RendererPreferences& renderer_prefs, | 689 const content::RendererPreferences& renderer_prefs, |
689 const WebPreferences& webkit_prefs, | 690 const WebPreferences& webkit_prefs, |
690 SharedRenderViewCounter* counter, | 691 SharedRenderViewCounter* counter, |
691 int32 routing_id, | 692 int32 routing_id, |
| 693 int32 surface_id, |
692 int64 session_storage_namespace_id, | 694 int64 session_storage_namespace_id, |
693 const string16& frame_name, | 695 const string16& frame_name, |
694 int32 next_page_id); | 696 int32 next_page_id); |
695 | 697 |
696 // Do not delete directly. This class is reference counted. | 698 // Do not delete directly. This class is reference counted. |
697 virtual ~RenderViewImpl(); | 699 virtual ~RenderViewImpl(); |
698 | 700 |
699 void UpdateURL(WebKit::WebFrame* frame); | 701 void UpdateURL(WebKit::WebFrame* frame); |
700 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, | 702 void UpdateTitle(WebKit::WebFrame* frame, const string16& title, |
701 WebKit::WebTextDirection title_direction); | 703 WebKit::WebTextDirection title_direction); |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 // bunch of stuff, you should probably create a helper class and put your | 1241 // bunch of stuff, you should probably create a helper class and put your |
1240 // data and methods on that to avoid bloating RenderView more. You can | 1242 // data and methods on that to avoid bloating RenderView more. You can |
1241 // use the Observer interface to filter IPC messages and receive frame change | 1243 // use the Observer interface to filter IPC messages and receive frame change |
1242 // notifications. | 1244 // notifications. |
1243 // --------------------------------------------------------------------------- | 1245 // --------------------------------------------------------------------------- |
1244 | 1246 |
1245 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1247 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1246 }; | 1248 }; |
1247 | 1249 |
1248 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1250 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |