Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: nasko comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 // Only valid if |accessibility_mode_| is anything other than 1276 // Only valid if |accessibility_mode_| is anything other than
1276 // AccessibilityModeOff. 1277 // AccessibilityModeOff.
1277 RenderAccessibilityImpl* render_accessibility_; 1278 RenderAccessibilityImpl* render_accessibility_;
1278 1279
1279 std::unique_ptr<blink::WebBluetooth> bluetooth_; 1280 std::unique_ptr<blink::WebBluetooth> bluetooth_;
1280 1281
1281 // Manages play, pause notifications for WebMediaPlayer implementations; its 1282 // Manages play, pause notifications for WebMediaPlayer implementations; its
1282 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. 1283 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1283 media::RendererWebMediaPlayerDelegate* media_player_delegate_; 1284 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1284 1285
1285 // Whether or not this RenderFrame is using Lo-Fi mode. 1286 // The PreviewsState of this RenderFrame that indicates which Previews are
1286 bool is_using_lofi_; 1287 // being used.
1288 PreviewsState previews_state_;
1287 1289
1288 // Effective connection type when the document of this frame was fetched. 1290 // Effective connection type when the document of this frame was fetched.
1289 blink::WebEffectiveConnectionType effective_connection_type_; 1291 blink::WebEffectiveConnectionType effective_connection_type_;
1290 1292
1291 // Whether or not this RenderFrame is currently pasting. 1293 // Whether or not this RenderFrame is currently pasting.
1292 bool is_pasting_; 1294 bool is_pasting_;
1293 1295
1294 // Whether we must stop creating nested message loops for modal dialogs. This 1296 // Whether we must stop creating nested message loops for modal dialogs. This
1295 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the 1297 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the
1296 // stack that interferes with swapping out. 1298 // stack that interferes with swapping out.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 bool browser_side_navigation_pending_ = false; 1347 bool browser_side_navigation_pending_ = false;
1346 1348
1347 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1349 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1348 1350
1349 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1351 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1350 }; 1352 };
1351 1353
1352 } // namespace content 1354 } // namespace content
1353 1355
1354 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1356 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698