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

Side by Side Diff: extensions/browser/api/web_request/web_request_time_tracker.cc

Issue 584163004: Move web_request directory to //extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/web_request/web_request_time_tracker.h" 5 #include "extensions/browser/api/web_request/web_request_time_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "extensions/browser/warning_set.h" 10 #include "extensions/browser/warning_set.h"
11 11
12 12
13 // TODO(mpcomplete): tweak all these constants. 13 // TODO(mpcomplete): tweak all these constants.
14 namespace { 14 namespace {
15 // The number of requests we keep track of at a time. 15 // The number of requests we keep track of at a time.
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // When a request is redirected, we have no way of knowing how long the 240 // When a request is redirected, we have no way of knowing how long the
241 // request would have taken, so we can't say how much an extension slowed 241 // request would have taken, so we can't say how much an extension slowed
242 // down this request. Just ignore it. 242 // down this request. Just ignore it.
243 request_time_logs_.erase(request_id); 243 request_time_logs_.erase(request_id);
244 } 244 }
245 245
246 void ExtensionWebRequestTimeTracker::SetDelegate( 246 void ExtensionWebRequestTimeTracker::SetDelegate(
247 ExtensionWebRequestTimeTrackerDelegate* delegate) { 247 ExtensionWebRequestTimeTrackerDelegate* delegate) {
248 delegate_.reset(delegate); 248 delegate_.reset(delegate);
249 } 249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698