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

Side by Side Diff: chrome/browser/memory/system_memory_stats_recorder.h

Issue 1188823002: [MemoryPressure] Move chrome/browser/chromeos/* to chrome/browser/memory/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky@ comments. Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ 5 #ifndef CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_
6 #define CHROME_BROWSER_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ 6 #define CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_
7 7
8 namespace chromeos { 8 namespace memory {
9 9
10 // The type of memory UMA stats to be recorded in RecordMemoryStats. 10 // The type of memory UMA stats to be recorded in RecordMemoryStats.
11 enum RecordMemoryStatsType { 11 enum RecordMemoryStatsType {
12 // When a tab was discarded. 12 // When a tab was discarded.
13 RECORD_MEMORY_STATS_TAB_DISCARDED, 13 RECORD_MEMORY_STATS_TAB_DISCARDED,
14 14
15 // Right after the renderer for contents was killed. 15 // Right after the renderer for contents was killed.
16 RECORD_MEMORY_STATS_CONTENTS_OOM_KILLED, 16 RECORD_MEMORY_STATS_CONTENTS_OOM_KILLED,
17 17
18 // Right after the renderer for extensions was killed. 18 // Right after the renderer for extensions was killed.
19 RECORD_MEMORY_STATS_EXTENSIONS_OOM_KILLED, 19 RECORD_MEMORY_STATS_EXTENSIONS_OOM_KILLED,
20 }; 20 };
21 21
22 void RecordMemoryStats(RecordMemoryStatsType type); 22 void RecordMemoryStats(RecordMemoryStatsType type);
23 23
24 } // namespace chromeos 24 } // namespace memory
25 25
26 #endif // CHROME_BROWSER_CHROMEOS_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_ 26 #endif // CHROME_BROWSER_MEMORY_SYSTEM_MEMORY_STATS_RECORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698