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

Side by Side Diff: third_party/WebKit/Source/modules/cachestorage/Cache.cpp

Issue 2308343002: Replaced PassRefPtr copites with moves in Source/modules. (Closed)
Patch Set: Created 4 years, 3 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 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 "modules/cachestorage/Cache.h" 5 #include "modules/cachestorage/Cache.h"
6 6
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 7 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 response->populateWebServiceWorkerResponse(m_webResponse); 321 response->populateWebServiceWorkerResponse(m_webResponse);
322 } 322 }
323 ~BlobHandleCallbackForPut() override { } 323 ~BlobHandleCallbackForPut() override { }
324 324
325 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> handle) overrid e 325 void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle> handle) overrid e
326 { 326 {
327 WebServiceWorkerCache::BatchOperation batchOperation; 327 WebServiceWorkerCache::BatchOperation batchOperation;
328 batchOperation.operationType = WebServiceWorkerCache::OperationTypePut; 328 batchOperation.operationType = WebServiceWorkerCache::OperationTypePut;
329 batchOperation.request = m_webRequest; 329 batchOperation.request = m_webRequest;
330 batchOperation.response = m_webResponse; 330 batchOperation.response = m_webResponse;
331 batchOperation.response.setBlobDataHandle(handle); 331 batchOperation.response.setBlobDataHandle(std::move(handle));
332 m_barrierCallback->onSuccess(m_index, batchOperation); 332 m_barrierCallback->onSuccess(m_index, batchOperation);
333 } 333 }
334 334
335 void didFetchDataLoadFailed() override 335 void didFetchDataLoadFailed() override
336 { 336 {
337 m_barrierCallback->onError("network error"); 337 m_barrierCallback->onError("network error");
338 } 338 }
339 339
340 DEFINE_INLINE_VIRTUAL_TRACE() 340 DEFINE_INLINE_VIRTUAL_TRACE()
341 { 341 {
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), webReques t, toWebQueryParams(options)); 623 m_webCache->dispatchKeys(new CacheWithRequestsCallbacks(resolver), webReques t, toWebQueryParams(options));
624 return promise; 624 return promise;
625 } 625 }
626 626
627 WebServiceWorkerCache* Cache::webCache() const 627 WebServiceWorkerCache* Cache::webCache() const
628 { 628 {
629 return m_webCache.get(); 629 return m_webCache.get();
630 } 630 }
631 631
632 } // namespace blink 632 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698