| 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 16 matching lines...) Expand all Loading... |
| 27 #include "build/build_config.h" | 27 #include "build/build_config.h" |
| 28 #include "content/common/accessibility_mode_enums.h" | 28 #include "content/common/accessibility_mode_enums.h" |
| 29 #include "content/common/associated_interface_registry_impl.h" | 29 #include "content/common/associated_interface_registry_impl.h" |
| 30 #include "content/common/download/mhtml_save_status.h" | 30 #include "content/common/download/mhtml_save_status.h" |
| 31 #include "content/common/frame.mojom.h" | 31 #include "content/common/frame.mojom.h" |
| 32 #include "content/common/frame_message_enums.h" | 32 #include "content/common/frame_message_enums.h" |
| 33 #include "content/common/host_zoom.mojom.h" | 33 #include "content/common/host_zoom.mojom.h" |
| 34 #include "content/common/renderer.mojom.h" | 34 #include "content/common/renderer.mojom.h" |
| 35 #include "content/public/common/console_message_level.h" | 35 #include "content/public/common/console_message_level.h" |
| 36 #include "content/public/common/javascript_message_type.h" | 36 #include "content/public/common/javascript_message_type.h" |
| 37 #include "content/public/common/previews_state.h" |
| 37 #include "content/public/common/referrer.h" | 38 #include "content/public/common/referrer.h" |
| 38 #include "content/public/common/stop_find_action.h" | 39 #include "content/public/common/stop_find_action.h" |
| 39 #include "content/public/renderer/render_frame.h" | 40 #include "content/public/renderer/render_frame.h" |
| 40 #include "content/renderer/frame_blame_context.h" | 41 #include "content/renderer/frame_blame_context.h" |
| 41 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 42 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
| 42 #include "content/renderer/renderer_webcookiejar_impl.h" | 43 #include "content/renderer/renderer_webcookiejar_impl.h" |
| 43 #include "ipc/ipc_message.h" | 44 #include "ipc/ipc_message.h" |
| 44 #include "ipc/ipc_platform_file.h" | 45 #include "ipc/ipc_platform_file.h" |
| 45 #include "media/blink/webmediaplayer_delegate.h" | 46 #include "media/blink/webmediaplayer_delegate.h" |
| 46 #include "media/blink/webmediaplayer_params.h" | 47 #include "media/blink/webmediaplayer_params.h" |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 bool IsFTPDirectoryListing() override; | 431 bool IsFTPDirectoryListing() override; |
| 431 void AttachGuest(int element_instance_id) override; | 432 void AttachGuest(int element_instance_id) override; |
| 432 void DetachGuest(int element_instance_id) override; | 433 void DetachGuest(int element_instance_id) override; |
| 433 void SetSelectedText(const base::string16& selection_text, | 434 void SetSelectedText(const base::string16& selection_text, |
| 434 size_t offset, | 435 size_t offset, |
| 435 const gfx::Range& range) override; | 436 const gfx::Range& range) override; |
| 436 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 437 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
| 437 v8::Local<v8::Context> context) override; | 438 v8::Local<v8::Context> context) override; |
| 438 void AddMessageToConsole(ConsoleMessageLevel level, | 439 void AddMessageToConsole(ConsoleMessageLevel level, |
| 439 const std::string& message) override; | 440 const std::string& message) override; |
| 440 bool IsUsingLoFi() const override; | 441 PreviewsState GetPreviewsState() const override; |
| 441 bool IsPasting() const override; | 442 bool IsPasting() const override; |
| 442 blink::WebPageVisibilityState GetVisibilityState() const override; | 443 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 443 bool IsBrowserSideNavigationPending() override; | 444 bool IsBrowserSideNavigationPending() override; |
| 444 | 445 |
| 445 // mojom::Frame implementation: | 446 // mojom::Frame implementation: |
| 446 void GetInterfaceProvider( | 447 void GetInterfaceProvider( |
| 447 service_manager::mojom::InterfaceProviderRequest request) override; | 448 service_manager::mojom::InterfaceProviderRequest request) override; |
| 448 | 449 |
| 449 // mojom::HostZoom implementation: | 450 // mojom::HostZoom implementation: |
| 450 void SetHostZoomLevel(const GURL& url, double zoom_level) override; | 451 void SetHostZoomLevel(const GURL& url, double zoom_level) override; |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 // Only valid if |accessibility_mode_| is anything other than | 1275 // Only valid if |accessibility_mode_| is anything other than |
| 1275 // AccessibilityModeOff. | 1276 // AccessibilityModeOff. |
| 1276 RenderAccessibilityImpl* render_accessibility_; | 1277 RenderAccessibilityImpl* render_accessibility_; |
| 1277 | 1278 |
| 1278 std::unique_ptr<blink::WebBluetooth> bluetooth_; | 1279 std::unique_ptr<blink::WebBluetooth> bluetooth_; |
| 1279 | 1280 |
| 1280 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1281 // Manages play, pause notifications for WebMediaPlayer implementations; its |
| 1281 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1282 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
| 1282 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1283 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
| 1283 | 1284 |
| 1284 // Whether or not this RenderFrame is using Lo-Fi mode. | 1285 // The PreviewsState of this RenderFrame that indicates which Previews are |
| 1285 bool is_using_lofi_; | 1286 // being used. |
| 1287 PreviewsState previews_state_; |
| 1286 | 1288 |
| 1287 // Effective connection type when the document of this frame was fetched. | 1289 // Effective connection type when the document of this frame was fetched. |
| 1288 blink::WebEffectiveConnectionType effective_connection_type_; | 1290 blink::WebEffectiveConnectionType effective_connection_type_; |
| 1289 | 1291 |
| 1290 // Whether or not this RenderFrame is currently pasting. | 1292 // Whether or not this RenderFrame is currently pasting. |
| 1291 bool is_pasting_; | 1293 bool is_pasting_; |
| 1292 | 1294 |
| 1293 // Whether we must stop creating nested message loops for modal dialogs. This | 1295 // Whether we must stop creating nested message loops for modal dialogs. This |
| 1294 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the | 1296 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the |
| 1295 // stack that interferes with swapping out. | 1297 // stack that interferes with swapping out. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 bool browser_side_navigation_pending_ = false; | 1346 bool browser_side_navigation_pending_ = false; |
| 1345 | 1347 |
| 1346 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1348 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1347 | 1349 |
| 1348 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1350 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1349 }; | 1351 }; |
| 1350 | 1352 |
| 1351 } // namespace content | 1353 } // namespace content |
| 1352 | 1354 |
| 1353 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1355 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |