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

Side by Side Diff: base/memory/memory_coordinator_client.h

Issue 2311723002: Move memory_coordinator_client and its registry to base/memory (Closed)
Patch Set: Created 4 years, 3 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 2016 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 BASE_MEMORY_MEMORY_COORDINATOR_CLIENT_H_
6 #define BASE_MEMORY_MEMORY_COORDINATOR_CLIENT_H_
7
8 #include "base/base_export.h"
9
10 namespace base {
11
12 enum class MemoryState {
13 UNKNOWN = -1,
14 NORMAL = 0,
15 THROTTLED = 1,
16 SUSPENDED = 2,
17 };
18
19 // This is an interface for components which can respond to memory status
20 // changes.
21 class BASE_EXPORT MemoryCoordinatorClient {
22 public:
23 virtual ~MemoryCoordinatorClient() {}
24
25 // Called when memory state has changed.
26 virtual void OnMemoryStateChange(MemoryState state) = 0;
27 };
28
29 } // namespace base
30
31 #endif // BASE_MEMORY_MEMORY_COORDINATOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698