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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments and rebase Created 5 years, 2 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 bool IsFTPDirectoryListing() override; 367 bool IsFTPDirectoryListing() override;
368 void AttachGuest(int element_instance_id) override; 368 void AttachGuest(int element_instance_id) override;
369 void DetachGuest(int element_instance_id) override; 369 void DetachGuest(int element_instance_id) override;
370 void SetSelectedText(const base::string16& selection_text, 370 void SetSelectedText(const base::string16& selection_text,
371 size_t offset, 371 size_t offset,
372 const gfx::Range& range) override; 372 const gfx::Range& range) override;
373 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 373 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
374 v8::Local<v8::Context> context) override; 374 v8::Local<v8::Context> context) override;
375 void AddMessageToConsole(ConsoleMessageLevel level, 375 void AddMessageToConsole(ConsoleMessageLevel level,
376 const std::string& message) override; 376 const std::string& message) override;
377 bool IsUsingLoFi() const override;
377 378
378 // blink::WebFrameClient implementation: 379 // blink::WebFrameClient implementation:
379 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, 380 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame,
380 const blink::WebPluginParams& params) override; 381 const blink::WebPluginParams& params) override;
381 blink::WebMediaPlayer* createMediaPlayer( 382 blink::WebMediaPlayer* createMediaPlayer(
382 blink::WebLocalFrame* frame, 383 blink::WebLocalFrame* frame,
383 const blink::WebURL& url, 384 const blink::WebURL& url,
384 blink::WebMediaPlayerClient* client, 385 blink::WebMediaPlayerClient* client,
385 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, 386 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
386 blink::WebContentDecryptionModule* initial_cdm) override; 387 blink::WebContentDecryptionModule* initial_cdm) override;
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 RendererAccessibility* renderer_accessibility_; 1045 RendererAccessibility* renderer_accessibility_;
1045 1046
1046 scoped_ptr<PermissionDispatcher> permission_client_; 1047 scoped_ptr<PermissionDispatcher> permission_client_;
1047 1048
1048 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; 1049 scoped_ptr<blink::WebAppBannerClient> app_banner_client_;
1049 1050
1050 scoped_ptr<blink::WebBluetooth> bluetooth_; 1051 scoped_ptr<blink::WebBluetooth> bluetooth_;
1051 1052
1052 scoped_ptr<blink::WebUSBClient> usb_client_; 1053 scoped_ptr<blink::WebUSBClient> usb_client_;
1053 1054
1055 // Whether or not this RenderFrame is using Lo-Fi mode.
1056 bool is_using_lofi_;
1057
1054 #if defined(ENABLE_WEBVR) 1058 #if defined(ENABLE_WEBVR)
1055 // The VR dispatcher attached to the frame, lazily initialized. 1059 // The VR dispatcher attached to the frame, lazily initialized.
1056 scoped_ptr<VRDispatcher> vr_dispatcher_; 1060 scoped_ptr<VRDispatcher> vr_dispatcher_;
1057 #endif 1061 #endif
1058 1062
1059 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1063 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1060 // The external popup for the currently showing select popup. 1064 // The external popup for the currently showing select popup.
1061 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1065 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1062 #endif 1066 #endif
1063 1067
1064 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1068 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1065 1069
1066 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1070 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1067 }; 1071 };
1068 1072
1069 } // namespace content 1073 } // namespace content
1070 1074
1071 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1075 #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