| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Shuts down this RenderViewHost and deletes it. | 80 // Shuts down this RenderViewHost and deletes it. |
| 81 void ShutdownAndDestroy(); | 81 void ShutdownAndDestroy(); |
| 82 | 82 |
| 83 // RenderViewHost implementation. | 83 // RenderViewHost implementation. |
| 84 bool Send(IPC::Message* msg) override; | 84 bool Send(IPC::Message* msg) override; |
| 85 RenderWidgetHostImpl* GetWidget() const override; | 85 RenderWidgetHostImpl* GetWidget() const override; |
| 86 RenderProcessHost* GetProcess() const override; | 86 RenderProcessHost* GetProcess() const override; |
| 87 int GetRoutingID() const override; | 87 int GetRoutingID() const override; |
| 88 RenderFrameHost* GetMainFrame() override; | 88 RenderFrameHost* GetMainFrame() override; |
| 89 void AllowBindings(int binding_flags) override; | |
| 90 void ClearFocusedElement() override; | 89 void ClearFocusedElement() override; |
| 91 bool IsFocusedElementEditable() override; | 90 bool IsFocusedElementEditable() override; |
| 92 void DirectoryEnumerationFinished( | 91 void DirectoryEnumerationFinished( |
| 93 int request_id, | 92 int request_id, |
| 94 const std::vector<base::FilePath>& files) override; | 93 const std::vector<base::FilePath>& files) override; |
| 95 void DisableScrollbarsForThreshold(const gfx::Size& size) override; | 94 void DisableScrollbarsForThreshold(const gfx::Size& size) override; |
| 96 void EnableAutoResize(const gfx::Size& min_size, | 95 void EnableAutoResize(const gfx::Size& min_size, |
| 97 const gfx::Size& max_size) override; | 96 const gfx::Size& max_size) override; |
| 98 void DisableAutoResize(const gfx::Size& new_size) override; | 97 void DisableAutoResize(const gfx::Size& new_size) override; |
| 99 void EnablePreferredSizeMode() override; | 98 void EnablePreferredSizeMode() override; |
| 100 void ExecuteMediaPlayerActionAtLocation( | 99 void ExecuteMediaPlayerActionAtLocation( |
| 101 const gfx::Point& location, | 100 const gfx::Point& location, |
| 102 const blink::WebMediaPlayerAction& action) override; | 101 const blink::WebMediaPlayerAction& action) override; |
| 103 void ExecutePluginActionAtLocation( | 102 void ExecutePluginActionAtLocation( |
| 104 const gfx::Point& location, | 103 const gfx::Point& location, |
| 105 const blink::WebPluginAction& action) override; | 104 const blink::WebPluginAction& action) override; |
| 106 RenderViewHostDelegate* GetDelegate() const override; | 105 RenderViewHostDelegate* GetDelegate() const override; |
| 107 int GetEnabledBindings() const override; | |
| 108 SiteInstanceImpl* GetSiteInstance() const override; | 106 SiteInstanceImpl* GetSiteInstance() const override; |
| 109 bool IsRenderViewLive() const override; | 107 bool IsRenderViewLive() const override; |
| 110 void NotifyMoveOrResizeStarted() override; | 108 void NotifyMoveOrResizeStarted() override; |
| 111 void SetWebUIProperty(const std::string& name, | 109 void SetWebUIProperty(const std::string& name, |
| 112 const std::string& value) override; | 110 const std::string& value) override; |
| 113 void SyncRendererPrefs() override; | 111 void SyncRendererPrefs() override; |
| 114 WebPreferences GetWebkitPreferences() override; | 112 WebPreferences GetWebkitPreferences() override; |
| 115 void UpdateWebkitPreferences(const WebPreferences& prefs) override; | 113 void UpdateWebkitPreferences(const WebPreferences& prefs) override; |
| 116 void OnWebkitPreferencesChanged() override; | 114 void OnWebkitPreferencesChanged() override; |
| 117 void SelectWordAroundCaret() override; | 115 void SelectWordAroundCaret() override; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 int frames_ref_count_; | 279 int frames_ref_count_; |
| 282 | 280 |
| 283 // Our delegate, which wants to know about changes in the RenderView. | 281 // Our delegate, which wants to know about changes in the RenderView. |
| 284 RenderViewHostDelegate* delegate_; | 282 RenderViewHostDelegate* delegate_; |
| 285 | 283 |
| 286 // The SiteInstance associated with this RenderViewHost. All pages drawn | 284 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| 287 // in this RenderViewHost are part of this SiteInstance. Cannot change | 285 // in this RenderViewHost are part of this SiteInstance. Cannot change |
| 288 // over time. | 286 // over time. |
| 289 scoped_refptr<SiteInstanceImpl> instance_; | 287 scoped_refptr<SiteInstanceImpl> instance_; |
| 290 | 288 |
| 291 // A bitwise OR of bindings types that have been enabled for this RenderView. | |
| 292 // See BindingsPolicy for details. | |
| 293 int enabled_bindings_; | |
| 294 | |
| 295 // Tracks whether this RenderViewHost is in an active state. False if the | 289 // Tracks whether this RenderViewHost is in an active state. False if the |
| 296 // main frame is pending swap out, pending deletion, or swapped out, because | 290 // main frame is pending swap out, pending deletion, or swapped out, because |
| 297 // it is not visible to the user in any of these cases. | 291 // it is not visible to the user in any of these cases. |
| 298 bool is_active_; | 292 bool is_active_; |
| 299 | 293 |
| 300 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike | 294 // Tracks whether the main frame RenderFrameHost is swapped out. Unlike |
| 301 // is_active_, this is false when the frame is pending swap out or deletion. | 295 // is_active_, this is false when the frame is pending swap out or deletion. |
| 302 // TODO(creis): Remove this when we no longer use swappedout://. | 296 // TODO(creis): Remove this when we no longer use swappedout://. |
| 303 // See http://crbug.com/357747. | 297 // See http://crbug.com/357747. |
| 304 bool is_swapped_out_; | 298 bool is_swapped_out_; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 327 bool render_view_ready_on_process_launch_; | 321 bool render_view_ready_on_process_launch_; |
| 328 | 322 |
| 329 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 323 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 330 | 324 |
| 331 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 325 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 332 }; | 326 }; |
| 333 | 327 |
| 334 } // namespace content | 328 } // namespace content |
| 335 | 329 |
| 336 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |