Chromium Code Reviews| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 344 // Returns whether the current RenderProcessHost has read access to the files | 345 // Returns whether the current RenderProcessHost has read access to the files |
| 345 // reported in |state|. | 346 // reported in |state|. |
| 346 bool CanAccessFilesOfPageState(const PageState& state) const; | 347 bool CanAccessFilesOfPageState(const PageState& state) const; |
| 347 | 348 |
| 348 // Grants the current RenderProcessHost read access to any file listed in | 349 // Grants the current RenderProcessHost read access to any file listed in |
| 349 // |validated_state|. It is important that the PageState has been validated | 350 // |validated_state|. It is important that the PageState has been validated |
| 350 // upon receipt from the renderer process to prevent it from forging access to | 351 // upon receipt from the renderer process to prevent it from forging access to |
| 351 // files without the user's consent. | 352 // files without the user's consent. |
| 352 void GrantFileAccessFromPageState(const PageState& validated_state); | 353 void GrantFileAccessFromPageState(const PageState& validated_state); |
| 353 | 354 |
| 355 void FilterDropData(DropData& filtered_data); | |
|
Avi (use Gerrit)
2016/04/08 21:24:08
Blank line after.
hush (inactive)
2016/04/12 00:07:49
Done.
| |
| 354 // The RenderWidgetHost. | 356 // The RenderWidgetHost. |
| 355 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; | 357 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; |
| 356 | 358 |
| 357 // The number of RenderFrameHosts which have a reference to this RVH. | 359 // The number of RenderFrameHosts which have a reference to this RVH. |
| 358 int frames_ref_count_; | 360 int frames_ref_count_; |
| 359 | 361 |
| 360 // Our delegate, which wants to know about changes in the RenderView. | 362 // Our delegate, which wants to know about changes in the RenderView. |
| 361 RenderViewHostDelegate* delegate_; | 363 RenderViewHostDelegate* delegate_; |
| 362 | 364 |
| 363 // The SiteInstance associated with this RenderViewHost. All pages drawn | 365 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 bool render_view_ready_on_process_launch_; | 421 bool render_view_ready_on_process_launch_; |
| 420 | 422 |
| 421 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 423 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 422 | 424 |
| 423 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 425 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 424 }; | 426 }; |
| 425 | 427 |
| 426 } // namespace content | 428 } // namespace content |
| 427 | 429 |
| 428 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |