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

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

Issue 1411203010: Separate RenderViewHost from RenderWidgetHost, part 4: delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 5 years, 1 month 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>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/process/kill.h" 17 #include "base/process/kill.h"
18 #include "content/browser/renderer_host/render_widget_host_impl.h" 18 #include "content/browser/renderer_host/render_widget_host_impl.h"
19 #include "content/browser/renderer_host/render_widget_host_owner_delegate.h"
19 #include "content/browser/site_instance_impl.h" 20 #include "content/browser/site_instance_impl.h"
20 #include "content/common/drag_event_source_info.h" 21 #include "content/common/drag_event_source_info.h"
21 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/render_process_host_observer.h" 23 #include "content/public/browser/render_process_host_observer.h"
23 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
24 #include "content/public/common/window_container_type.h" 25 #include "content/public/common/window_container_type.h"
25 #include "net/base/load_states.h" 26 #include "net/base/load_states.h"
26 #include "third_party/WebKit/public/web/WebAXEnums.h" 27 #include "third_party/WebKit/public/web/WebAXEnums.h"
27 #include "third_party/WebKit/public/web/WebConsoleMessage.h" 28 #include "third_party/WebKit/public/web/WebConsoleMessage.h"
28 #include "third_party/WebKit/public/web/WebPopupType.h" 29 #include "third_party/WebKit/public/web/WebPopupType.h"
(...skipping 13 matching lines...) Expand all
42 namespace gfx { 43 namespace gfx {
43 class Range; 44 class Range;
44 } 45 }
45 46
46 namespace ui { 47 namespace ui {
47 class AXTree; 48 class AXTree;
48 } 49 }
49 50
50 namespace content { 51 namespace content {
51 52
53 class ChildProcessSecurityPolicyImpl;
52 class MediaWebContentsObserver; 54 class MediaWebContentsObserver;
53 class ChildProcessSecurityPolicyImpl;
54 class PageState; 55 class PageState;
55 class RenderWidgetHostDelegate; 56 class RenderWidgetHostDelegate;
56 class SessionStorageNamespace; 57 class SessionStorageNamespace;
57 class SessionStorageNamespaceImpl; 58 class SessionStorageNamespaceImpl;
58 class TestRenderViewHost; 59 class TestRenderViewHost;
59 struct FileChooserFileInfo; 60 struct FileChooserFileInfo;
60 struct FileChooserParams; 61 struct FileChooserParams;
61 struct FrameReplicationState; 62 struct FrameReplicationState;
62 63
63 #if defined(COMPILER_MSVC) 64 #if defined(COMPILER_MSVC)
(...skipping 24 matching lines...) Expand all
88 // can be shared by others. 89 // can be shared by others.
89 // 90 //
90 // DEPRECATED: RenderViewHostImpl is being removed as part of the SiteIsolation 91 // DEPRECATED: RenderViewHostImpl is being removed as part of the SiteIsolation
91 // project. New code should not be added here, but to either RenderFrameHostImpl 92 // project. New code should not be added here, but to either RenderFrameHostImpl
92 // (if frame specific) or WebContentsImpl (if page specific). 93 // (if frame specific) or WebContentsImpl (if page specific).
93 // 94 //
94 // For context, please see https://crbug.com/467770 and 95 // For context, please see https://crbug.com/467770 and
95 // http://www.chromium.org/developers/design-documents/site-isolation. 96 // http://www.chromium.org/developers/design-documents/site-isolation.
96 class CONTENT_EXPORT RenderViewHostImpl : public RenderViewHost, 97 class CONTENT_EXPORT RenderViewHostImpl : public RenderViewHost,
97 RenderWidgetHostImpl, 98 RenderWidgetHostImpl,
99 public RenderWidgetHostOwnerDelegate,
98 public RenderProcessHostObserver { 100 public RenderProcessHostObserver {
99 public: 101 public:
100 // Convenience function, just like RenderViewHost::FromID. 102 // Convenience function, just like RenderViewHost::FromID.
101 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); 103 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id);
102 104
103 // Convenience function, just like RenderViewHost::From. 105 // Convenience function, just like RenderViewHost::From.
104 static RenderViewHostImpl* From(RenderWidgetHost* rwh); 106 static RenderViewHostImpl* From(RenderWidgetHost* rwh);
105 107
106 // |routing_id| must be a valid route id. |swapped_out| indicates 108 // |routing_id| must be a valid route id. |swapped_out| indicates
107 // whether the view should initially be swapped out (e.g., for an opener 109 // whether the view should initially be swapped out (e.g., for an opener
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool SuddenTerminationAllowed() const; 275 bool SuddenTerminationAllowed() const;
274 void set_sudden_termination_allowed(bool enabled) { 276 void set_sudden_termination_allowed(bool enabled) {
275 sudden_termination_allowed_ = enabled; 277 sudden_termination_allowed_ = enabled;
276 } 278 }
277 279
278 // RenderWidgetHost public overrides. 280 // RenderWidgetHost public overrides.
279 void Init() override; 281 void Init() override;
280 void Shutdown() override; 282 void Shutdown() override;
281 void WasHidden() override; 283 void WasHidden() override;
282 void WasShown(const ui::LatencyInfo& latency_info) override; 284 void WasShown(const ui::LatencyInfo& latency_info) override;
283 bool IsRenderView() const override;
284 bool OnMessageReceived(const IPC::Message& msg) override; 285 bool OnMessageReceived(const IPC::Message& msg) override;
285 void GotFocus() override; 286 void GotFocus() override;
286 void LostCapture() override; 287 void LostCapture() override;
287 void LostMouseLock() override; 288 void LostMouseLock() override;
288 void SetIsLoading(bool is_loading) override; 289 void SetIsLoading(bool is_loading) override;
289 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; 290 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override;
290 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; 291 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override;
291 gfx::Rect GetRootWindowResizerRect() const override; 292 gfx::Rect GetRootWindowResizerRect() const override;
292 293
293 // Creates a new RenderView with the given route id. 294 // Creates a new RenderView with the given route id.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 492 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
492 }; 493 };
493 494
494 #if defined(COMPILER_MSVC) 495 #if defined(COMPILER_MSVC)
495 #pragma warning(pop) 496 #pragma warning(pop)
496 #endif 497 #endif
497 498
498 } // namespace content 499 } // namespace content
499 500
500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 501 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698