| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class Range; | 46 class Range; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace ui { | 49 namespace ui { |
| 50 class AXTree; | 50 class AXTree; |
| 51 struct SelectedFileInfo; | 51 struct SelectedFileInfo; |
| 52 } | 52 } |
| 53 | 53 |
| 54 namespace content { | 54 namespace content { |
| 55 | 55 |
| 56 class BrowserMediaPlayerManager; | 56 class MediaWebContentsObserver; |
| 57 class ChildProcessSecurityPolicyImpl; | 57 class ChildProcessSecurityPolicyImpl; |
| 58 class PageState; | 58 class PageState; |
| 59 class RenderWidgetHostDelegate; | 59 class RenderWidgetHostDelegate; |
| 60 class SessionStorageNamespace; | 60 class SessionStorageNamespace; |
| 61 class SessionStorageNamespaceImpl; | 61 class SessionStorageNamespaceImpl; |
| 62 class TestRenderViewHost; | 62 class TestRenderViewHost; |
| 63 class TimeoutMonitor; | 63 class TimeoutMonitor; |
| 64 struct FileChooserParams; | 64 struct FileChooserParams; |
| 65 | 65 |
| 66 #if defined(COMPILER_MSVC) | 66 #if defined(COMPILER_MSVC) |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // Creates a full screen RenderWidget. | 385 // Creates a full screen RenderWidget. |
| 386 void CreateNewFullscreenWidget(int route_id); | 386 void CreateNewFullscreenWidget(int route_id); |
| 387 | 387 |
| 388 #if defined(OS_MACOSX) | 388 #if defined(OS_MACOSX) |
| 389 // Select popup menu related methods (for external popup menus). | 389 // Select popup menu related methods (for external popup menus). |
| 390 void DidSelectPopupMenuItem(int selected_index); | 390 void DidSelectPopupMenuItem(int selected_index); |
| 391 void DidCancelPopupMenu(); | 391 void DidCancelPopupMenu(); |
| 392 #endif | 392 #endif |
| 393 | 393 |
| 394 #if defined(OS_ANDROID) | 394 #if defined(OS_ANDROID) |
| 395 BrowserMediaPlayerManager* media_player_manager() { | 395 MediaWebContentsObserver* media_web_contents_observer() { |
| 396 return media_player_manager_.get(); | 396 return media_web_contents_observer_.get(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 399 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 400 void DidCancelPopupMenu(); | 400 void DidCancelPopupMenu(); |
| 401 #endif | 401 #endif |
| 402 | 402 |
| 403 int main_frame_routing_id() const { | 403 int main_frame_routing_id() const { |
| 404 return main_frame_routing_id_; | 404 return main_frame_routing_id_; |
| 405 } | 405 } |
| 406 | 406 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 // True if the render view can be shut down suddenly. | 618 // True if the render view can be shut down suddenly. |
| 619 bool sudden_termination_allowed_; | 619 bool sudden_termination_allowed_; |
| 620 | 620 |
| 621 // The termination status of the last render view that terminated. | 621 // The termination status of the last render view that terminated. |
| 622 base::TerminationStatus render_view_termination_status_; | 622 base::TerminationStatus render_view_termination_status_; |
| 623 | 623 |
| 624 // Set to true if we requested the on screen keyboard to be displayed. | 624 // Set to true if we requested the on screen keyboard to be displayed. |
| 625 bool virtual_keyboard_requested_; | 625 bool virtual_keyboard_requested_; |
| 626 | 626 |
| 627 #if defined(OS_ANDROID) | 627 #if defined(OS_ANDROID) |
| 628 // Manages all the android mediaplayer objects and handling IPCs for video. | 628 // Manages all the android mediaplayer managers and forwards IPCs to the |
| 629 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_; | 629 // managers. |
| 630 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
| 630 #endif | 631 #endif |
| 631 | 632 |
| 632 // Used to swap out or shutdown this RVH when the unload event is taking too | 633 // Used to swap out or shutdown this RVH when the unload event is taking too |
| 633 // long to execute, depending on the number of active views in the | 634 // long to execute, depending on the number of active views in the |
| 634 // SiteInstance. | 635 // SiteInstance. |
| 635 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 636 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 636 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 637 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
| 637 | 638 |
| 638 // Called after receiving the SwapOutACK when the RVH is in state pending | 639 // Called after receiving the SwapOutACK when the RVH is in state pending |
| 639 // shutdown. Also called if the unload timer times out. | 640 // shutdown. Also called if the unload timer times out. |
| 640 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 641 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 641 base::Closure pending_shutdown_on_swap_out_; | 642 base::Closure pending_shutdown_on_swap_out_; |
| 642 | 643 |
| 643 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 644 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 644 | 645 |
| 645 // True if the current focused element is editable. | 646 // True if the current focused element is editable. |
| 646 bool is_focused_element_editable_; | 647 bool is_focused_element_editable_; |
| 647 | 648 |
| 648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 649 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 649 }; | 650 }; |
| 650 | 651 |
| 651 #if defined(COMPILER_MSVC) | 652 #if defined(COMPILER_MSVC) |
| 652 #pragma warning(pop) | 653 #pragma warning(pop) |
| 653 #endif | 654 #endif |
| 654 | 655 |
| 655 } // namespace content | 656 } // namespace content |
| 656 | 657 |
| 657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 658 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |