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

Unified Diff: ios/chrome/browser/memory/memory_debugger_manager.h

Issue 1057933002: [iOS] Upstream //ios/chrome/browser/memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@upstreamNet
Patch Set: Remove extra bracket Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/memory/memory_debugger.mm ('k') | ios/chrome/browser/memory/memory_debugger_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ios/chrome/browser/memory/memory_debugger.mm ('k') | ios/chrome/browser/memory/memory_debugger_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698