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

Side by Side Diff: chrome/browser/devtools/devtools_network_interceptor.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 Transactions transactions_; 60 Transactions transactions_;
61 61
62 // Transactions suspended for a "latency" period. 62 // Transactions suspended for a "latency" period.
63 typedef std::pair<DevToolsNetworkTransaction*, int64_t> SuspendedTransaction; 63 typedef std::pair<DevToolsNetworkTransaction*, int64_t> SuspendedTransaction;
64 typedef std::vector<SuspendedTransaction> SuspendedTransactions; 64 typedef std::vector<SuspendedTransaction> SuspendedTransactions;
65 SuspendedTransactions suspended_transactions_; 65 SuspendedTransactions suspended_transactions_;
66 66
67 // Transactions waiting certain amount of transfer to be "accounted". 67 // Transactions waiting certain amount of transfer to be "accounted".
68 std::vector<DevToolsNetworkTransaction*> throttled_transactions_; 68 std::vector<DevToolsNetworkTransaction*> throttled_transactions_;
69 69
70 base::OneShotTimer<DevToolsNetworkInterceptor> timer_; 70 base::OneShotTimer timer_;
71 base::TimeTicks offset_; 71 base::TimeTicks offset_;
72 base::TimeDelta tick_length_; 72 base::TimeDelta tick_length_;
73 base::TimeDelta latency_length_; 73 base::TimeDelta latency_length_;
74 uint64_t last_tick_; 74 uint64_t last_tick_;
75 75
76 base::WeakPtrFactory<DevToolsNetworkInterceptor> weak_ptr_factory_; 76 base::WeakPtrFactory<DevToolsNetworkInterceptor> weak_ptr_factory_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkInterceptor); 78 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkInterceptor);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_ 81 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_INTERCEPTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.h ('k') | chrome/browser/enumerate_modules_model_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698