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

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: fix ContentResourceProviderTest Created 3 years, 11 months 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
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 bool IsFTPDirectoryListing() override; 441 bool IsFTPDirectoryListing() override;
441 void AttachGuest(int element_instance_id) override; 442 void AttachGuest(int element_instance_id) override;
442 void DetachGuest(int element_instance_id) override; 443 void DetachGuest(int element_instance_id) override;
443 void SetSelectedText(const base::string16& selection_text, 444 void SetSelectedText(const base::string16& selection_text,
444 size_t offset, 445 size_t offset,
445 const gfx::Range& range) override; 446 const gfx::Range& range) override;
446 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 447 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
447 v8::Local<v8::Context> context) override; 448 v8::Local<v8::Context> context) override;
448 void AddMessageToConsole(ConsoleMessageLevel level, 449 void AddMessageToConsole(ConsoleMessageLevel level,
449 const std::string& message) override; 450 const std::string& message) override;
450 bool IsUsingLoFi() const override; 451 PreviewsState GetPreviewsState() const override;
451 bool IsPasting() const override; 452 bool IsPasting() const override;
452 blink::WebPageVisibilityState GetVisibilityState() const override; 453 blink::WebPageVisibilityState GetVisibilityState() const override;
453 bool IsBrowserSideNavigationPending() override; 454 bool IsBrowserSideNavigationPending() override;
454 455
455 // blink::mojom::EngagementClient implementation: 456 // blink::mojom::EngagementClient implementation:
456 void SetEngagementLevel(const url::Origin& origin, 457 void SetEngagementLevel(const url::Origin& origin,
457 blink::mojom::EngagementLevel level) override; 458 blink::mojom::EngagementLevel level) override;
458 459
459 // mojom::Frame implementation: 460 // mojom::Frame implementation:
460 void GetInterfaceProvider( 461 void GetInterfaceProvider(
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 AccessibilityMode accessibility_mode_; 1292 AccessibilityMode accessibility_mode_;
1292 1293
1293 // Only valid if |accessibility_mode_| is anything other than 1294 // Only valid if |accessibility_mode_| is anything other than
1294 // AccessibilityModeOff. 1295 // AccessibilityModeOff.
1295 RenderAccessibilityImpl* render_accessibility_; 1296 RenderAccessibilityImpl* render_accessibility_;
1296 1297
1297 // Manages play, pause notifications for WebMediaPlayer implementations; its 1298 // Manages play, pause notifications for WebMediaPlayer implementations; its
1298 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. 1299 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1299 media::RendererWebMediaPlayerDelegate* media_player_delegate_; 1300 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1300 1301
1301 // Whether or not this RenderFrame is using Lo-Fi mode. 1302 // The PreviewsState of this RenderFrame that indicates which Previews can
1302 bool is_using_lofi_; 1303 // be used. The PreviewsState is a bitmask of potentially several Previews
1304 // optimizations.
1305 PreviewsState previews_state_;
1303 1306
1304 // Effective connection type when the document of this frame was fetched. 1307 // Effective connection type when the document of this frame was fetched.
1305 blink::WebEffectiveConnectionType effective_connection_type_; 1308 blink::WebEffectiveConnectionType effective_connection_type_;
1306 1309
1307 // Whether or not this RenderFrame is currently pasting. 1310 // Whether or not this RenderFrame is currently pasting.
1308 bool is_pasting_; 1311 bool is_pasting_;
1309 1312
1310 // Whether we must stop creating nested message loops for modal dialogs. This 1313 // Whether we must stop creating nested message loops for modal dialogs. This
1311 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the 1314 // is necessary because modal dialogs have a ScopedPageLoadDeferrer on the
1312 // stack that interferes with swapping out. 1315 // stack that interferes with swapping out.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 bool browser_side_navigation_pending_ = false; 1367 bool browser_side_navigation_pending_ = false;
1365 1368
1366 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1369 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1367 1370
1368 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1371 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1369 }; 1372 };
1370 1373
1371 } // namespace content 1374 } // namespace content
1372 1375
1373 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1376 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698