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

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

Issue 2303953002: Rename an Enum to a slightly better name. (Closed)
Patch Set: Merged. Created 4 years, 3 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 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_picker.h" 5 #include "components/offline_pages/background/request_picker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "components/offline_pages/background/save_page_request.h" 9 #include "components/offline_pages/background/save_page_request.h"
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 255 }
256 } 256 }
257 } 257 }
258 258
259 // Callback used after expired requests are deleted from the queue and notifies 259 // Callback used after expired requests are deleted from the queue and notifies
260 // the coordinator. 260 // the coordinator.
261 void RequestPicker::OnRequestExpired( 261 void RequestPicker::OnRequestExpired(
262 const RequestQueue::UpdateMultipleRequestResults& results, 262 const RequestQueue::UpdateMultipleRequestResults& results,
263 const std::vector<SavePageRequest>& requests) { 263 const std::vector<SavePageRequest>& requests) {
264 for (auto request : requests) 264 for (auto request : requests)
265 notifier_->NotifyCompleted(request, 265 notifier_->NotifyCompleted(
266 RequestCoordinator::SavePageStatus::EXPIRED); 266 request, RequestCoordinator::BackgroundSavePageResult::EXPIRED);
267 } 267 }
268 268
269 } // namespace offline_pages 269 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/background/request_notifier.h ('k') | components/offline_pages/background/request_picker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698