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

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

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2011 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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
(...skipping 30 matching lines...) Expand all
42 // Returns the RenderView containing the given WebView. 42 // Returns the RenderView containing the given WebView.
43 static RenderView* FromWebView(WebKit::WebView* webview); 43 static RenderView* FromWebView(WebKit::WebView* webview);
44 44
45 // Visit all RenderViews with a live WebView (i.e., RenderViews that have 45 // Visit all RenderViews with a live WebView (i.e., RenderViews that have
46 // been closed but not yet destroyed are excluded). 46 // been closed but not yet destroyed are excluded).
47 static void ForEach(RenderViewVisitor* visitor); 47 static void ForEach(RenderViewVisitor* visitor);
48 48
49 virtual ~RenderView() {} 49 virtual ~RenderView() {}
50 50
51 // Get the routing ID of the view. 51 // Get the routing ID of the view.
52 virtual int GetRoutingId() const = 0; 52 virtual int GetRoutingID() const = 0;
53 53
54 // Page IDs allow the browser to identify pages in each renderer process for 54 // Page IDs allow the browser to identify pages in each renderer process for
55 // keeping back/forward history in sync. 55 // keeping back/forward history in sync.
56 // Note that this is NOT updated for every main frame navigation, only for 56 // Note that this is NOT updated for every main frame navigation, only for
57 // "regular" navigations that go into session history. In particular, client 57 // "regular" navigations that go into session history. In particular, client
58 // redirects, like the page cycler uses (document.location.href="foo") do not 58 // redirects, like the page cycler uses (document.location.href="foo") do not
59 // count as regular navigations and do not increment the page id. 59 // count as regular navigations and do not increment the page id.
60 virtual int GetPageId() = 0; 60 virtual int GetPageId() = 0;
61 61
62 // Returns the size of the view. 62 // Returns the size of the view.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // The client should handle the navigation externally. 126 // The client should handle the navigation externally.
127 virtual void LoadURLExternally( 127 virtual void LoadURLExternally(
128 WebKit::WebFrame* frame, 128 WebKit::WebFrame* frame,
129 const WebKit::WebURLRequest& request, 129 const WebKit::WebURLRequest& request,
130 WebKit::WebNavigationPolicy policy) = 0; 130 WebKit::WebNavigationPolicy policy) = 0;
131 }; 131 };
132 132
133 } // namespace content 133 } // namespace content
134 134
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_observer.cc ('k') | content/renderer/mouse_lock_dispatcher_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698