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 <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 Loading... |
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 Loading... |
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_ |
OLD | NEW |