Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / chrome / browser / memory / memory_debugger_manager.h
blob4cd7941b611a96d29fdbfc33d043bd3f7b42ab1c
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;
11 class PrefService;
12 @class UIView;
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;
24 @end
26 #endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_