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

Side by Side Diff: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc

Issue 1915373002: Implement empty WorkerInternals interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trials-in-service-workers
Patch Set: nit Created 4 years, 7 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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client .h" 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client .h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/debugger.h" 9 #include "base/debug/debugger.h"
10 #include "components/test_runner/mock_credential_manager_client.h" 10 #include "components/test_runner/mock_credential_manager_client.h"
(...skipping 13 matching lines...) Expand all
24 #include "content/shell/renderer/layout_test/blink_test_runner.h" 24 #include "content/shell/renderer/layout_test/blink_test_runner.h"
25 #include "content/shell/renderer/layout_test/layout_test_render_frame_observer.h " 25 #include "content/shell/renderer/layout_test/layout_test_render_frame_observer.h "
26 #include "content/shell/renderer/layout_test/layout_test_render_thread_observer. h" 26 #include "content/shell/renderer/layout_test/layout_test_render_thread_observer. h"
27 #include "content/shell/renderer/layout_test/test_media_stream_renderer_factory. h" 27 #include "content/shell/renderer/layout_test/test_media_stream_renderer_factory. h"
28 #include "content/shell/renderer/shell_render_view_observer.h" 28 #include "content/shell/renderer/shell_render_view_observer.h"
29 #include "content/test/mock_webclipboard_impl.h" 29 #include "content/test/mock_webclipboard_impl.h"
30 #include "ppapi/shared_impl/ppapi_switches.h" 30 #include "ppapi/shared_impl/ppapi_switches.h"
31 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 31 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
32 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 32 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
33 #include "third_party/WebKit/public/web/WebPluginParams.h" 33 #include "third_party/WebKit/public/web/WebPluginParams.h"
34 #include "third_party/WebKit/public/web/WebTestingSupport.h"
34 #include "third_party/WebKit/public/web/WebView.h" 35 #include "third_party/WebKit/public/web/WebView.h"
35 #include "v8/include/v8.h" 36 #include "v8/include/v8.h"
36 37
37 using blink::WebAudioDevice; 38 using blink::WebAudioDevice;
38 using blink::WebClipboard; 39 using blink::WebClipboard;
39 using blink::WebFrame; 40 using blink::WebFrame;
40 using blink::WebLocalFrame; 41 using blink::WebLocalFrame;
41 using blink::WebMIDIAccessor; 42 using blink::WebMIDIAccessor;
42 using blink::WebMIDIAccessorClient; 43 using blink::WebMIDIAccessorClient;
43 using blink::WebMediaStreamCenter; 44 using blink::WebMediaStreamCenter;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 std::unique_ptr<MediaStreamRendererFactory> 202 std::unique_ptr<MediaStreamRendererFactory>
202 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { 203 LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() {
203 #if defined(ENABLE_WEBRTC) 204 #if defined(ENABLE_WEBRTC)
204 return std::unique_ptr<MediaStreamRendererFactory>( 205 return std::unique_ptr<MediaStreamRendererFactory>(
205 new TestMediaStreamRendererFactory()); 206 new TestMediaStreamRendererFactory());
206 #else 207 #else
207 return nullptr; 208 return nullptr;
208 #endif 209 #endif
209 } 210 }
210 211
212 void LayoutTestContentRendererClient::DidInitializeWorkerContextOnWorkerThread(
213 v8::Local<v8::Context> context) {
214 blink::WebTestingSupport::injectInternalsObject(context);
215 }
216
211 } // namespace content 217 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698