Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: content/renderer/render_view.h

Issue 6840060: Progress towards fixing 77536 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_thread.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 public: 169 public:
170 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the 170 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the
171 // parent of the WebView HWND that will be created. If this is a constrained 171 // parent of the WebView HWND that will be created. If this is a constrained
172 // popup or as a new tab, opener_id is the routing ID of the RenderView 172 // popup or as a new tab, opener_id is the routing ID of the RenderView
173 // responsible for creating this RenderView (corresponding to parent_hwnd). 173 // responsible for creating this RenderView (corresponding to parent_hwnd).
174 // |counter| is either a currently initialized counter, or NULL (in which case 174 // |counter| is either a currently initialized counter, or NULL (in which case
175 // we treat this RenderView as a top level window). 175 // we treat this RenderView as a top level window).
176 static RenderView* Create( 176 static RenderView* Create(
177 RenderThreadBase* render_thread, 177 RenderThreadBase* render_thread,
178 gfx::NativeViewId parent_hwnd, 178 gfx::NativeViewId parent_hwnd,
179 gfx::PluginWindowHandle compositing_surface,
179 int32 opener_id, 180 int32 opener_id,
180 const RendererPreferences& renderer_prefs, 181 const RendererPreferences& renderer_prefs,
181 const WebPreferences& webkit_prefs, 182 const WebPreferences& webkit_prefs,
182 SharedRenderViewCounter* counter, 183 SharedRenderViewCounter* counter,
183 int32 routing_id, 184 int32 routing_id,
184 int64 session_storage_namespace_id, 185 int64 session_storage_namespace_id,
185 const string16& frame_name); 186 const string16& frame_name);
186 187
187 // Visit all RenderViews with a live WebView (i.e., RenderViews that have 188 // Visit all RenderViews with a live WebView (i.e., RenderViews that have
188 // been closed but not yet destroyed are excluded). 189 // been closed but not yet destroyed are excluded).
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 }; 652 };
652 653
653 enum ErrorPageType { 654 enum ErrorPageType {
654 DNS_ERROR, 655 DNS_ERROR,
655 HTTP_404, 656 HTTP_404,
656 CONNECTION_ERROR, 657 CONNECTION_ERROR,
657 }; 658 };
658 659
659 RenderView(RenderThreadBase* render_thread, 660 RenderView(RenderThreadBase* render_thread,
660 gfx::NativeViewId parent_hwnd, 661 gfx::NativeViewId parent_hwnd,
662 gfx::PluginWindowHandle compositing_surface,
661 int32 opener_id, 663 int32 opener_id,
662 const RendererPreferences& renderer_prefs, 664 const RendererPreferences& renderer_prefs,
663 const WebPreferences& webkit_prefs, 665 const WebPreferences& webkit_prefs,
664 SharedRenderViewCounter* counter, 666 SharedRenderViewCounter* counter,
665 int32 routing_id, 667 int32 routing_id,
666 int64 session_storage_namespace_id, 668 int64 session_storage_namespace_id,
667 const string16& frame_name); 669 const string16& frame_name);
668 670
669 // Do not delete directly. This class is reference counted. 671 // Do not delete directly. This class is reference counted.
670 virtual ~RenderView(); 672 virtual ~RenderView();
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 // bunch of stuff, you should probably create a helper class and put your 1164 // bunch of stuff, you should probably create a helper class and put your
1163 // data and methods on that to avoid bloating RenderView more. You can use 1165 // data and methods on that to avoid bloating RenderView more. You can use
1164 // the Observer interface to filter IPC messages and receive frame change 1166 // the Observer interface to filter IPC messages and receive frame change
1165 // notifications. 1167 // notifications.
1166 // --------------------------------------------------------------------------- 1168 // ---------------------------------------------------------------------------
1167 1169
1168 DISALLOW_COPY_AND_ASSIGN(RenderView); 1170 DISALLOW_COPY_AND_ASSIGN(RenderView);
1169 }; 1171 };
1170 1172
1171 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1173 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread.cc ('k') | content/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698