| Index: chrome/browser/devtools/devtools_network_conditions.h
|
| diff --git a/chrome/browser/devtools/devtools_network_conditions.h b/chrome/browser/devtools/devtools_network_conditions.h
|
| index 7c9d477fdfe97f5080432a3d21cc84e5519f0359..e19f77e9438e14815c9cb3668659a2131b8a0f5f 100644
|
| --- a/chrome/browser/devtools/devtools_network_conditions.h
|
| +++ b/chrome/browser/devtools/devtools_network_conditions.h
|
| @@ -16,24 +16,29 @@ class GURL;
|
| class DevToolsNetworkConditions
|
| : public base::RefCounted<DevToolsNetworkConditions> {
|
| public:
|
| - DevToolsNetworkConditions(const std::vector<std::string>& domains,
|
| - double maximal_throughput);
|
| + DevToolsNetworkConditions();
|
| + explicit DevToolsNetworkConditions(bool offline);
|
| + DevToolsNetworkConditions(bool offline,
|
| + double latency,
|
| + double download_throughput,
|
| + double upload_throughput);
|
|
|
| - bool HasMatchingDomain(const GURL& url) const;
|
| - bool IsOffline() const;
|
| bool IsThrottling() const;
|
|
|
| - double maximal_throughput() const { return maximal_throughput_; }
|
| + bool offline() const { return offline_; }
|
| + double latency() const { return latency_; }
|
| + double download_throughput() const { return download_throughput_; }
|
| + double upload_throughput() const { return upload_throughput_; }
|
|
|
| private:
|
| friend class base::RefCounted<DevToolsNetworkConditions>;
|
|
|
| virtual ~DevToolsNetworkConditions();
|
|
|
| - // List of domains that will be affected by network conditions.
|
| - typedef std::vector<std::string> Domains;
|
| - const Domains domains_;
|
| - const double maximal_throughput_;
|
| + const bool offline_;
|
| + const double latency_;
|
| + const double download_throughput_;
|
| + const double upload_throughput_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkConditions);
|
| };
|
|
|