| 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 c6bd2129a935f4c9b593b2ebad0c8c98208d3939..7c9d477fdfe97f5080432a3d21cc84e5519f0359 100644
|
| --- a/chrome/browser/devtools/devtools_network_conditions.h
|
| +++ b/chrome/browser/devtools/devtools_network_conditions.h
|
| @@ -16,10 +16,14 @@ class GURL;
|
| class DevToolsNetworkConditions
|
| : public base::RefCounted<DevToolsNetworkConditions> {
|
| public:
|
| - explicit DevToolsNetworkConditions(const std::vector<std::string>& domains);
|
| + DevToolsNetworkConditions(const std::vector<std::string>& domains,
|
| + double maximal_throughput);
|
|
|
| bool HasMatchingDomain(const GURL& url) const;
|
| bool IsOffline() const;
|
| + bool IsThrottling() const;
|
| +
|
| + double maximal_throughput() const { return maximal_throughput_; }
|
|
|
| private:
|
| friend class base::RefCounted<DevToolsNetworkConditions>;
|
| @@ -29,6 +33,7 @@ class DevToolsNetworkConditions
|
| // List of domains that will be affected by network conditions.
|
| typedef std::vector<std::string> Domains;
|
| const Domains domains_;
|
| + const double maximal_throughput_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkConditions);
|
| };
|
|
|