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

Unified Diff: chrome/browser/chromeos/memory/oom_memory_details.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/memory/oom_memory_details.h
diff --git a/chrome/browser/chromeos/memory/oom_memory_details.h b/chrome/browser/chromeos/memory/oom_memory_details.h
deleted file mode 100644
index fa781a2a07a443d4e8ee97a724dbc7bf8c4936f9..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/memory/oom_memory_details.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 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 CHROME_BROWSER_CHROMEOS_MEMORY_OOM_MEMORY_DETAILS_H_
-#define CHROME_BROWSER_CHROMEOS_MEMORY_OOM_MEMORY_DETAILS_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "chrome/browser/memory_details.h"
-
-namespace chromeos {
-
-////////////////////////////////////////////////////////////////////////////////
-// OomMemoryDetails logs details about all Chrome processes during an out-of-
-// memory event in an attempt to identify the culprit.
-class OomMemoryDetails : public MemoryDetails {
- public:
- // Logs the memory details asynchronously and then run |callback|.
- // The |title| is printed at the beginning of the message.
- static void Log(const std::string& title, const base::Closure& callback);
-
- private:
- OomMemoryDetails(const std::string& title, const base::Closure& callback);
- ~OomMemoryDetails() override;
-
- // MemoryDetails overrides:
- void OnDetailsAvailable() override;
-
- std::string title_;
- base::TimeTicks start_time_;
- base::Closure callback_;
-
- DISALLOW_COPY_AND_ASSIGN(OomMemoryDetails);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_MEMORY_OOM_MEMORY_DETAILS_H_
« no previous file with comments | « chrome/browser/chromeos/memory/low_memory_observer.cc ('k') | chrome/browser/chromeos/memory/oom_memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698