| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |