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

Side by Side Diff: components/framelet/browser/resource_usage_reporter_client.h

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 10 months 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
(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_
OLDNEW
« no previous file with comments | « components/framelet/browser/resource_usage_reporter_base.h ('k') | components/framelet/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698