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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.cc

Issue 2574143003: Implement upload progress handling in Mojo loading (Closed)
Patch Set: +comment 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
« no previous file with comments | « content/common/url_loader.mojom ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/service_worker/service_worker_context_client.h" 5 #include "content/renderer/service_worker/service_worker_context_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // This will delete |this|. 287 // This will delete |this|.
288 ReportErrorToClient( 288 ReportErrorToClient(
289 "Service Worker navigation preload doesn't suport redirect."); 289 "Service Worker navigation preload doesn't suport redirect.");
290 } 290 }
291 291
292 void OnDataDownloaded(int64_t data_length, 292 void OnDataDownloaded(int64_t data_length,
293 int64_t encoded_data_length) override { 293 int64_t encoded_data_length) override {
294 NOTREACHED(); 294 NOTREACHED();
295 } 295 }
296 296
297 void OnUploadProgress(int64_t current_position,
298 int64_t total_size,
299 const base::Closure& ack_callback) override {
300 NOTREACHED();
301 }
302
297 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override {} 303 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override {}
298 304
299 void OnTransferSizeUpdated(int32_t transfer_size_diff) override { 305 void OnTransferSizeUpdated(int32_t transfer_size_diff) override {
300 NOTREACHED(); 306 NOTREACHED();
301 } 307 }
302 308
303 void OnStartLoadingResponseBody( 309 void OnStartLoadingResponseBody(
304 mojo::ScopedDataPipeConsumerHandle body) override { 310 mojo::ScopedDataPipeConsumerHandle body) override {
305 DCHECK(!body_.is_valid()); 311 DCHECK(!body_.is_valid());
306 body_ = std::move(body); 312 body_ = std::move(body);
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 } 1256 }
1251 1257
1252 base::WeakPtr<ServiceWorkerContextClient> 1258 base::WeakPtr<ServiceWorkerContextClient>
1253 ServiceWorkerContextClient::GetWeakPtr() { 1259 ServiceWorkerContextClient::GetWeakPtr() {
1254 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); 1260 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread());
1255 DCHECK(context_); 1261 DCHECK(context_);
1256 return context_->weak_factory.GetWeakPtr(); 1262 return context_->weak_factory.GetWeakPtr();
1257 } 1263 }
1258 1264
1259 } // namespace content 1265 } // namespace content
OLDNEW
« no previous file with comments | « content/common/url_loader.mojom ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698