| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "media/blink/webmediaplayer_params.h" | 42 #include "media/blink/webmediaplayer_params.h" |
| 43 #include "media/mojo/interfaces/remoting.mojom.h" | 43 #include "media/mojo/interfaces/remoting.mojom.h" |
| 44 #include "mojo/public/cpp/bindings/binding.h" | 44 #include "mojo/public/cpp/bindings/binding.h" |
| 45 #include "services/service_manager/public/interfaces/connector.mojom.h" | 45 #include "services/service_manager/public/interfaces/connector.mojom.h" |
| 46 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" | 46 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" |
| 47 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" | 47 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" |
| 48 #include "third_party/WebKit/public/platform/WebFocusType.h" | 48 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 49 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" | 49 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" |
| 50 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 50 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
| 51 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 51 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 52 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | |
| 53 #include "third_party/WebKit/public/web/WebAXObject.h" | 52 #include "third_party/WebKit/public/web/WebAXObject.h" |
| 54 #include "third_party/WebKit/public/web/WebDataSource.h" | 53 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 55 #include "third_party/WebKit/public/web/WebFrameClient.h" | 54 #include "third_party/WebKit/public/web/WebFrameClient.h" |
| 56 #include "third_party/WebKit/public/web/WebFrameLoadType.h" | 55 #include "third_party/WebKit/public/web/WebFrameLoadType.h" |
| 57 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" | 56 #include "third_party/WebKit/public/web/WebFrameSerializerClient.h" |
| 58 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | 57 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" |
| 59 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" | 58 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" |
| 60 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" | 59 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" |
| 61 #include "ui/gfx/range/range.h" | 60 #include "ui/gfx/range/range.h" |
| 62 #include "url/gurl.h" | 61 #include "url/gurl.h" |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 void handleAccessibilityFindInPageResult( | 624 void handleAccessibilityFindInPageResult( |
| 626 int identifier, | 625 int identifier, |
| 627 int match_index, | 626 int match_index, |
| 628 const blink::WebAXObject& start_object, | 627 const blink::WebAXObject& start_object, |
| 629 int start_offset, | 628 int start_offset, |
| 630 const blink::WebAXObject& end_object, | 629 const blink::WebAXObject& end_object, |
| 631 int end_offset) override; | 630 int end_offset) override; |
| 632 void didChangeManifest() override; | 631 void didChangeManifest() override; |
| 633 void enterFullscreen() override; | 632 void enterFullscreen() override; |
| 634 void exitFullscreen() override; | 633 void exitFullscreen() override; |
| 635 blink::WebAppBannerClient* appBannerClient() override; | |
| 636 void registerProtocolHandler(const blink::WebString& scheme, | 634 void registerProtocolHandler(const blink::WebString& scheme, |
| 637 const blink::WebURL& url, | 635 const blink::WebURL& url, |
| 638 const blink::WebString& title) override; | 636 const blink::WebString& title) override; |
| 639 void unregisterProtocolHandler(const blink::WebString& scheme, | 637 void unregisterProtocolHandler(const blink::WebString& scheme, |
| 640 const blink::WebURL& url) override; | 638 const blink::WebURL& url) override; |
| 641 blink::WebBluetooth* bluetooth() override; | 639 blink::WebBluetooth* bluetooth() override; |
| 642 void checkIfAudioSinkExistsAndIsAuthorized( | 640 void checkIfAudioSinkExistsAndIsAuthorized( |
| 643 const blink::WebString& sink_id, | 641 const blink::WebString& sink_id, |
| 644 const blink::WebSecurityOrigin& security_origin, | 642 const blink::WebSecurityOrigin& security_origin, |
| 645 blink::WebSetSinkIdCallbacks* web_callbacks) override; | 643 blink::WebSetSinkIdCallbacks* web_callbacks) override; |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 // process. | 1252 // process. |
| 1255 ManifestManager* manifest_manager_; | 1253 ManifestManager* manifest_manager_; |
| 1256 | 1254 |
| 1257 // The current accessibility mode. | 1255 // The current accessibility mode. |
| 1258 AccessibilityMode accessibility_mode_; | 1256 AccessibilityMode accessibility_mode_; |
| 1259 | 1257 |
| 1260 // Only valid if |accessibility_mode_| is anything other than | 1258 // Only valid if |accessibility_mode_| is anything other than |
| 1261 // AccessibilityModeOff. | 1259 // AccessibilityModeOff. |
| 1262 RenderAccessibilityImpl* render_accessibility_; | 1260 RenderAccessibilityImpl* render_accessibility_; |
| 1263 | 1261 |
| 1264 std::unique_ptr<blink::WebAppBannerClient> app_banner_client_; | |
| 1265 | |
| 1266 std::unique_ptr<blink::WebBluetooth> bluetooth_; | 1262 std::unique_ptr<blink::WebBluetooth> bluetooth_; |
| 1267 | 1263 |
| 1268 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1264 // Manages play, pause notifications for WebMediaPlayer implementations; its |
| 1269 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1265 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
| 1270 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1266 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
| 1271 | 1267 |
| 1272 // Whether or not this RenderFrame is using Lo-Fi mode. | 1268 // Whether or not this RenderFrame is using Lo-Fi mode. |
| 1273 bool is_using_lofi_; | 1269 bool is_using_lofi_; |
| 1274 | 1270 |
| 1275 // Effective connection type when the document of this frame was fetched. | 1271 // Effective connection type when the document of this frame was fetched. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 bool name_changed_before_first_commit_ = false; | 1323 bool name_changed_before_first_commit_ = false; |
| 1328 | 1324 |
| 1329 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1325 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1330 | 1326 |
| 1331 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1327 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1332 }; | 1328 }; |
| 1333 | 1329 |
| 1334 } // namespace content | 1330 } // namespace content |
| 1335 | 1331 |
| 1336 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1332 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |