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

Unified Diff: ios/chrome/browser/memory/memory_debugger.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/OWNERS ('k') | ios/chrome/browser/memory/memory_debugger.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.h
diff --git a/ios/chrome/browser/memory/memory_debugger.h b/ios/chrome/browser/memory/memory_debugger.h
new file mode 100644
index 0000000000000000000000000000000000000000..a3c9c07f657972f442d29771dd6a89b428d567c5
--- /dev/null
+++ b/ios/chrome/browser/memory/memory_debugger.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_H_
+#define IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_H_
+
+#import <UIKit/UIKit.h>
+
+// A view that contains memory information (e.g. amount of free memory) and
+// tools (e.g. trigger memory warning) to help investigate memory issues and
+// performance.
+//
+// The debugger ensures that it remains visible by continuously calling
+// bringSubviewToFront on it's parent so it should be added as a subview of the
+// the application's window in order to stay visible all the times.
+//
+// The debugger owns some timers that must be invalidated before it can be
+// deallocated so the owner must call |invalidateTimers| before a MemoryDebugger
+// instance can be deallocated.
+@interface MemoryDebugger : UIView<UITextFieldDelegate>
+// Must be called before the object can be deallocated!
+- (void)invalidateTimers;
+@end
+
+#endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_H_
« no previous file with comments | « ios/chrome/browser/memory/OWNERS ('k') | ios/chrome/browser/memory/memory_debugger.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698