| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // Returns whether the current RenderProcessHost has read access to the files | 351 // Returns whether the current RenderProcessHost has read access to the files |
| 352 // reported in |state|. | 352 // reported in |state|. |
| 353 bool CanAccessFilesOfPageState(const PageState& state) const; | 353 bool CanAccessFilesOfPageState(const PageState& state) const; |
| 354 | 354 |
| 355 // Grants the current RenderProcessHost read access to any file listed in | 355 // Grants the current RenderProcessHost read access to any file listed in |
| 356 // |validated_state|. It is important that the PageState has been validated | 356 // |validated_state|. It is important that the PageState has been validated |
| 357 // upon receipt from the renderer process to prevent it from forging access to | 357 // upon receipt from the renderer process to prevent it from forging access to |
| 358 // files without the user's consent. | 358 // files without the user's consent. |
| 359 void GrantFileAccessFromPageState(const PageState& validated_state); | 359 void GrantFileAccessFromPageState(const PageState& validated_state); |
| 360 | 360 |
| 361 gfx::Point ConvertDIPToViewport(const gfx::Point& point); | |
| 362 | |
| 363 // The RenderWidgetHost. | 361 // The RenderWidgetHost. |
| 364 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; | 362 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; |
| 365 | 363 |
| 366 // The number of RenderFrameHosts which have a reference to this RVH. | 364 // The number of RenderFrameHosts which have a reference to this RVH. |
| 367 int frames_ref_count_; | 365 int frames_ref_count_; |
| 368 | 366 |
| 369 // Our delegate, which wants to know about changes in the RenderView. | 367 // Our delegate, which wants to know about changes in the RenderView. |
| 370 RenderViewHostDelegate* delegate_; | 368 RenderViewHostDelegate* delegate_; |
| 371 | 369 |
| 372 // 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... |
| 431 bool render_view_ready_on_process_launch_; | 429 bool render_view_ready_on_process_launch_; |
| 432 | 430 |
| 433 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 431 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 434 | 432 |
| 435 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 433 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 436 }; | 434 }; |
| 437 | 435 |
| 438 } // namespace content | 436 } // namespace content |
| 439 | 437 |
| 440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |