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