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

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

Issue 2116763002: Reland: Web MIDI: use mojom::blink::PermissionService directly to ask permission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for second attempt Created 4 years, 4 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/renderer/media/midi_dispatcher.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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 void requestStorageQuota(blink::WebStorageQuotaType type, 597 void requestStorageQuota(blink::WebStorageQuotaType type,
598 unsigned long long requested_size, 598 unsigned long long requested_size,
599 blink::WebStorageQuotaCallbacks callbacks) override; 599 blink::WebStorageQuotaCallbacks callbacks) override;
600 void willOpenWebSocket(blink::WebSocketHandle* handle) override; 600 void willOpenWebSocket(blink::WebSocketHandle* handle) override;
601 blink::WebPushClient* pushClient() override; 601 blink::WebPushClient* pushClient() override;
602 blink::WebPresentationClient* presentationClient() override; 602 blink::WebPresentationClient* presentationClient() override;
603 void willStartUsingPeerConnectionHandler( 603 void willStartUsingPeerConnectionHandler(
604 blink::WebRTCPeerConnectionHandler* handler) override; 604 blink::WebRTCPeerConnectionHandler* handler) override;
605 blink::WebUserMediaClient* userMediaClient() override; 605 blink::WebUserMediaClient* userMediaClient() override;
606 blink::WebEncryptedMediaClient* encryptedMediaClient() override; 606 blink::WebEncryptedMediaClient* encryptedMediaClient() override;
607 blink::WebMIDIClient* webMIDIClient() override;
608 blink::WebString userAgentOverride() override; 607 blink::WebString userAgentOverride() override;
609 blink::WebString doNotTrackValue() override; 608 blink::WebString doNotTrackValue() override;
610 bool allowWebGL(bool default_value) override; 609 bool allowWebGL(bool default_value) override;
611 blink::WebScreenOrientationClient* webScreenOrientationClient() override; 610 blink::WebScreenOrientationClient* webScreenOrientationClient() override;
612 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override; 611 bool isControlledByServiceWorker(blink::WebDataSource& data_source) override;
613 int64_t serviceWorkerID(blink::WebDataSource& data_source) override; 612 int64_t serviceWorkerID(blink::WebDataSource& data_source) override;
614 void postAccessibilityEvent(const blink::WebAXObject& obj, 613 void postAccessibilityEvent(const blink::WebAXObject& obj,
615 blink::WebAXEvent event) override; 614 blink::WebAXEvent event) override;
616 void handleAccessibilityFindInPageResult( 615 void handleAccessibilityFindInPageResult(
617 int identifier, 616 int identifier,
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 web_encrypted_media_client_; 1150 web_encrypted_media_client_;
1152 1151
1153 // The media permission dispatcher attached to this frame. 1152 // The media permission dispatcher attached to this frame.
1154 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; 1153 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
1155 1154
1156 #if defined(ENABLE_MOJO_MEDIA) 1155 #if defined(ENABLE_MOJO_MEDIA)
1157 // The media interface provider attached to this frame, lazily initialized. 1156 // The media interface provider attached to this frame, lazily initialized.
1158 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; 1157 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_;
1159 #endif 1158 #endif
1160 1159
1161 // MidiClient attached to this frame; lazily initialized.
1162 MidiDispatcher* midi_dispatcher_;
1163
1164 #if defined(OS_ANDROID) 1160 #if defined(OS_ANDROID)
1165 // Manages all media players and sessions in this render frame for 1161 // Manages all media players and sessions in this render frame for
1166 // communicating with the real media player and sessions in the 1162 // communicating with the real media player and sessions in the
1167 // browser process. It's okay to use raw pointers since they're both 1163 // browser process. It's okay to use raw pointers since they're both
1168 // RenderFrameObservers. 1164 // RenderFrameObservers.
1169 RendererMediaPlayerManager* media_player_manager_; 1165 RendererMediaPlayerManager* media_player_manager_;
1170 RendererMediaSessionManager* media_session_manager_; 1166 RendererMediaSessionManager* media_session_manager_;
1171 #endif 1167 #endif
1172 1168
1173 media::SurfaceManager* media_surface_manager_; 1169 media::SurfaceManager* media_surface_manager_;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 mojom::FrameHostPtr frame_host_; 1278 mojom::FrameHostPtr frame_host_;
1283 1279
1284 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1280 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1285 1281
1286 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1282 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1287 }; 1283 };
1288 1284
1289 } // namespace content 1285 } // namespace content
1290 1286
1291 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1287 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/midi_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698