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; |
127 void FilterDropData(DropData* drop_data) override; | |
dcheng
2016/05/24 05:51:50
Can you put a comment on Enter / Drop that indicat
hush (inactive)
2016/05/24 20:26:09
Done.
| |
126 void EnableAutoResize(const gfx::Size& min_size, | 128 void EnableAutoResize(const gfx::Size& min_size, |
127 const gfx::Size& max_size) override; | 129 const gfx::Size& max_size) override; |
128 void DisableAutoResize(const gfx::Size& new_size) override; | 130 void DisableAutoResize(const gfx::Size& new_size) override; |
129 void EnablePreferredSizeMode() override; | 131 void EnablePreferredSizeMode() override; |
130 void ExecuteMediaPlayerActionAtLocation( | 132 void ExecuteMediaPlayerActionAtLocation( |
131 const gfx::Point& location, | 133 const gfx::Point& location, |
132 const blink::WebMediaPlayerAction& action) override; | 134 const blink::WebMediaPlayerAction& action) override; |
133 void ExecutePluginActionAtLocation( | 135 void ExecutePluginActionAtLocation( |
134 const gfx::Point& location, | 136 const gfx::Point& location, |
135 const blink::WebPluginAction& action) override; | 137 const blink::WebPluginAction& action) override; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
338 // Returns whether the current RenderProcessHost has read access to the files | 340 // Returns whether the current RenderProcessHost has read access to the files |
339 // reported in |state|. | 341 // reported in |state|. |
340 bool CanAccessFilesOfPageState(const PageState& state) const; | 342 bool CanAccessFilesOfPageState(const PageState& state) const; |
341 | 343 |
342 // Grants the current RenderProcessHost read access to any file listed in | 344 // Grants the current RenderProcessHost read access to any file listed in |
343 // |validated_state|. It is important that the PageState has been validated | 345 // |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 | 346 // upon receipt from the renderer process to prevent it from forging access to |
345 // files without the user's consent. | 347 // files without the user's consent. |
346 void GrantFileAccessFromPageState(const PageState& validated_state); | 348 void GrantFileAccessFromPageState(const PageState& validated_state); |
347 | 349 |
350 // 1. Grants permissions to URL (if any) | |
351 // 2. Grants permissions to filenames | |
352 // 3. Grants permissions to file system files. | |
353 // 4. Register the files with the IsolatedContext. | |
354 DropData GrantPermissionsToDropData(const DropData& drop_data); | |
dcheng
2016/05/24 05:51:50
Nit: GrantFileAccessFromDropData, to match the nam
hush (inactive)
2016/05/24 20:26:09
Done.
| |
355 | |
348 // The RenderWidgetHost. | 356 // The RenderWidgetHost. |
349 std::unique_ptr<RenderWidgetHostImpl> render_widget_host_; | 357 std::unique_ptr<RenderWidgetHostImpl> render_widget_host_; |
350 | 358 |
351 // The number of RenderFrameHosts which have a reference to this RVH. | 359 // The number of RenderFrameHosts which have a reference to this RVH. |
352 int frames_ref_count_; | 360 int frames_ref_count_; |
353 | 361 |
354 // Our delegate, which wants to know about changes in the RenderView. | 362 // Our delegate, which wants to know about changes in the RenderView. |
355 RenderViewHostDelegate* delegate_; | 363 RenderViewHostDelegate* delegate_; |
356 | 364 |
357 // The SiteInstance associated with this RenderViewHost. All pages drawn | 365 // 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_; | 417 bool render_view_ready_on_process_launch_; |
410 | 418 |
411 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 419 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
412 | 420 |
413 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 421 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
414 }; | 422 }; |
415 | 423 |
416 } // namespace content | 424 } // namespace content |
417 | 425 |
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |