| Index: ios/chrome/browser/memory/memory_debugger_manager.h
|
| diff --git a/ios/chrome/browser/memory/memory_debugger_manager.h b/ios/chrome/browser/memory/memory_debugger_manager.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4cd7941b611a96d29fdbfc33d043bd3f7b42ab1c
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/memory/memory_debugger_manager.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_
|
| +#define IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +class PrefRegistrySimple;
|
| +class PrefService;
|
| +@class UIView;
|
| +
|
| +// A class to manage the life cycle of a MemoryDebugger instance.
|
| +//
|
| +// A MemoryDebugger's existence is controlled by a pref in local state, so the
|
| +// MemoryDebuggerManager listens for changes to that pref and instantiates or
|
| +// frees the debugger as appropriate.
|
| +@interface MemoryDebuggerManager : NSObject
|
| +// Designated initializer.
|
| +- (instancetype)initWithView:(UIView*)view prefs:(PrefService*)prefs;
|
| +// Registers local state preferences.
|
| ++ (void)registerLocalState:(PrefRegistrySimple*)registry;
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_MANAGER_H_
|
|
|