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

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

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 class UserMediaClientImpl; 145 class UserMediaClientImpl;
146 class WakeLockDispatcher; 146 class WakeLockDispatcher;
147 struct CommonNavigationParams; 147 struct CommonNavigationParams;
148 struct CustomContextMenuContext; 148 struct CustomContextMenuContext;
149 struct FrameReplicationState; 149 struct FrameReplicationState;
150 struct NavigationParams; 150 struct NavigationParams;
151 struct RequestNavigationParams; 151 struct RequestNavigationParams;
152 struct ResourceResponseHead; 152 struct ResourceResponseHead;
153 struct StartNavigationParams; 153 struct StartNavigationParams;
154 struct StreamOverrideParameters; 154 struct StreamOverrideParameters;
155 class VRDispatcher;
156 155
157 class CONTENT_EXPORT RenderFrameImpl 156 class CONTENT_EXPORT RenderFrameImpl
158 : public RenderFrame, 157 : public RenderFrame,
159 NON_EXPORTED_BASE(public blink::WebFrameClient), 158 NON_EXPORTED_BASE(public blink::WebFrameClient),
160 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) { 159 NON_EXPORTED_BASE(public blink::WebFrameSerializerClient) {
161 public: 160 public:
162 // Creates a new RenderFrame as the main frame of |render_view|. 161 // Creates a new RenderFrame as the main frame of |render_view|.
163 static RenderFrameImpl* CreateMainFrame( 162 static RenderFrameImpl* CreateMainFrame(
164 RenderViewImpl* render_view, 163 RenderViewImpl* render_view,
165 int32_t routing_id, 164 int32_t routing_id,
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 const blink::WebString& title) override; 607 const blink::WebString& title) override;
609 void unregisterProtocolHandler(const blink::WebString& scheme, 608 void unregisterProtocolHandler(const blink::WebString& scheme,
610 const blink::WebURL& url) override; 609 const blink::WebURL& url) override;
611 blink::WebBluetooth* bluetooth() override; 610 blink::WebBluetooth* bluetooth() override;
612 blink::WebUSBClient* usbClient() override; 611 blink::WebUSBClient* usbClient() override;
613 void checkIfAudioSinkExistsAndIsAuthorized( 612 void checkIfAudioSinkExistsAndIsAuthorized(
614 const blink::WebString& sink_id, 613 const blink::WebString& sink_id,
615 const blink::WebSecurityOrigin& security_origin, 614 const blink::WebSecurityOrigin& security_origin,
616 blink::WebSetSinkIdCallbacks* web_callbacks) override; 615 blink::WebSetSinkIdCallbacks* web_callbacks) override;
617 616
618 #if defined(ENABLE_WEBVR)
619 blink::WebVRClient* webVRClient() override;
620 #endif
621
622 // WebFrameSerializerClient implementation: 617 // WebFrameSerializerClient implementation:
623 void didSerializeDataForFrame( 618 void didSerializeDataForFrame(
624 const blink::WebCString& data, 619 const blink::WebCString& data,
625 blink::WebFrameSerializerClient::FrameSerializationStatus status) 620 blink::WebFrameSerializerClient::FrameSerializationStatus status)
626 override; 621 override;
627 622
628 // Make this frame show an empty, unscriptable page. 623 // Make this frame show an empty, unscriptable page.
629 // TODO(nasko): Remove this method once swapped out state is no longer used. 624 // TODO(nasko): Remove this method once swapped out state is no longer used.
630 void NavigateToSwappedOutURL(); 625 void NavigateToSwappedOutURL();
631 626
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 // Manages play, pause notifications for WebMediaPlayer implementations; its 1185 // Manages play, pause notifications for WebMediaPlayer implementations; its
1191 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface. 1186 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1192 media::RendererWebMediaPlayerDelegate* media_player_delegate_; 1187 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1193 1188
1194 // Whether or not this RenderFrame is using Lo-Fi mode. 1189 // Whether or not this RenderFrame is using Lo-Fi mode.
1195 bool is_using_lofi_; 1190 bool is_using_lofi_;
1196 1191
1197 // Whether or not this RenderFrame is currently pasting. 1192 // Whether or not this RenderFrame is currently pasting.
1198 bool is_pasting_; 1193 bool is_pasting_;
1199 1194
1200 #if defined(ENABLE_WEBVR)
1201 // The VR dispatcher attached to the frame, lazily initialized.
1202 scoped_ptr<VRDispatcher> vr_dispatcher_;
1203 #endif
1204
1205 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1195 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1206 // The external popup for the currently showing select popup. 1196 // The external popup for the currently showing select popup.
1207 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1197 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1208 #endif 1198 #endif
1209 1199
1210 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1200 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1211 1201
1212 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1202 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1213 }; 1203 };
1214 1204
1215 } // namespace content 1205 } // namespace content
1216 1206
1217 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1207 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698