| 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 24 matching lines...) Expand all Loading... |
| 35 #include "ipc/ipc_message.h" | 35 #include "ipc/ipc_message.h" |
| 36 #include "ipc/ipc_platform_file.h" | 36 #include "ipc/ipc_platform_file.h" |
| 37 #include "media/blink/webmediaplayer_delegate.h" | 37 #include "media/blink/webmediaplayer_delegate.h" |
| 38 #include "media/blink/webmediaplayer_params.h" | 38 #include "media/blink/webmediaplayer_params.h" |
| 39 #include "services/shell/public/interfaces/connector.mojom.h" | 39 #include "services/shell/public/interfaces/connector.mojom.h" |
| 40 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 40 #include "services/shell/public/interfaces/interface_provider.mojom.h" |
| 41 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 41 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 42 #include "third_party/WebKit/public/platform/WebFocusType.h" | 42 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 43 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 43 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| 44 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 44 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 45 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 45 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 46 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
| 46 #include "third_party/WebKit/public/web/WebAXObject.h" | 47 #include "third_party/WebKit/public/web/WebAXObject.h" |
| 47 #include "third_party/WebKit/public/web/WebDataSource.h" | 48 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 48 #include "third_party/WebKit/public/web/WebFrameClient.h" | 49 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 49 #include "third_party/WebKit/public/web/WebFrameLoadType.h" | 50 #include "third_party/WebKit/public/web/WebFrameLoadType.h" |
| 50 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" | 51 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" |
| 51 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" | 52 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" |
| 52 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 53 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 53 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 54 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
| 54 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" | 55 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 void DetachGuest(int element_instance_id) override; | 409 void DetachGuest(int element_instance_id) override; |
| 409 void SetSelectedText(const base::string16& selection_text, | 410 void SetSelectedText(const base::string16& selection_text, |
| 410 size_t offset, | 411 size_t offset, |
| 411 const gfx::Range& range) override; | 412 const gfx::Range& range) override; |
| 412 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 413 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
| 413 v8::Local<v8::Context> context) override; | 414 v8::Local<v8::Context> context) override; |
| 414 void AddMessageToConsole(ConsoleMessageLevel level, | 415 void AddMessageToConsole(ConsoleMessageLevel level, |
| 415 const std::string& message) override; | 416 const std::string& message) override; |
| 416 bool IsUsingLoFi() const override; | 417 bool IsUsingLoFi() const override; |
| 417 bool IsPasting() const override; | 418 bool IsPasting() const override; |
| 419 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 418 | 420 |
| 419 // blink::WebFrameClient implementation: | 421 // blink::WebFrameClient implementation: |
| 420 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 422 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
| 421 const blink::WebPluginParams& params) override; | 423 const blink::WebPluginParams& params) override; |
| 422 blink::WebMediaPlayer* createMediaPlayer( | 424 blink::WebMediaPlayer* createMediaPlayer( |
| 423 const blink::WebMediaPlayerSource& source, | 425 const blink::WebMediaPlayerSource& source, |
| 424 blink::WebMediaPlayerClient* client, | 426 blink::WebMediaPlayerClient* client, |
| 425 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 427 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
| 426 blink::WebContentDecryptionModule* initial_cdm, | 428 blink::WebContentDecryptionModule* initial_cdm, |
| 427 const blink::WebString& sink_id, | 429 const blink::WebString& sink_id, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 const blink::WebURL& url, | 610 const blink::WebURL& url, |
| 609 const blink::WebString& title) override; | 611 const blink::WebString& title) override; |
| 610 void unregisterProtocolHandler(const blink::WebString& scheme, | 612 void unregisterProtocolHandler(const blink::WebString& scheme, |
| 611 const blink::WebURL& url) override; | 613 const blink::WebURL& url) override; |
| 612 blink::WebBluetooth* bluetooth() override; | 614 blink::WebBluetooth* bluetooth() override; |
| 613 void checkIfAudioSinkExistsAndIsAuthorized( | 615 void checkIfAudioSinkExistsAndIsAuthorized( |
| 614 const blink::WebString& sink_id, | 616 const blink::WebString& sink_id, |
| 615 const blink::WebSecurityOrigin& security_origin, | 617 const blink::WebSecurityOrigin& security_origin, |
| 616 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 618 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
| 617 blink::ServiceRegistry* serviceRegistry() override; | 619 blink::ServiceRegistry* serviceRegistry() override; |
| 620 blink::WebPageVisibilityState visibilityState() const override; |
| 618 | 621 |
| 619 // WebFrameSerializerClient implementation: | 622 // WebFrameSerializerClient implementation: |
| 620 void didSerializeDataForFrame( | 623 void didSerializeDataForFrame( |
| 621 const blink::WebCString& data, | 624 const blink::WebCString& data, |
| 622 blink::WebFrameSerializerClient::FrameSerializationStatus status) | 625 blink::WebFrameSerializerClient::FrameSerializationStatus status) |
| 623 override; | 626 override; |
| 624 | 627 |
| 625 // Binds this render frame's service registry. | 628 // Binds this render frame's service registry. |
| 626 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, | 629 void BindServiceRegistry(shell::mojom::InterfaceProviderRequest services, |
| 627 shell::mojom::InterfaceProviderPtr exposed_services); | 630 shell::mojom::InterfaceProviderPtr exposed_services); |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 #endif | 1240 #endif |
| 1238 | 1241 |
| 1239 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1242 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1240 | 1243 |
| 1241 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1244 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1242 }; | 1245 }; |
| 1243 | 1246 |
| 1244 } // namespace content | 1247 } // namespace content |
| 1245 | 1248 |
| 1246 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1249 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |