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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 bool IsFTPDirectoryListing() override; | 363 bool IsFTPDirectoryListing() override; |
364 void AttachGuest(int element_instance_id) override; | 364 void AttachGuest(int element_instance_id) override; |
365 void DetachGuest(int element_instance_id) override; | 365 void DetachGuest(int element_instance_id) override; |
366 void SetSelectedText(const base::string16& selection_text, | 366 void SetSelectedText(const base::string16& selection_text, |
367 size_t offset, | 367 size_t offset, |
368 const gfx::Range& range) override; | 368 const gfx::Range& range) override; |
369 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 369 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
370 v8::Local<v8::Context> context) override; | 370 v8::Local<v8::Context> context) override; |
371 void AddMessageToConsole(ConsoleMessageLevel level, | 371 void AddMessageToConsole(ConsoleMessageLevel level, |
372 const std::string& message) override; | 372 const std::string& message) override; |
| 373 bool IsUsingLoFi() override; |
373 | 374 |
374 // blink::WebFrameClient implementation: | 375 // blink::WebFrameClient implementation: |
375 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 376 blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
376 const blink::WebPluginParams& params) override; | 377 const blink::WebPluginParams& params) override; |
377 blink::WebMediaPlayer* createMediaPlayer( | 378 blink::WebMediaPlayer* createMediaPlayer( |
378 blink::WebLocalFrame* frame, | 379 blink::WebLocalFrame* frame, |
379 const blink::WebURL& url, | 380 const blink::WebURL& url, |
380 blink::WebMediaPlayerClient* client, | 381 blink::WebMediaPlayerClient* client, |
381 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 382 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
382 blink::WebContentDecryptionModule* initial_cdm) override; | 383 blink::WebContentDecryptionModule* initial_cdm) override; |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 RendererAccessibility* renderer_accessibility_; | 1046 RendererAccessibility* renderer_accessibility_; |
1046 | 1047 |
1047 scoped_ptr<PermissionDispatcher> permission_client_; | 1048 scoped_ptr<PermissionDispatcher> permission_client_; |
1048 | 1049 |
1049 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; | 1050 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; |
1050 | 1051 |
1051 scoped_ptr<blink::WebBluetooth> bluetooth_; | 1052 scoped_ptr<blink::WebBluetooth> bluetooth_; |
1052 | 1053 |
1053 scoped_ptr<blink::WebUSBClient> usb_client_; | 1054 scoped_ptr<blink::WebUSBClient> usb_client_; |
1054 | 1055 |
| 1056 // Whether or not this RenderFrame is using Lo-Fi mode. |
| 1057 bool is_using_lofi_; |
| 1058 |
1055 #if defined(ENABLE_WEBVR) | 1059 #if defined(ENABLE_WEBVR) |
1056 // The VR dispatcher attached to the frame, lazily initialized. | 1060 // The VR dispatcher attached to the frame, lazily initialized. |
1057 scoped_ptr<VRDispatcher> vr_dispatcher_; | 1061 scoped_ptr<VRDispatcher> vr_dispatcher_; |
1058 #endif | 1062 #endif |
1059 | 1063 |
1060 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1064 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1061 // The external popup for the currently showing select popup. | 1065 // The external popup for the currently showing select popup. |
1062 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1066 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1063 #endif | 1067 #endif |
1064 | 1068 |
1065 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1069 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1066 | 1070 |
1067 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1071 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1068 }; | 1072 }; |
1069 | 1073 |
1070 } // namespace content | 1074 } // namespace content |
1071 | 1075 |
1072 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1076 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |