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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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_CONDITIONS_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONDITIONS_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONDITIONS_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONDITIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 class GURL;
14
15 // DevToolsNetworkConditions holds information about desired network conditions. 13 // DevToolsNetworkConditions holds information about desired network conditions.
16 class DevToolsNetworkConditions { 14 class DevToolsNetworkConditions {
17 public: 15 public:
18 DevToolsNetworkConditions(); 16 DevToolsNetworkConditions();
19 ~DevToolsNetworkConditions(); 17 ~DevToolsNetworkConditions();
20 18
21 explicit DevToolsNetworkConditions(bool offline); 19 explicit DevToolsNetworkConditions(bool offline);
22 DevToolsNetworkConditions(bool offline, 20 DevToolsNetworkConditions(bool offline,
23 double latency, 21 double latency,
24 double download_throughput, 22 double download_throughput,
25 double upload_throughput); 23 double upload_throughput);
26 24
27 bool IsThrottling() const; 25 bool IsThrottling() const;
28 26
29 bool offline() const { return offline_; } 27 bool offline() const { return offline_; }
30 double latency() const { return latency_; } 28 double latency() const { return latency_; }
31 double download_throughput() const { return download_throughput_; } 29 double download_throughput() const { return download_throughput_; }
32 double upload_throughput() const { return upload_throughput_; } 30 double upload_throughput() const { return upload_throughput_; }
33 31
34 private: 32 private:
35 const bool offline_; 33 const bool offline_;
36 const double latency_; 34 const double latency_;
37 const double download_throughput_; 35 const double download_throughput_;
38 const double upload_throughput_; 36 const double upload_throughput_;
39 37
40 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkConditions); 38 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkConditions);
41 }; 39 };
42 40
43 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONDITIONS_H_ 41 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_CONDITIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_file_watcher.h ('k') | chrome/browser/devtools/devtools_network_protocol_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698