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

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

Issue 2561743003: Use associated interface on DownloadedTempFile (Closed)
Patch Set: +NOTREACHED on non frame trasfer 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 client_->OnDataDownloaded(data_length, encoded_length); 88 client_->OnDataDownloaded(data_length, encoded_length);
89 } 89 }
90 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override { 90 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override {
91 client_->OnReceiveCachedMetadata(data); 91 client_->OnReceiveCachedMetadata(data);
92 } 92 }
93 void OnTransferSizeUpdated(int32_t transfer_size_diff) override { 93 void OnTransferSizeUpdated(int32_t transfer_size_diff) override {
94 client_->OnTransferSizeUpdated(transfer_size_diff); 94 client_->OnTransferSizeUpdated(transfer_size_diff);
95 } 95 }
96 void OnReceiveResponse( 96 void OnReceiveResponse(
97 const ResourceResponseHead& head, 97 const ResourceResponseHead& head,
98 mojom::DownloadedTempFilePtr downloaded_file) override { 98 mojom::DownloadedTempFileAssociatedPtrInfo downloaded_file) override {
99 client_->OnReceiveResponse(head, std::move(downloaded_file)); 99 client_->OnReceiveResponse(head, std::move(downloaded_file));
100 } 100 }
101 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, 101 void OnReceiveRedirect(const net::RedirectInfo& redirect_info,
102 const ResourceResponseHead& head) override { 102 const ResourceResponseHead& head) override {
103 client_->OnReceiveRedirect(redirect_info, head); 103 client_->OnReceiveRedirect(redirect_info, head);
104 } 104 }
105 void OnStartLoadingResponseBody( 105 void OnStartLoadingResponseBody(
106 mojo::ScopedDataPipeConsumerHandle body) override { 106 mojo::ScopedDataPipeConsumerHandle body) override {
107 client_->OnStartLoadingResponseBody(std::move(body)); 107 client_->OnStartLoadingResponseBody(std::move(body));
108 } 108 }
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 ServiceWorkerVersion* version, 510 ServiceWorkerVersion* version,
511 int event_finish_id, 511 int event_finish_id,
512 scoped_refptr<URLLoaderAssets> url_loader_assets, 512 scoped_refptr<URLLoaderAssets> url_loader_assets,
513 ServiceWorkerStatusCode status, 513 ServiceWorkerStatusCode status,
514 base::Time dispatch_event_time) { 514 base::Time dispatch_event_time) {
515 version->FinishRequest(event_finish_id, status != SERVICE_WORKER_ERROR_ABORT, 515 version->FinishRequest(event_finish_id, status != SERVICE_WORKER_ERROR_ABORT,
516 dispatch_event_time); 516 dispatch_event_time);
517 } 517 }
518 518
519 } // namespace content 519 } // 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