| 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 gfx::Point ConvertDIPToViewport(const gfx::Point& point); |
| 359 |
| 358 // The RenderWidgetHost. | 360 // The RenderWidgetHost. |
| 359 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; | 361 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; |
| 360 | 362 |
| 361 // The number of RenderFrameHosts which have a reference to this RVH. | 363 // The number of RenderFrameHosts which have a reference to this RVH. |
| 362 int frames_ref_count_; | 364 int frames_ref_count_; |
| 363 | 365 |
| 364 // Our delegate, which wants to know about changes in the RenderView. | 366 // Our delegate, which wants to know about changes in the RenderView. |
| 365 RenderViewHostDelegate* delegate_; | 367 RenderViewHostDelegate* delegate_; |
| 366 | 368 |
| 367 // The SiteInstance associated with this RenderViewHost. All pages drawn | 369 // 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_; | 428 bool render_view_ready_on_process_launch_; |
| 427 | 429 |
| 428 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 430 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 429 | 431 |
| 430 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 432 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 431 }; | 433 }; |
| 432 | 434 |
| 433 } // namespace content | 435 } // namespace content |
| 434 | 436 |
| 435 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |