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

Side by Side Diff: content/browser/loader/navigation_url_loader_network_service.cc

Issue 2824193002: Enable use_once_callback for //content/common/*.mojom (Closed)
Patch Set: push_messaging fix Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/loader/navigation_url_loader_network_service.h" 5 #include "content/browser/loader/navigation_url_loader_network_service.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "content/browser/frame_host/navigation_request_info.h" 8 #include "content/browser/frame_host/navigation_request_info.h"
9 #include "content/browser/loader/navigation_resource_handler.h" 9 #include "content/browser/loader/navigation_resource_handler.h"
10 #include "content/browser/loader/navigation_resource_throttle.h" 10 #include "content/browser/loader/navigation_resource_throttle.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 delegate_->OnRequestRedirected(redirect_info, response); 85 delegate_->OnRequestRedirected(redirect_info, response);
86 } 86 }
87 87
88 void NavigationURLLoaderNetworkService::OnDataDownloaded( 88 void NavigationURLLoaderNetworkService::OnDataDownloaded(
89 int64_t data_length, 89 int64_t data_length,
90 int64_t encoded_length) {} 90 int64_t encoded_length) {}
91 91
92 void NavigationURLLoaderNetworkService::OnUploadProgress( 92 void NavigationURLLoaderNetworkService::OnUploadProgress(
93 int64_t current_position, 93 int64_t current_position,
94 int64_t total_size, 94 int64_t total_size,
95 const OnUploadProgressCallback& callback) {} 95 OnUploadProgressCallback callback) {}
96 96
97 void NavigationURLLoaderNetworkService::OnReceiveCachedMetadata( 97 void NavigationURLLoaderNetworkService::OnReceiveCachedMetadata(
98 const std::vector<uint8_t>& data) {} 98 const std::vector<uint8_t>& data) {}
99 99
100 void NavigationURLLoaderNetworkService::OnTransferSizeUpdated( 100 void NavigationURLLoaderNetworkService::OnTransferSizeUpdated(
101 int32_t transfer_size_diff) {} 101 int32_t transfer_size_diff) {}
102 102
103 void NavigationURLLoaderNetworkService::OnStartLoadingResponseBody( 103 void NavigationURLLoaderNetworkService::OnStartLoadingResponseBody(
104 mojo::ScopedDataPipeConsumerHandle body) { 104 mojo::ScopedDataPipeConsumerHandle body) {
105 DCHECK(response_); 105 DCHECK(response_);
106 // Temporarily, we pass both a stream (null) and the data pipe to the 106 // Temporarily, we pass both a stream (null) and the data pipe to the
107 // delegate until PlzNavigate has shipped and we can be comfortable fully 107 // delegate until PlzNavigate has shipped and we can be comfortable fully
108 // switching to the data pipe. 108 // switching to the data pipe.
109 delegate_->OnResponseStarted(response_, nullptr, std::move(body), ssl_status_, 109 delegate_->OnResponseStarted(response_, nullptr, std::move(body), ssl_status_,
110 std::unique_ptr<NavigationData>(), 110 std::unique_ptr<NavigationData>(),
111 GlobalRequestID() /* request_id? */, 111 GlobalRequestID() /* request_id? */,
112 false /* is_download? */, false /* is_stream */); 112 false /* is_download? */, false /* is_stream */);
113 } 113 }
114 114
115 void NavigationURLLoaderNetworkService::OnComplete( 115 void NavigationURLLoaderNetworkService::OnComplete(
116 const ResourceRequestCompletionStatus& completion_status) {} 116 const ResourceRequestCompletionStatus& completion_status) {}
117 117
118 } // namespace content 118 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698