Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 #include "ipc/ipc_message.h" | 36 #include "ipc/ipc_message.h" |
| 37 #include "ipc/ipc_platform_file.h" | 37 #include "ipc/ipc_platform_file.h" |
| 38 #include "media/blink/webmediaplayer_delegate.h" | 38 #include "media/blink/webmediaplayer_delegate.h" |
| 39 #include "media/blink/webmediaplayer_params.h" | 39 #include "media/blink/webmediaplayer_params.h" |
| 40 #include "services/shell/public/interfaces/connector.mojom.h" | 40 #include "services/shell/public/interfaces/connector.mojom.h" |
| 41 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 41 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
| 42 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 42 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 43 #include "third_party/WebKit/public/platform/WebFocusType.h" | 43 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 44 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 44 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| 45 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 45 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 46 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | |
| 46 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" | 47 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" |
| 47 #include "third_party/WebKit/public/web/WebAXObject.h" | 48 #include "third_party/WebKit/public/web/WebAXObject.h" |
| 48 #include "third_party/WebKit/public/web/WebDataSource.h" | 49 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 49 #include "third_party/WebKit/public/web/WebFrameClient.h" | 50 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 50 #include "third_party/WebKit/public/web/WebFrameLoadType.h" | 51 #include "third_party/WebKit/public/web/WebFrameLoadType.h" |
| 51 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 52 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
| 52 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" | 53 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" |
| 53 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 54 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 54 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 55 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
| 55 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" | 56 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 608 const blink::WebURL& url, | 609 const blink::WebURL& url, |
| 609 const blink::WebString& title) override; | 610 const blink::WebString& title) override; |
| 610 void unregisterProtocolHandler(const blink::WebString& scheme, | 611 void unregisterProtocolHandler(const blink::WebString& scheme, |
| 611 const blink::WebURL& url) override; | 612 const blink::WebURL& url) override; |
| 612 blink::WebBluetooth* bluetooth() override; | 613 blink::WebBluetooth* bluetooth() override; |
| 613 void checkIfAudioSinkExistsAndIsAuthorized( | 614 void checkIfAudioSinkExistsAndIsAuthorized( |
| 614 const blink::WebString& sink_id, | 615 const blink::WebString& sink_id, |
| 615 const blink::WebSecurityOrigin& security_origin, | 616 const blink::WebSecurityOrigin& security_origin, |
| 616 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 617 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
| 617 blink::ServiceRegistry* serviceRegistry() override; | 618 blink::ServiceRegistry* serviceRegistry() override; |
| 619 blink::WebPageVisibilityState visibilityState() const override; | |
| 618 | 620 |
| 619 // WebFrameSerializerClient implementation: | 621 // WebFrameSerializerClient implementation: |
| 620 void didSerializeDataForFrame( | 622 void didSerializeDataForFrame( |
| 621 const blink::WebCString& data, | 623 const blink::WebCString& data, |
| 622 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 624 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
| 623 override; | 625 override; |
| 624 | 626 |
| 625 // Binds this render frame's service registry. | 627 // Binds this render frame's service registry. |
| 626 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, | 628 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, |
| 627 shell::mojom::InterfaceProviderPtr exposed_services); | 629 shell::mojom::InterfaceProviderPtr exposed_services); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 662 | 664 |
| 663 // Indicates that the given instance is being destroyed. This is called from | 665 // Indicates that the given instance is being destroyed. This is called from |
| 664 // the destructor, so it's important that the instance is not dereferenced | 666 // the destructor, so it's important that the instance is not dereferenced |
| 665 // from this call. | 667 // from this call. |
| 666 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); | 668 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); |
| 667 | 669 |
| 668 // Notification that the given plugin is focused or unfocused. | 670 // Notification that the given plugin is focused or unfocused. |
| 669 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); | 671 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); |
| 670 #endif // ENABLE_PLUGINS | 672 #endif // ENABLE_PLUGINS |
| 671 | 673 |
| 674 // Returns the current visibility of the WebView. | |
| 675 blink::WebPageVisibilityState GetVisibilityState() const override; | |
|
kenrb
2016/05/24 20:25:18
This should be into the RenderFrame implementation
lfg
2016/05/24 23:33:50
Done.
| |
| 676 | |
| 672 protected: | 677 protected: |
| 673 explicit RenderFrameImpl(const CreateParams& params); | 678 explicit RenderFrameImpl(const CreateParams& params); |
| 674 | 679 |
| 675 private: | 680 private: |
| 676 friend class RenderFrameImplTest; | 681 friend class RenderFrameImplTest; |
| 677 friend class RenderFrameObserver; | 682 friend class RenderFrameObserver; |
| 678 friend class RendererAccessibilityTest; | 683 friend class RendererAccessibilityTest; |
| 679 friend class TestRenderFrame; | 684 friend class TestRenderFrame; |
| 680 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); | 685 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); |
| 681 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); | 686 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1246 #endif | 1251 #endif |
| 1247 | 1252 |
| 1248 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1253 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1249 | 1254 |
| 1250 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1255 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1251 }; | 1256 }; |
| 1252 | 1257 |
| 1253 } // namespace content | 1258 } // namespace content |
| 1254 | 1259 |
| 1255 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1260 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |