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