Index: components/framelet/browser/resource_usage_reporter_client.h |
diff --git a/components/framelet/browser/resource_usage_reporter_client.h b/components/framelet/browser/resource_usage_reporter_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0950d9bbcf3da02640e7d6b5fe48ff69098ca5c4 |
--- /dev/null |
+++ b/components/framelet/browser/resource_usage_reporter_client.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |
+#define COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
+#include "components/framelet/browser/resource_usage_range.h" |
+#include "components/framelet/browser/resource_usage_reporter.h" |
+ |
+namespace framelet { |
+ |
+template <class T> |
+class ResourceUsageReporterClient { |
+ public: |
+ virtual void OnResourceUsageLevelChanged( |
+ const ResourceUsageLevel& usage_level) = 0; |
+ |
+ virtual scoped_ptr<ResourceUsageRange<T>> GetRangeForUsageLevel( |
+ const ResourceUsageLevel& usage_level) const = 0; |
+ |
+ protected: |
+ virtual ~ResourceUsageReporterClient() {} |
+}; |
+ |
+} // namespace framelet |
+ |
+#endif // COMPONENTS_FRAMELET_BROWSER_RESOURCE_USAGE_REPORTER_CLIENT_H_ |