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.
5 #ifndef IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_
6 #define IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_
8 #import <Foundation/Foundation.h>
10 class PrefRegistrySimple
;
14 // A class to manage the life cycle of a MemoryDebugger instance.
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
;
26 #endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_