| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 void DragTargetDragEnter(const DropData& drop_data, | 113 void DragTargetDragEnter(const DropData& drop_data, |
| 114 const gfx::Point& client_pt, | 114 const gfx::Point& client_pt, |
| 115 const gfx::Point& screen_pt, | 115 const gfx::Point& screen_pt, |
| 116 blink::WebDragOperationsMask operations_allowed, | 116 blink::WebDragOperationsMask operations_allowed, |
| 117 int key_modifiers) override; | 117 int key_modifiers) override; |
| 118 void DragTargetDragOver(const gfx::Point& client_pt, | 118 void DragTargetDragOver(const gfx::Point& client_pt, |
| 119 const gfx::Point& screen_pt, | 119 const gfx::Point& screen_pt, |
| 120 blink::WebDragOperationsMask operations_allowed, | 120 blink::WebDragOperationsMask operations_allowed, |
| 121 int key_modifiers) override; | 121 int key_modifiers) override; |
| 122 void DragTargetDragLeave() override; | 122 void DragTargetDragLeave() override; |
| 123 void DragTargetDrop(const gfx::Point& client_pt, | 123 void DragTargetDrop(const DropData& drop_data, |
| 124 const gfx::Point& client_pt, |
| 124 const gfx::Point& screen_pt, | 125 const gfx::Point& screen_pt, |
| 125 int key_modifiers) override; | 126 int key_modifiers) override; |
| 126 void EnableAutoResize(const gfx::Size& min_size, | 127 void EnableAutoResize(const gfx::Size& min_size, |
| 127 const gfx::Size& max_size) override; | 128 const gfx::Size& max_size) override; |
| 128 void DisableAutoResize(const gfx::Size& new_size) override; | 129 void DisableAutoResize(const gfx::Size& new_size) override; |
| 129 void EnablePreferredSizeMode() override; | 130 void EnablePreferredSizeMode() override; |
| 130 void ExecuteMediaPlayerActionAtLocation( | 131 void ExecuteMediaPlayerActionAtLocation( |
| 131 const gfx::Point& location, | 132 const gfx::Point& location, |
| 132 const blink::WebMediaPlayerAction& action) override; | 133 const blink::WebMediaPlayerAction& action) override; |
| 133 void ExecutePluginActionAtLocation( | 134 void ExecutePluginActionAtLocation( |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // Returns whether the current RenderProcessHost has read access to the files | 339 // Returns whether the current RenderProcessHost has read access to the files |
| 339 // reported in |state|. | 340 // reported in |state|. |
| 340 bool CanAccessFilesOfPageState(const PageState& state) const; | 341 bool CanAccessFilesOfPageState(const PageState& state) const; |
| 341 | 342 |
| 342 // Grants the current RenderProcessHost read access to any file listed in | 343 // Grants the current RenderProcessHost read access to any file listed in |
| 343 // |validated_state|. It is important that the PageState has been validated | 344 // |validated_state|. It is important that the PageState has been validated |
| 344 // upon receipt from the renderer process to prevent it from forging access to | 345 // upon receipt from the renderer process to prevent it from forging access to |
| 345 // files without the user's consent. | 346 // files without the user's consent. |
| 346 void GrantFileAccessFromPageState(const PageState& validated_state); | 347 void GrantFileAccessFromPageState(const PageState& validated_state); |
| 347 | 348 |
| 349 void FilterDropData(DropData* filtered_data); |
| 350 |
| 348 // The RenderWidgetHost. | 351 // The RenderWidgetHost. |
| 349 std::unique_ptr<RenderWidgetHostImpl> render_widget_host_; | 352 std::unique_ptr<RenderWidgetHostImpl> render_widget_host_; |
| 350 | 353 |
| 351 // The number of RenderFrameHosts which have a reference to this RVH. | 354 // The number of RenderFrameHosts which have a reference to this RVH. |
| 352 int frames_ref_count_; | 355 int frames_ref_count_; |
| 353 | 356 |
| 354 // Our delegate, which wants to know about changes in the RenderView. | 357 // Our delegate, which wants to know about changes in the RenderView. |
| 355 RenderViewHostDelegate* delegate_; | 358 RenderViewHostDelegate* delegate_; |
| 356 | 359 |
| 357 // The SiteInstance associated with this RenderViewHost. All pages drawn | 360 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 bool render_view_ready_on_process_launch_; | 412 bool render_view_ready_on_process_launch_; |
| 410 | 413 |
| 411 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 414 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 412 | 415 |
| 413 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 416 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 414 }; | 417 }; |
| 415 | 418 |
| 416 } // namespace content | 419 } // namespace content |
| 417 | 420 |
| 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |