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

Unified Diff: chrome/browser/ui/views/auto_keep_alive.h

Issue 1376063005: Cleanup: Pull some browser keep alive functions into its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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/ui/views/auto_keep_alive.h
diff --git a/chrome/browser/ui/views/auto_keep_alive.h b/chrome/browser/ui/views/auto_keep_alive.h
index 6efa54d1427ab592b4d9571f917a59ce6f1859b5..40761b987d389ecbe6c6890cd2ccde360006f28e 100644
--- a/chrome/browser/ui/views/auto_keep_alive.h
+++ b/chrome/browser/ui/views/auto_keep_alive.h
@@ -5,8 +5,13 @@
#ifndef CHROME_BROWSER_UI_VIEWS_AUTO_KEEP_ALIVE_H_
#define CHROME_BROWSER_UI_VIEWS_AUTO_KEEP_ALIVE_H_
+#include "base/memory/scoped_ptr.h"
#include "ui/gfx/native_widget_types.h"
+namespace browser_lifetime {
+class ScopedKeepAlive;
+}
+
// Class to scoped decrement keep alive count.
class AutoKeepAlive {
public:
@@ -14,7 +19,7 @@ class AutoKeepAlive {
~AutoKeepAlive();
private:
- bool keep_alive_available_;
+ scoped_ptr<browser_lifetime::ScopedKeepAlive> keep_alive_;
DISALLOW_COPY_AND_ASSIGN(AutoKeepAlive);
};
« no previous file with comments | « chrome/browser/ui/views/app_list/linux/app_list_service_linux.cc ('k') | chrome/browser/ui/views/auto_keep_alive.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698