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

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

Issue 379383002: Refactor WebCrypto code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto master (no longer has BoringSSL) Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/child/webcrypto/algorithm_dispatch.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 <vector> 9 #include <vector>
10 10
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); 926 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
927 worker_task_runner->OnWorkerThreadStarted(thread); 927 worker_task_runner->OnWorkerThreadStarted(thread);
928 } 928 }
929 929
930 void BlinkPlatformImpl::didStopWorkerThread(blink::WebThread* thread) { 930 void BlinkPlatformImpl::didStopWorkerThread(blink::WebThread* thread) {
931 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance(); 931 WorkerTaskRunner* worker_task_runner = WorkerTaskRunner::Instance();
932 worker_task_runner->OnWorkerThreadStopped(thread); 932 worker_task_runner->OnWorkerThreadStopped(thread);
933 } 933 }
934 934
935 blink::WebCrypto* BlinkPlatformImpl::crypto() { 935 blink::WebCrypto* BlinkPlatformImpl::crypto() {
936 WebCryptoImpl::EnsureInit();
937 return &web_crypto_; 936 return &web_crypto_;
938 } 937 }
939 938
940 939
941 WebThemeEngine* BlinkPlatformImpl::themeEngine() { 940 WebThemeEngine* BlinkPlatformImpl::themeEngine() {
942 return &native_theme_engine_; 941 return &native_theme_engine_;
943 } 942 }
944 943
945 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { 944 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() {
946 return &fallback_theme_engine_; 945 return &fallback_theme_engine_;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 } 1122 }
1124 1123
1125 // static 1124 // static
1126 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1125 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1127 WebThreadImplForMessageLoop* impl = 1126 WebThreadImplForMessageLoop* impl =
1128 static_cast<WebThreadImplForMessageLoop*>(thread); 1127 static_cast<WebThreadImplForMessageLoop*>(thread);
1129 delete impl; 1128 delete impl;
1130 } 1129 }
1131 1130
1132 } // namespace content 1131 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/child/webcrypto/algorithm_dispatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698