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

Side by Side Diff: content/browser/service_worker/service_worker_fetch_dispatcher.cc

Issue 2658583002: Revert of Use associated interface on DownloadedTempFile (Closed)
Patch Set: Rebased. Created 3 years, 11 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 "content/browser/service_worker/service_worker_fetch_dispatcher.h" 5 #include "content/browser/service_worker/service_worker_fetch_dispatcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 client_->OnUploadProgress(current_position, total_size, ack_callback); 96 client_->OnUploadProgress(current_position, total_size, ack_callback);
97 } 97 }
98 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override { 98 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override {
99 client_->OnReceiveCachedMetadata(data); 99 client_->OnReceiveCachedMetadata(data);
100 } 100 }
101 void OnTransferSizeUpdated(int32_t transfer_size_diff) override { 101 void OnTransferSizeUpdated(int32_t transfer_size_diff) override {
102 client_->OnTransferSizeUpdated(transfer_size_diff); 102 client_->OnTransferSizeUpdated(transfer_size_diff);
103 } 103 }
104 void OnReceiveResponse( 104 void OnReceiveResponse(
105 const ResourceResponseHead& head, 105 const ResourceResponseHead& head,
106 mojom::DownloadedTempFileAssociatedPtrInfo downloaded_file) override { 106 mojom::DownloadedTempFilePtr downloaded_file) override {
107 client_->OnReceiveResponse(head, std::move(downloaded_file)); 107 client_->OnReceiveResponse(head, std::move(downloaded_file));
108 DCHECK(on_response_); 108 DCHECK(on_response_);
109 std::move(on_response_).Run(); 109 std::move(on_response_).Run();
110 } 110 }
111 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, 111 void OnReceiveRedirect(const net::RedirectInfo& redirect_info,
112 const ResourceResponseHead& head) override { 112 const ResourceResponseHead& head) override {
113 client_->OnReceiveRedirect(redirect_info, head); 113 client_->OnReceiveRedirect(redirect_info, head);
114 } 114 }
115 void OnStartLoadingResponseBody( 115 void OnStartLoadingResponseBody(
116 mojo::ScopedDataPipeConsumerHandle body) override { 116 mojo::ScopedDataPipeConsumerHandle body) override {
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 ServiceWorkerVersion* version, 525 ServiceWorkerVersion* version,
526 int event_finish_id, 526 int event_finish_id,
527 scoped_refptr<URLLoaderAssets> url_loader_assets, 527 scoped_refptr<URLLoaderAssets> url_loader_assets,
528 ServiceWorkerStatusCode status, 528 ServiceWorkerStatusCode status,
529 base::Time dispatch_event_time) { 529 base::Time dispatch_event_time) {
530 version->FinishRequest(event_finish_id, status != SERVICE_WORKER_ERROR_ABORT, 530 version->FinishRequest(event_finish_id, status != SERVICE_WORKER_ERROR_ABORT,
531 dispatch_event_time); 531 dispatch_event_time);
532 } 532 }
533 533
534 } // namespace content 534 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/test_url_loader_client.cc ('k') | content/child/url_loader_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698