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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebCryptoAlgorithm.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 : m_private( 328 : m_private(
329 adoptRef(new WebCryptoAlgorithmPrivate(id, std::move(params)))) {} 329 adoptRef(new WebCryptoAlgorithmPrivate(id, std::move(params)))) {}
330 330
331 WebCryptoAlgorithm WebCryptoAlgorithm::createNull() { 331 WebCryptoAlgorithm WebCryptoAlgorithm::createNull() {
332 return WebCryptoAlgorithm(); 332 return WebCryptoAlgorithm();
333 } 333 }
334 334
335 WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate( 335 WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(
336 WebCryptoAlgorithmId id, 336 WebCryptoAlgorithmId id,
337 WebCryptoAlgorithmParams* params) { 337 WebCryptoAlgorithmParams* params) {
338 return WebCryptoAlgorithm(id, wrapUnique(params)); 338 return WebCryptoAlgorithm(id, WTF::wrapUnique(params));
339 } 339 }
340 340
341 const WebCryptoAlgorithmInfo* WebCryptoAlgorithm::lookupAlgorithmInfo( 341 const WebCryptoAlgorithmInfo* WebCryptoAlgorithm::lookupAlgorithmInfo(
342 WebCryptoAlgorithmId id) { 342 WebCryptoAlgorithmId id) {
343 const unsigned idInt = id; 343 const unsigned idInt = id;
344 if (idInt >= WTF_ARRAY_LENGTH(algorithmIdToInfo)) 344 if (idInt >= WTF_ARRAY_LENGTH(algorithmIdToInfo))
345 return 0; 345 return 0;
346 return &algorithmIdToInfo[id]; 346 return &algorithmIdToInfo[id];
347 } 347 }
348 348
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 void WebCryptoAlgorithm::assign(const WebCryptoAlgorithm& other) { 539 void WebCryptoAlgorithm::assign(const WebCryptoAlgorithm& other) {
540 m_private = other.m_private; 540 m_private = other.m_private;
541 } 541 }
542 542
543 void WebCryptoAlgorithm::reset() { 543 void WebCryptoAlgorithm::reset() {
544 m_private.reset(); 544 m_private.reset();
545 } 545 }
546 546
547 } // namespace blink 547 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698