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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott 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
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/public/common/content_client.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 } 848 }
849 849
850 void BlinkPlatformImpl::didStartWorkerThread() { 850 void BlinkPlatformImpl::didStartWorkerThread() {
851 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread(); 851 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread();
852 } 852 }
853 853
854 void BlinkPlatformImpl::willStopWorkerThread() { 854 void BlinkPlatformImpl::willStopWorkerThread() {
855 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); 855 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread();
856 } 856 }
857 857
858 bool BlinkPlatformImpl::allowScriptExtensionForServiceWorker(
859 const blink::WebURL& scriptUrl) {
860 return GetContentClient()->AllowScriptExtensionForServiceWorker(scriptUrl);
861 }
862
858 blink::WebCrypto* BlinkPlatformImpl::crypto() { 863 blink::WebCrypto* BlinkPlatformImpl::crypto() {
859 return &web_crypto_; 864 return &web_crypto_;
860 } 865 }
861 866
862 blink::WebNotificationManager* 867 blink::WebNotificationManager*
863 BlinkPlatformImpl::notificationManager() { 868 BlinkPlatformImpl::notificationManager() {
864 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) 869 if (!thread_safe_sender_.get() || !notification_dispatcher_.get())
865 return nullptr; 870 return nullptr;
866 871
867 return NotificationManager::ThreadSpecificInstance( 872 return NotificationManager::ThreadSpecificInstance(
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 1004 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
1000 static_cast<ui::DomKey>(dom_key))); 1005 static_cast<ui::DomKey>(dom_key)));
1001 } 1006 }
1002 1007
1003 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 1008 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
1004 return static_cast<int>( 1009 return static_cast<int>(
1005 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 1010 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
1006 } 1011 }
1007 1012
1008 } // namespace content 1013 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/public/common/content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698