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

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

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 11 matching lines...) Expand all
22 #include "base/process/process_handle.h" 22 #include "base/process/process_handle.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "content/common/accessibility_mode_enums.h" 24 #include "content/common/accessibility_mode_enums.h"
25 #include "content/common/frame_message_enums.h" 25 #include "content/common/frame_message_enums.h"
26 #include "content/common/mojo/service_registry_impl.h" 26 #include "content/common/mojo/service_registry_impl.h"
27 #include "content/public/common/console_message_level.h" 27 #include "content/public/common/console_message_level.h"
28 #include "content/public/common/javascript_message_type.h" 28 #include "content/public/common/javascript_message_type.h"
29 #include "content/public/common/referrer.h" 29 #include "content/public/common/referrer.h"
30 #include "content/public/common/stop_find_action.h" 30 #include "content/public/common/stop_find_action.h"
31 #include "content/public/renderer/render_frame.h" 31 #include "content/public/renderer/render_frame.h"
32 #include "content/renderer/mojo/blink_service_registry_impl.h"
32 #include "content/renderer/render_frame_proxy.h" 33 #include "content/renderer/render_frame_proxy.h"
33 #include "content/renderer/renderer_webcookiejar_impl.h" 34 #include "content/renderer/renderer_webcookiejar_impl.h"
34 #include "ipc/ipc_message.h" 35 #include "ipc/ipc_message.h"
35 #include "ipc/ipc_platform_file.h" 36 #include "ipc/ipc_platform_file.h"
36 #include "media/blink/webmediaplayer_delegate.h" 37 #include "media/blink/webmediaplayer_delegate.h"
37 #include "media/blink/webmediaplayer_params.h" 38 #include "media/blink/webmediaplayer_params.h"
38 #include "mojo/shell/public/interfaces/connector.mojom.h" 39 #include "mojo/shell/public/interfaces/connector.mojom.h"
39 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" 40 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
40 #include "third_party/WebKit/public/platform/WebFocusType.h" 41 #include "third_party/WebKit/public/platform/WebFocusType.h"
41 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 42 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 const blink::WebURL& url, 607 const blink::WebURL& url,
607 const blink::WebString& title) override; 608 const blink::WebString& title) override;
608 void unregisterProtocolHandler(const blink::WebString& scheme, 609 void unregisterProtocolHandler(const blink::WebString& scheme,
609 const blink::WebURL& url) override; 610 const blink::WebURL& url) override;
610 blink::WebBluetooth* bluetooth() override; 611 blink::WebBluetooth* bluetooth() override;
611 blink::WebUSBClient* usbClient() override; 612 blink::WebUSBClient* usbClient() override;
612 void checkIfAudioSinkExistsAndIsAuthorized( 613 void checkIfAudioSinkExistsAndIsAuthorized(
613 const blink::WebString& sink_id, 614 const blink::WebString& sink_id,
614 const blink::WebSecurityOrigin& security_origin, 615 const blink::WebSecurityOrigin& security_origin,
615 blink::WebSetSinkIdCallbacks* web_callbacks) override; 616 blink::WebSetSinkIdCallbacks* web_callbacks) override;
617 blink::ServiceRegistry* serviceRegistry() override;
616 618
617 #if defined(ENABLE_WEBVR) 619 #if defined(ENABLE_WEBVR)
618 blink::WebVRClient* webVRClient() override; 620 blink::WebVRClient* webVRClient() override;
619 #endif 621 #endif
620 622
621 // WebFrameSerializerClient implementation: 623 // WebFrameSerializerClient implementation:
622 void didSerializeDataForFrame( 624 void didSerializeDataForFrame(
623 const blink::WebCString& data, 625 const blink::WebCString& data,
624 blink::WebFrameSerializerClient::FrameSerializationStatus status) 626 blink::WebFrameSerializerClient::FrameSerializationStatus status)
625 override; 627 override;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 GeolocationDispatcher* geolocation_dispatcher_; 1151 GeolocationDispatcher* geolocation_dispatcher_;
1150 1152
1151 // The push messaging dispatcher attached to this frame, lazily initialized. 1153 // The push messaging dispatcher attached to this frame, lazily initialized.
1152 PushMessagingDispatcher* push_messaging_dispatcher_; 1154 PushMessagingDispatcher* push_messaging_dispatcher_;
1153 1155
1154 // The presentation dispatcher implementation attached to this frame, lazily 1156 // The presentation dispatcher implementation attached to this frame, lazily
1155 // initialized. 1157 // initialized.
1156 PresentationDispatcher* presentation_dispatcher_; 1158 PresentationDispatcher* presentation_dispatcher_;
1157 1159
1158 ServiceRegistryImpl service_registry_; 1160 ServiceRegistryImpl service_registry_;
1161 BlinkServiceRegistryImpl blink_service_registry_;
1159 1162
1160 // The shell proxy used to connect to Mojo applications. 1163 // The shell proxy used to connect to Mojo applications.
1161 mojo::shell::mojom::ConnectorPtr connector_; 1164 mojo::shell::mojom::ConnectorPtr connector_;
1162 1165
1163 // The screen orientation dispatcher attached to the frame, lazily 1166 // The screen orientation dispatcher attached to the frame, lazily
1164 // initialized. 1167 // initialized.
1165 ScreenOrientationDispatcher* screen_orientation_dispatcher_; 1168 ScreenOrientationDispatcher* screen_orientation_dispatcher_;
1166 1169
1167 // The Manifest Manager handles the manifest requests from the browser 1170 // The Manifest Manager handles the manifest requests from the browser
1168 // process. 1171 // process.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 #endif 1207 #endif
1205 1208
1206 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1209 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1207 1210
1208 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1211 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1209 }; 1212 };
1210 1213
1211 } // namespace content 1214 } // namespace content
1212 1215
1213 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1216 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698