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