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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 bool IsFTPDirectoryListing() override; | 430 bool IsFTPDirectoryListing() override; |
431 void AttachGuest(int element_instance_id) override; | 431 void AttachGuest(int element_instance_id) override; |
432 void DetachGuest(int element_instance_id) override; | 432 void DetachGuest(int element_instance_id) override; |
433 void SetSelectedText(const base::string16& selection_text, | 433 void SetSelectedText(const base::string16& selection_text, |
434 size_t offset, | 434 size_t offset, |
435 const gfx::Range& range) override; | 435 const gfx::Range& range) override; |
436 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 436 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
437 v8::Local<v8::Context> context) override; | 437 v8::Local<v8::Context> context) override; |
438 void AddMessageToConsole(ConsoleMessageLevel level, | 438 void AddMessageToConsole(ConsoleMessageLevel level, |
439 const std::string& message) override; | 439 const std::string& message) override; |
440 bool IsUsingLoFi() const override; | 440 int GetPreviewsState() const override; |
441 bool IsPasting() const override; | 441 bool IsPasting() const override; |
442 blink::WebPageVisibilityState GetVisibilityState() const override; | 442 blink::WebPageVisibilityState GetVisibilityState() const override; |
443 bool IsBrowserSideNavigationPending() override; | 443 bool IsBrowserSideNavigationPending() override; |
444 | 444 |
445 // mojom::Frame implementation: | 445 // mojom::Frame implementation: |
446 void GetInterfaceProvider( | 446 void GetInterfaceProvider( |
447 service_manager::mojom::InterfaceProviderRequest request) override; | 447 service_manager::mojom::InterfaceProviderRequest request) override; |
448 | 448 |
449 // mojom::HostZoom implementation: | 449 // mojom::HostZoom implementation: |
450 void SetHostZoomLevel(const GURL& url, double zoom_level) override; | 450 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 | 1274 // Only valid if |accessibility_mode_| is anything other than |
1275 // AccessibilityModeOff. | 1275 // AccessibilityModeOff. |
1276 RenderAccessibilityImpl* render_accessibility_; | 1276 RenderAccessibilityImpl* render_accessibility_; |
1277 | 1277 |
1278 std::unique_ptr<blink::WebBluetooth> bluetooth_; | 1278 std::unique_ptr<blink::WebBluetooth> bluetooth_; |
1279 | 1279 |
1280 // Manages play, pause notifications for WebMediaPlayer implementations; its | 1280 // Manages play, pause notifications for WebMediaPlayer implementations; its |
1281 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. | 1281 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. |
1282 media::RendererWebMediaPlayerDelegate* media_player_delegate_; | 1282 media::RendererWebMediaPlayerDelegate* media_player_delegate_; |
1283 | 1283 |
1284 // Whether or not this RenderFrame is using Lo-Fi mode. | 1284 // The PreviewsState of this RenderFrame that indicates which Previews are |
1285 bool is_using_lofi_; | 1285 // being used. |
| 1286 int previews_state_; |
1286 | 1287 |
1287 // Effective connection type when the document of this frame was fetched. | 1288 // Effective connection type when the document of this frame was fetched. |
1288 blink::WebEffectiveConnectionType effective_connection_type_; | 1289 blink::WebEffectiveConnectionType effective_connection_type_; |
1289 | 1290 |
1290 // Whether or not this RenderFrame is currently pasting. | 1291 // Whether or not this RenderFrame is currently pasting. |
1291 bool is_pasting_; | 1292 bool is_pasting_; |
1292 | 1293 |
1293 // Whether we must stop creating nested message loops for modal dialogs. This | 1294 // Whether we must stop creating nested message loops for modal dialogs. This |
1294 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the | 1295 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the |
1295 // stack that interferes with swapping out. | 1296 // 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; | 1345 bool browser_side_navigation_pending_ = false; |
1345 | 1346 |
1346 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1347 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1347 | 1348 |
1348 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1349 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1349 }; | 1350 }; |
1350 | 1351 |
1351 } // namespace content | 1352 } // namespace content |
1352 | 1353 |
1353 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1354 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |