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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 // Returns whether the current RenderProcessHost has read access to the files | 348 // Returns whether the current RenderProcessHost has read access to the files |
349 // reported in |state|. | 349 // reported in |state|. |
350 bool CanAccessFilesOfPageState(const PageState& state) const; | 350 bool CanAccessFilesOfPageState(const PageState& state) const; |
351 | 351 |
352 // Grants the current RenderProcessHost read access to any file listed in | 352 // Grants the current RenderProcessHost read access to any file listed in |
353 // |validated_state|. It is important that the PageState has been validated | 353 // |validated_state|. It is important that the PageState has been validated |
354 // upon receipt from the renderer process to prevent it from forging access to | 354 // upon receipt from the renderer process to prevent it from forging access to |
355 // files without the user's consent. | 355 // files without the user's consent. |
356 void GrantFileAccessFromPageState(const PageState& validated_state); | 356 void GrantFileAccessFromPageState(const PageState& validated_state); |
357 | 357 |
358 // Convers the dip to viewport coordinates. | |
dcheng
2016/01/26 18:52:15
Nit:
Converts a point from DIPs to viewport coordi
| |
359 gfx::Point ConvertDIPToViewport(const gfx::Point& point); | |
360 | |
358 // The RenderWidgetHost. | 361 // The RenderWidgetHost. |
359 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; | 362 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; |
360 | 363 |
361 // The number of RenderFrameHosts which have a reference to this RVH. | 364 // The number of RenderFrameHosts which have a reference to this RVH. |
362 int frames_ref_count_; | 365 int frames_ref_count_; |
363 | 366 |
364 // Our delegate, which wants to know about changes in the RenderView. | 367 // Our delegate, which wants to know about changes in the RenderView. |
365 RenderViewHostDelegate* delegate_; | 368 RenderViewHostDelegate* delegate_; |
366 | 369 |
367 // The SiteInstance associated with this RenderViewHost. All pages drawn | 370 // The SiteInstance associated with this RenderViewHost. All pages drawn |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 bool render_view_ready_on_process_launch_; | 429 bool render_view_ready_on_process_launch_; |
427 | 430 |
428 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 431 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
429 | 432 |
430 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 433 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
431 }; | 434 }; |
432 | 435 |
433 } // namespace content | 436 } // namespace content |
434 | 437 |
435 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |