| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
| 17 #include "content/common/accessibility_mode_enums.h" | 17 #include "content/common/accessibility_mode_enums.h" |
| 18 #include "content/common/mojo/service_registry_impl.h" | 18 #include "content/common/mojo/service_registry_impl.h" |
| 19 #include "content/public/common/javascript_message_type.h" | 19 #include "content/public/common/javascript_message_type.h" |
| 20 #include "content/public/common/referrer.h" | 20 #include "content/public/common/referrer.h" |
| 21 #include "content/public/renderer/render_frame.h" | 21 #include "content/public/renderer/render_frame.h" |
| 22 #include "content/renderer/render_frame_proxy.h" | 22 #include "content/renderer/render_frame_proxy.h" |
| 23 #include "content/renderer/renderer_webcookiejar_impl.h" | 23 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 24 #include "content/renderer/screen_orientation/screen_orientation_dispatcher.h" |
| 24 #include "ipc/ipc_message.h" | 25 #include "ipc/ipc_message.h" |
| 25 #include "media/blink/webmediaplayer_delegate.h" | 26 #include "media/blink/webmediaplayer_delegate.h" |
| 26 #include "third_party/WebKit/public/web/WebAXObject.h" | 27 #include "third_party/WebKit/public/web/WebAXObject.h" |
| 27 #include "third_party/WebKit/public/web/WebDataSource.h" | 28 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 28 #include "third_party/WebKit/public/web/WebFrameClient.h" | 29 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 29 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 30 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 30 #include "ui/gfx/range/range.h" | 31 #include "ui/gfx/range/range.h" |
| 31 | 32 |
| 32 #if defined(OS_ANDROID) | 33 #if defined(OS_ANDROID) |
| 33 #include "content/renderer/media/android/renderer_media_player_manager.h" | 34 #include "content/renderer/media/android/renderer_media_player_manager.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 class PepperPluginInstanceImpl; | 70 class PepperPluginInstanceImpl; |
| 70 class PushMessagingDispatcher; | 71 class PushMessagingDispatcher; |
| 71 class RendererAccessibility; | 72 class RendererAccessibility; |
| 72 class RendererCdmManager; | 73 class RendererCdmManager; |
| 73 class RendererMediaPlayerManager; | 74 class RendererMediaPlayerManager; |
| 74 class RendererPpapiHost; | 75 class RendererPpapiHost; |
| 75 class RenderFrameObserver; | 76 class RenderFrameObserver; |
| 76 class RenderViewImpl; | 77 class RenderViewImpl; |
| 77 class RenderWidget; | 78 class RenderWidget; |
| 78 class RenderWidgetFullscreenPepper; | 79 class RenderWidgetFullscreenPepper; |
| 79 class ScreenOrientationDispatcher; | |
| 80 class UserMediaClientImpl; | 80 class UserMediaClientImpl; |
| 81 struct CustomContextMenuContext; | 81 struct CustomContextMenuContext; |
| 82 | 82 |
| 83 class CONTENT_EXPORT RenderFrameImpl | 83 class CONTENT_EXPORT RenderFrameImpl |
| 84 : public RenderFrame, | 84 : public RenderFrame, |
| 85 NON_EXPORTED_BASE(public blink::WebFrameClient), | 85 NON_EXPORTED_BASE(public blink::WebFrameClient), |
| 86 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 86 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
| 87 public: | 87 public: |
| 88 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 88 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
| 89 // frame belongs to. | 89 // frame belongs to. |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 | 722 |
| 723 // The push messaging dispatcher attached to this frame, lazily initialized. | 723 // The push messaging dispatcher attached to this frame, lazily initialized. |
| 724 PushMessagingDispatcher* push_messaging_dispatcher_; | 724 PushMessagingDispatcher* push_messaging_dispatcher_; |
| 725 | 725 |
| 726 ServiceRegistryImpl service_registry_; | 726 ServiceRegistryImpl service_registry_; |
| 727 | 727 |
| 728 // The screen orientation dispatcher attached to the frame, lazily | 728 // The screen orientation dispatcher attached to the frame, lazily |
| 729 // initialized. | 729 // initialized. |
| 730 ScreenOrientationDispatcher* screen_orientation_dispatcher_; | 730 ScreenOrientationDispatcher* screen_orientation_dispatcher_; |
| 731 | 731 |
| 732 // Used to give a ScreenOrientationService* that is connected to the |
| 733 // remote service to the dispatcher. |
| 734 ScreenOrientationServicePtr screen_orientation_service_; |
| 735 |
| 732 // The current accessibility mode. | 736 // The current accessibility mode. |
| 733 AccessibilityMode accessibility_mode_; | 737 AccessibilityMode accessibility_mode_; |
| 734 | 738 |
| 735 // Only valid if |accessibility_mode_| is anything other than | 739 // Only valid if |accessibility_mode_| is anything other than |
| 736 // AccessibilityModeOff. | 740 // AccessibilityModeOff. |
| 737 RendererAccessibility* renderer_accessibility_; | 741 RendererAccessibility* renderer_accessibility_; |
| 738 | 742 |
| 739 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 743 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 740 // The external popup for the currently showing select popup. | 744 // The external popup for the currently showing select popup. |
| 741 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 745 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
| 742 #endif | 746 #endif |
| 743 | 747 |
| 744 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 748 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 745 | 749 |
| 746 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 750 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 747 }; | 751 }; |
| 748 | 752 |
| 749 } // namespace content | 753 } // namespace content |
| 750 | 754 |
| 751 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 755 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |