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

Side by Side Diff: content/shell/renderer/shell_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shell_content_renderer_client.h" 5 #include "content/shell/renderer/shell_content_renderer_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "components/web_cache/renderer/web_cache_impl.h" 8 #include "components/web_cache/renderer/web_cache_impl.h"
9 #include "content/shell/common/shell_switches.h"
9 #include "content/shell/renderer/shell_render_view_observer.h" 10 #include "content/shell/renderer/shell_render_view_observer.h"
11 #include "third_party/WebKit/public/web/WebTestingSupport.h"
10 #include "third_party/WebKit/public/web/WebView.h" 12 #include "third_party/WebKit/public/web/WebView.h"
11 #include "v8/include/v8.h" 13 #include "v8/include/v8.h"
12 14
13 #if defined(ENABLE_PLUGINS) 15 #if defined(ENABLE_PLUGINS)
14 #include "ppapi/shared_impl/ppapi_switches.h" 16 #include "ppapi/shared_impl/ppapi_switches.h"
15 #endif 17 #endif
16 18
17 namespace content { 19 namespace content {
18 20
19 ShellContentRendererClient::ShellContentRendererClient() {} 21 ShellContentRendererClient::ShellContentRendererClient() {}
(...skipping 21 matching lines...) Expand all
41 43
42 bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() { 44 bool ShellContentRendererClient::IsPluginAllowedToUseDevChannelAPIs() {
43 #if defined(ENABLE_PLUGINS) 45 #if defined(ENABLE_PLUGINS)
44 return base::CommandLine::ForCurrentProcess()->HasSwitch( 46 return base::CommandLine::ForCurrentProcess()->HasSwitch(
45 switches::kEnablePepperTesting); 47 switches::kEnablePepperTesting);
46 #else 48 #else
47 return false; 49 return false;
48 #endif 50 #endif
49 } 51 }
50 52
53 void ShellContentRendererClient::DidInitializeWorkerContextOnWorkerThread(
54 v8::Local<v8::Context> context) {
55 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
56 switches::kExposeInternalsForTesting)) {
57 blink::WebTestingSupport::injectInternalsObject(context);
58 }
59 }
60
51 } // namespace content 61 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698