OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_ |
| 6 #define IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 class PrefRegistrySimple; |
| 11 class PrefService; |
| 12 @class UIView; |
| 13 |
| 14 // A class to manage the life cycle of a MemoryDebugger instance. |
| 15 // |
| 16 // A MemoryDebugger's existence is controlled by a pref in local state, so the |
| 17 // MemoryDebuggerManager listens for changes to that pref and instantiates or |
| 18 // frees the debugger as appropriate. |
| 19 @interface MemoryDebuggerManager : NSObject |
| 20 // Designated initializer. |
| 21 - (instancetype)initWithView:(UIView*)view prefs:(PrefService*)prefs; |
| 22 // Registers local state preferences. |
| 23 + (void)registerLocalState:(PrefRegistrySimple*)registry; |
| 24 @end |
| 25 |
| 26 #endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_ |
OLD | NEW |