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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 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 "bindings/modules/v8/ScriptValueSerializerForModules.h" 5 #include "bindings/modules/v8/ScriptValueSerializerForModules.h"
6 6
7 #include "bindings/core/v8/SerializationTag.h" 7 #include "bindings/core/v8/SerializationTag.h"
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "bindings/modules/v8/V8CryptoKey.h" 9 #include "bindings/modules/v8/V8CryptoKey.h"
10 #include "bindings/modules/v8/V8DOMFileSystem.h" 10 #include "bindings/modules/v8/V8DOMFileSystem.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 bool SerializedScriptValueReaderForModules::readRTCCertificate( 401 bool SerializedScriptValueReaderForModules::readRTCCertificate(
402 v8::Local<v8::Value>* value) { 402 v8::Local<v8::Value>* value) {
403 String pemPrivateKey; 403 String pemPrivateKey;
404 if (!readWebCoreString(&pemPrivateKey)) 404 if (!readWebCoreString(&pemPrivateKey))
405 return false; 405 return false;
406 String pemCertificate; 406 String pemCertificate;
407 if (!readWebCoreString(&pemCertificate)) 407 if (!readWebCoreString(&pemCertificate))
408 return false; 408 return false;
409 409
410 std::unique_ptr<WebRTCCertificateGenerator> certificateGenerator = 410 std::unique_ptr<WebRTCCertificateGenerator> certificateGenerator =
411 wrapUnique(Platform::current()->createRTCCertificateGenerator()); 411 WTF::wrapUnique(Platform::current()->createRTCCertificateGenerator());
412 412
413 std::unique_ptr<WebRTCCertificate> certificate( 413 std::unique_ptr<WebRTCCertificate> certificate(
414 certificateGenerator->fromPEM(pemPrivateKey, pemCertificate)); 414 certificateGenerator->fromPEM(pemPrivateKey, pemCertificate));
415 if (!certificate) 415 if (!certificate)
416 return false; 416 return false;
417 RTCCertificate* jsCertificate = new RTCCertificate(std::move(certificate)); 417 RTCCertificate* jsCertificate = new RTCCertificate(std::move(certificate));
418 418
419 *value = 419 *value =
420 toV8(jsCertificate, getScriptState()->context()->Global(), isolate()); 420 toV8(jsCertificate, getScriptState()->context()->Global(), isolate());
421 return !value->IsEmpty(); 421 return !value->IsEmpty();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 : ScriptValueDeserializer(reader, 658 : ScriptValueDeserializer(reader,
659 messagePorts, 659 messagePorts,
660 arrayBufferContents, 660 arrayBufferContents,
661 imageBitmapContents) {} 661 imageBitmapContents) {}
662 662
663 bool ScriptValueDeserializerForModules::read(v8::Local<v8::Value>* value) { 663 bool ScriptValueDeserializerForModules::read(v8::Local<v8::Value>* value) {
664 return toSerializedScriptValueReaderForModules(reader()).read(value, *this); 664 return toSerializedScriptValueReaderForModules(reader()).read(value, *this);
665 } 665 }
666 666
667 } // namespace blink 667 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698