| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class Range; | 47 class Range; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace ui { | 50 namespace ui { |
| 51 class AXTree; | 51 class AXTree; |
| 52 struct SelectedFileInfo; | 52 struct SelectedFileInfo; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace content { | 55 namespace content { |
| 56 | 56 |
| 57 class BrowserMediaPlayerManager; | 57 class MediaWebContentsObserver; |
| 58 class ChildProcessSecurityPolicyImpl; | 58 class ChildProcessSecurityPolicyImpl; |
| 59 class PageState; | 59 class PageState; |
| 60 class RenderWidgetHostDelegate; | 60 class RenderWidgetHostDelegate; |
| 61 class SessionStorageNamespace; | 61 class SessionStorageNamespace; |
| 62 class SessionStorageNamespaceImpl; | 62 class SessionStorageNamespaceImpl; |
| 63 class TestRenderViewHost; | 63 class TestRenderViewHost; |
| 64 class TimeoutMonitor; | 64 class TimeoutMonitor; |
| 65 struct FileChooserParams; | 65 struct FileChooserParams; |
| 66 | 66 |
| 67 #if defined(COMPILER_MSVC) | 67 #if defined(COMPILER_MSVC) |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 // Creates a full screen RenderWidget. | 380 // Creates a full screen RenderWidget. |
| 381 void CreateNewFullscreenWidget(int route_id); | 381 void CreateNewFullscreenWidget(int route_id); |
| 382 | 382 |
| 383 #if defined(OS_MACOSX) | 383 #if defined(OS_MACOSX) |
| 384 // Select popup menu related methods (for external popup menus). | 384 // Select popup menu related methods (for external popup menus). |
| 385 void DidSelectPopupMenuItem(int selected_index); | 385 void DidSelectPopupMenuItem(int selected_index); |
| 386 void DidCancelPopupMenu(); | 386 void DidCancelPopupMenu(); |
| 387 #endif | 387 #endif |
| 388 | 388 |
| 389 #if defined(OS_ANDROID) | 389 #if defined(OS_ANDROID) |
| 390 BrowserMediaPlayerManager* media_player_manager() { | 390 MediaWebContentsObserver* media_web_contents_observer() { |
| 391 return media_player_manager_.get(); | 391 return media_web_contents_observer_.get(); |
| 392 } | 392 } |
| 393 | 393 |
| 394 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 394 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 395 void DidCancelPopupMenu(); | 395 void DidCancelPopupMenu(); |
| 396 #endif | 396 #endif |
| 397 | 397 |
| 398 // User rotated the screen. Calls the "onorientationchange" Javascript hook. | 398 // User rotated the screen. Calls the "onorientationchange" Javascript hook. |
| 399 void SendOrientationChangeEvent(int orientation); | 399 void SendOrientationChangeEvent(int orientation); |
| 400 | 400 |
| 401 int main_frame_routing_id() const { | 401 int main_frame_routing_id() const { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 // True if the render view can be shut down suddenly. | 621 // True if the render view can be shut down suddenly. |
| 622 bool sudden_termination_allowed_; | 622 bool sudden_termination_allowed_; |
| 623 | 623 |
| 624 // The termination status of the last render view that terminated. | 624 // The termination status of the last render view that terminated. |
| 625 base::TerminationStatus render_view_termination_status_; | 625 base::TerminationStatus render_view_termination_status_; |
| 626 | 626 |
| 627 // Set to true if we requested the on screen keyboard to be displayed. | 627 // Set to true if we requested the on screen keyboard to be displayed. |
| 628 bool virtual_keyboard_requested_; | 628 bool virtual_keyboard_requested_; |
| 629 | 629 |
| 630 #if defined(OS_ANDROID) | 630 #if defined(OS_ANDROID) |
| 631 // Manages all the android mediaplayer objects and handling IPCs for video. | 631 // Manages all the android mediaplayer managers and forwards IPCs to the |
| 632 scoped_ptr<BrowserMediaPlayerManager> media_player_manager_; | 632 // managers. |
| 633 scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_; |
| 633 #endif | 634 #endif |
| 634 | 635 |
| 635 // Used to swap out or shutdown this RVH when the unload event is taking too | 636 // Used to swap out or shutdown this RVH when the unload event is taking too |
| 636 // long to execute, depending on the number of active views in the | 637 // long to execute, depending on the number of active views in the |
| 637 // SiteInstance. | 638 // SiteInstance. |
| 638 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 639 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 639 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; | 640 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; |
| 640 | 641 |
| 641 // Called after receiving the SwapOutACK when the RVH is in state pending | 642 // Called after receiving the SwapOutACK when the RVH is in state pending |
| 642 // shutdown. Also called if the unload timer times out. | 643 // shutdown. Also called if the unload timer times out. |
| 643 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. | 644 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. |
| 644 base::Closure pending_shutdown_on_swap_out_; | 645 base::Closure pending_shutdown_on_swap_out_; |
| 645 | 646 |
| 646 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 647 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 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 |