OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |
| 6 #define COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/framelet/browser/resource_usage_range.h" |
| 10 #include "components/framelet/browser/resource_usage_reporter.h" |
| 11 |
| 12 namespace framelet { |
| 13 |
| 14 template <class T> |
| 15 class ResourceUsageReporterClient { |
| 16 public: |
| 17 virtual void OnResourceUsageLevelChanged( |
| 18 const ResourceUsageLevel& usage_level) = 0; |
| 19 |
| 20 virtual scoped_ptr<ResourceUsageRange<T>> GetRangeForUsageLevel( |
| 21 const ResourceUsageLevel& usage_level) const = 0; |
| 22 |
| 23 protected: |
| 24 virtual ~ResourceUsageReporterClient() {} |
| 25 }; |
| 26 |
| 27 } // namespace framelet |
| 28 |
| 29 #endif // COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |
OLD | NEW |