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

Unified Diff: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.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/metro_viewer/chrome_metro_viewer_process_host_aurawin.h
diff --git a/chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h b/chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h
index 26fae655c6c6cec2a362abfac1daf2a1bf1ebff2..7be0e3aabf1c4854e194b06586b0c106bc78fac2 100644
--- a/chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h
+++ b/chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h
@@ -5,12 +5,17 @@
#ifndef CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_
#define CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_
+#include "base/memory/scoped_ptr.h"
#include "win8/viewer/metro_viewer_process_host.h"
namespace base {
class FilePath;
}
+namespace browser_lifetime {
+class ScopedKeepAlive;
+}
+
class ChromeMetroViewerProcessHost : public win8::MetroViewerProcessHost {
public:
ChromeMetroViewerProcessHost();
@@ -28,6 +33,8 @@ class ChromeMetroViewerProcessHost : public win8::MetroViewerProcessHost {
void OnHandleSearchRequest(const base::string16& search_string) override;
void OnWindowSizeChanged(uint32 width, uint32 height) override;
+ scoped_ptr<browser_lifetime::ScopedKeepAlive> keep_alive_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeMetroViewerProcessHost);
};
« no previous file with comments | « chrome/browser/lifetime/browser_keep_alive.cc ('k') | chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698