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

Side by Side Diff: components/offline_pages/background/request_coordinator.cc

Issue 2099563003: fix const reference declaration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « components/offline_pages/background/request_coordinator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/offline_pages/background/request_coordinator.h" 5 #include "components/offline_pages/background/request_coordinator.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 base::Bind(&RequestCoordinator::UpdateRequestCallback, 161 base::Bind(&RequestCoordinator::UpdateRequestCallback,
162 weak_ptr_factory_.GetWeakPtr())); 162 weak_ptr_factory_.GetWeakPtr()));
163 163
164 // TODO(petewil): Check time budget. Return to the scheduler if we are out. 164 // TODO(petewil): Check time budget. Return to the scheduler if we are out.
165 165
166 // Start another request if we have time. 166 // Start another request if we have time.
167 TryNextRequest(); 167 TryNextRequest();
168 } 168 }
169 } 169 }
170 170
171 Scheduler::TriggerConditions const& 171 const Scheduler::TriggerConditions&
172 RequestCoordinator::GetTriggerConditionsForUserRequest() { 172 RequestCoordinator::GetTriggerConditionsForUserRequest() {
173 return kUserRequestTriggerConditions; 173 return kUserRequestTriggerConditions;
174 } 174 }
175 175
176 void RequestCoordinator::GetOffliner() { 176 void RequestCoordinator::GetOffliner() {
177 if (!offliner_) { 177 if (!offliner_) {
178 offliner_ = factory_->GetOffliner(policy_.get()); 178 offliner_ = factory_->GetOffliner(policy_.get());
179 } 179 }
180 } 180 }
181 181
182 } // namespace offline_pages 182 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/background/request_coordinator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698