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_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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Shuts down this RenderViewHost and deletes it. | 86 // Shuts down this RenderViewHost and deletes it. |
87 void ShutdownAndDestroy(); | 87 void ShutdownAndDestroy(); |
88 | 88 |
89 // RenderViewHost implementation. | 89 // RenderViewHost implementation. |
90 bool Send(IPC::Message* msg) override; | 90 bool Send(IPC::Message* msg) override; |
91 RenderWidgetHostImpl* GetWidget() const override; | 91 RenderWidgetHostImpl* GetWidget() const override; |
92 RenderProcessHost* GetProcess() const override; | 92 RenderProcessHost* GetProcess() const override; |
93 int GetRoutingID() const override; | 93 int GetRoutingID() const override; |
94 RenderFrameHost* GetMainFrame() override; | 94 RenderFrameHost* GetMainFrame() override; |
95 void AllowBindings(int binding_flags) override; | |
96 void ClearFocusedElement() override; | 95 void ClearFocusedElement() override; |
97 bool IsFocusedElementEditable() override; | 96 bool IsFocusedElementEditable() override; |
98 void DirectoryEnumerationFinished( | 97 void DirectoryEnumerationFinished( |
99 int request_id, | 98 int request_id, |
100 const std::vector<base::FilePath>& files) override; | 99 const std::vector<base::FilePath>& files) override; |
101 void DisableScrollbarsForThreshold(const gfx::Size& size) override; | 100 void DisableScrollbarsForThreshold(const gfx::Size& size) override; |
102 void EnableAutoResize(const gfx::Size& min_size, | 101 void EnableAutoResize(const gfx::Size& min_size, |
103 const gfx::Size& max_size) override; | 102 const gfx::Size& max_size) override; |
104 void DisableAutoResize(const gfx::Size& new_size) override; | 103 void DisableAutoResize(const gfx::Size& new_size) override; |
105 void EnablePreferredSizeMode() override; | 104 void EnablePreferredSizeMode() override; |
106 void ExecuteMediaPlayerActionAtLocation( | 105 void ExecuteMediaPlayerActionAtLocation( |
107 const gfx::Point& location, | 106 const gfx::Point& location, |
108 const blink::WebMediaPlayerAction& action) override; | 107 const blink::WebMediaPlayerAction& action) override; |
109 void ExecutePluginActionAtLocation( | 108 void ExecutePluginActionAtLocation( |
110 const gfx::Point& location, | 109 const gfx::Point& location, |
111 const blink::WebPluginAction& action) override; | 110 const blink::WebPluginAction& action) override; |
112 RenderViewHostDelegate* GetDelegate() const override; | 111 RenderViewHostDelegate* GetDelegate() const override; |
113 int GetEnabledBindings() const override; | |
114 SiteInstanceImpl* GetSiteInstance() const override; | 112 SiteInstanceImpl* GetSiteInstance() const override; |
115 bool IsRenderViewLive() const override; | 113 bool IsRenderViewLive() const override; |
116 void NotifyMoveOrResizeStarted() override; | 114 void NotifyMoveOrResizeStarted() override; |
117 void SetWebUIProperty(const std::string& name, | 115 void SetWebUIProperty(const std::string& name, |
118 const std::string& value) override; | 116 const std::string& value) override; |
119 void Zoom(PageZoom zoom) override; | 117 void Zoom(PageZoom zoom) override; |
120 void SyncRendererPrefs() override; | 118 void SyncRendererPrefs() override; |
121 WebPreferences GetWebkitPreferences() override; | 119 WebPreferences GetWebkitPreferences() override; |
122 void UpdateWebkitPreferences(const WebPreferences& prefs) override; | 120 void UpdateWebkitPreferences(const WebPreferences& prefs) override; |
123 void OnWebkitPreferencesChanged() override; | 121 void OnWebkitPreferencesChanged() override; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 int frames_ref_count_; | 296 int frames_ref_count_; |
299 | 297 |
300 // Our delegate, which wants to know about changes in the RenderView. | 298 // Our delegate, which wants to know about changes in the RenderView. |
301 RenderViewHostDelegate* delegate_; | 299 RenderViewHostDelegate* delegate_; |
302 | 300 |
303 // The SiteInstance associated with this RenderViewHost. All pages drawn | 301 // The SiteInstance associated with this RenderViewHost. All pages drawn |
304 // in this RenderViewHost are part of this SiteInstance. Cannot change | 302 // in this RenderViewHost are part of this SiteInstance. Cannot change |
305 // over time. | 303 // over time. |
306 scoped_refptr<SiteInstanceImpl> instance_; | 304 scoped_refptr<SiteInstanceImpl> instance_; |
307 | 305 |
308 // A bitwise OR of bindings types that have been enabled for this RenderView. | |
309 // See BindingsPolicy for details. | |
310 int enabled_bindings_; | |
311 | |
312 // Tracks whether this RenderViewHost is in an active state. False if the | 306 // Tracks whether this RenderViewHost is in an active state. False if the |
313 // main frame is pending swap out, pending deletion, or swapped out, because | 307 // main frame is pending swap out, pending deletion, or swapped out, because |
314 // it is not visible to the user in any of these cases. | 308 // it is not visible to the user in any of these cases. |
315 bool is_active_; | 309 bool is_active_; |
316 | 310 |
317 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike | 311 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike |
318 // is_active_, this is false when the frame is pending swap out or deletion. | 312 // is_active_, this is false when the frame is pending swap out or deletion. |
319 // TODO(creis): Remove this when we no longer use swappedout://. | 313 // TODO(creis): Remove this when we no longer use swappedout://. |
320 // See http://crbug.com/357747. | 314 // See http://crbug.com/357747. |
321 bool is_swapped_out_; | 315 bool is_swapped_out_; |
(...skipping 25 matching lines...) Expand all Loading... |
347 bool render_view_ready_on_process_launch_; | 341 bool render_view_ready_on_process_launch_; |
348 | 342 |
349 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 343 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
350 | 344 |
351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 345 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
352 }; | 346 }; |
353 | 347 |
354 } // namespace content | 348 } // namespace content |
355 | 349 |
356 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 350 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |