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

Unified Diff: chrome/browser/browser_process_platform_part_chromeos.h

Issue 16844020: app_mode: Add runtime.onRestartRequired event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « no previous file | chrome/browser/browser_process_platform_part_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_platform_part_chromeos.h
diff --git a/chrome/browser/browser_process_platform_part_chromeos.h b/chrome/browser/browser_process_platform_part_chromeos.h
index 3eb12364cc7ca105fc7fdc1d83a7dca4264fc551..08dc6839e6046f94f780546748659ae53c959ba2 100644
--- a/chrome/browser/browser_process_platform_part_chromeos.h
+++ b/chrome/browser/browser_process_platform_part_chromeos.h
@@ -15,12 +15,21 @@ class OomPriorityManager;
class ProfileHelper;
}
+namespace chromeos {
+namespace system {
+class AutomaticRebootManager;
+}
+}
+
class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
public base::NonThreadSafe {
public:
BrowserProcessPlatformPart();
virtual ~BrowserProcessPlatformPart();
+ void InitializeAutomaticRebootManager();
+ void ShutdownAutomaticRebootManager();
+
// Returns the out-of-memory priority manager.
virtual chromeos::OomPriorityManager* oom_priority_manager();
@@ -31,6 +40,10 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
// Overridden from BrowserProcessPlatformPartBase:
virtual void StartTearDown() OVERRIDE;
+ chromeos::system::AutomaticRebootManager* automatic_reboot_manager() {
+ return automatic_reboot_manager_.get();
+ }
+
protected:
virtual void CreateProfileHelper();
@@ -40,6 +53,9 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
private:
scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
+ scoped_ptr<chromeos::system::AutomaticRebootManager>
+ automatic_reboot_manager_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
};
« no previous file with comments | « no previous file | chrome/browser/browser_process_platform_part_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698