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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1413643002: Separate RenderViewHost from RenderWidgetHost, part 2: public implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 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
OLDNEW
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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // you will not be able to traverse pages back and forward. We need to determine 86 // you will not be able to traverse pages back and forward. We need to determine
87 // if we want to bring that and other functionality down into this object so it 87 // if we want to bring that and other functionality down into this object so it
88 // can be shared by others. 88 // can be shared by others.
89 // 89 //
90 // DEPRECATED: RenderViewHostImpl is being removed as part of the SiteIsolation 90 // DEPRECATED: RenderViewHostImpl is being removed as part of the SiteIsolation
91 // project. New code should not be added here, but to either RenderFrameHostImpl 91 // project. New code should not be added here, but to either RenderFrameHostImpl
92 // (if frame specific) or WebContentsImpl (if page specific). 92 // (if frame specific) or WebContentsImpl (if page specific).
93 // 93 //
94 // For context, please see https://crbug.com/467770 and 94 // For context, please see https://crbug.com/467770 and
95 // http://www.chromium.org/developers/design-documents/site-isolation. 95 // http://www.chromium.org/developers/design-documents/site-isolation.
96 class CONTENT_EXPORT RenderViewHostImpl 96 class CONTENT_EXPORT RenderViewHostImpl : public RenderViewHost,
97 : public RenderViewHost, 97 RenderWidgetHostImpl,
98 public RenderWidgetHostImpl, 98 public RenderProcessHostObserver {
99 public RenderProcessHostObserver {
100 public: 99 public:
101 // Convenience function, just like RenderViewHost::FromID. 100 // Convenience function, just like RenderViewHost::FromID.
102 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); 101 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id);
103 102
103 // Convenience function, just like RenderViewHost::From.
104 static RenderViewHostImpl* From(RenderWidgetHost* rwh);
105
104 // |routing_id| must be a valid route id. |swapped_out| indicates 106 // |routing_id| must be a valid route id. |swapped_out| indicates
105 // whether the view should initially be swapped out (e.g., for an opener 107 // whether the view should initially be swapped out (e.g., for an opener
106 // frame being rendered by another process). |hidden| indicates whether the 108 // frame being rendered by another process). |hidden| indicates whether the
107 // view is initially hidden or visible. 109 // view is initially hidden or visible.
108 // 110 //
109 // The |session_storage_namespace| parameter allows multiple render views and 111 // The |session_storage_namespace| parameter allows multiple render views and
110 // WebContentses to share the same session storage (part of the WebStorage 112 // WebContentses to share the same session storage (part of the WebStorage
111 // spec) space. This is useful when restoring contentses, but most callers 113 // spec) space. This is useful when restoring contentses, but most callers
112 // should pass in NULL which will cause a new SessionStorageNamespace to be 114 // should pass in NULL which will cause a new SessionStorageNamespace to be
113 // created. 115 // created.
114 RenderViewHostImpl(SiteInstance* instance, 116 RenderViewHostImpl(SiteInstance* instance,
115 RenderViewHostDelegate* delegate, 117 RenderViewHostDelegate* delegate,
116 RenderWidgetHostDelegate* widget_delegate, 118 RenderWidgetHostDelegate* widget_delegate,
117 int32 routing_id, 119 int32 routing_id,
118 int32 main_frame_routing_id, 120 int32 main_frame_routing_id,
119 bool swapped_out, 121 bool swapped_out,
120 bool hidden, 122 bool hidden,
121 bool has_initialized_audio_host); 123 bool has_initialized_audio_host);
122 ~RenderViewHostImpl() override; 124 ~RenderViewHostImpl() override;
123 125
124 // RenderViewHost implementation. 126 // RenderViewHost implementation.
125 bool Send(IPC::Message* msg) override; 127 bool Send(IPC::Message* msg) override;
126 RenderWidgetHost* GetWidget() const override; 128 RenderWidgetHostImpl* GetWidget() const override;
127 RenderProcessHost* GetProcess() const override; 129 RenderProcessHost* GetProcess() const override;
128 int GetRoutingID() const override; 130 int GetRoutingID() const override;
129 RenderFrameHost* GetMainFrame() override; 131 RenderFrameHost* GetMainFrame() override;
130 void AllowBindings(int binding_flags) override; 132 void AllowBindings(int binding_flags) override;
131 void ClearFocusedElement() override; 133 void ClearFocusedElement() override;
132 bool IsFocusedElementEditable() override; 134 bool IsFocusedElementEditable() override;
133 void CopyImageAt(int x, int y) override; 135 void CopyImageAt(int x, int y) override;
134 void SaveImageAt(int x, int y) override; 136 void SaveImageAt(int x, int y) override;
135 void DirectoryEnumerationFinished( 137 void DirectoryEnumerationFinished(
136 int request_id, 138 int request_id,
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 492 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
491 }; 493 };
492 494
493 #if defined(COMPILER_MSVC) 495 #if defined(COMPILER_MSVC)
494 #pragma warning(pop) 496 #pragma warning(pop)
495 #endif 497 #endif
496 498
497 } // namespace content 499 } // namespace content
498 500
499 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 501 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/touch_input_browsertest.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698