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

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

Issue 2089413002: [Offline Pages] Create a event/activity logger (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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 base::Bind(&RequestCoordinator::UpdateRequestCallback, 144 base::Bind(&RequestCoordinator::UpdateRequestCallback,
145 weak_ptr_factory_.GetWeakPtr())); 145 weak_ptr_factory_.GetWeakPtr()));
146 146
147 // TODO(petewil): Check time budget. Return to the scheduler if we are out. 147 // TODO(petewil): Check time budget. Return to the scheduler if we are out.
148 148
149 // Start another request if we have time. 149 // Start another request if we have time.
150 TryNextRequest(); 150 TryNextRequest();
151 } 151 }
152 } 152 }
153 153
154 void RequestCoordinator::SetIsLogging(bool should_log) {
Pete Williamson 2016/06/24 00:38:31 I don't see any calls to record logs (for example
chili 2016/06/24 02:45:50 You don't see any logs because I don't actually kn
155 event_logger_.SetIsLogging(should_log);
156 }
157
158 void RequestCoordinator::GetLogs(std::vector<std::string> logs) {
159 event_logger_.GetLogs(logs);
160 }
161
154 } // namespace offline_pages 162 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698