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

Side by Side Diff: chrome/browser/chromeos/power/extension_event_observer.h

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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_POWER_EXTENSION_EVENT_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Called when the system is about to perform a regular suspend or a dark 107 // Called when the system is about to perform a regular suspend or a dark
108 // suspend. 108 // suspend.
109 void OnSuspendImminent(bool dark_suspend); 109 void OnSuspendImminent(bool dark_suspend);
110 110
111 // Reports readiness to suspend to the PowerManagerClient if a suspend is 111 // Reports readiness to suspend to the PowerManagerClient if a suspend is
112 // pending and there are no outstanding events keeping the system awake. 112 // pending and there are no outstanding events keeping the system awake.
113 void MaybeReportSuspendReadiness(); 113 void MaybeReportSuspendReadiness();
114 114
115 struct KeepaliveSources; 115 struct KeepaliveSources;
116 base::ScopedPtrHashMap<const extensions::ExtensionHost*, KeepaliveSources> 116 base::ScopedPtrHashMap<const extensions::ExtensionHost*,
117 keepalive_sources_; 117 scoped_ptr<KeepaliveSources>> keepalive_sources_;
118 118
119 std::set<Profile*> active_profiles_; 119 std::set<Profile*> active_profiles_;
120 120
121 bool should_delay_suspend_; 121 bool should_delay_suspend_;
122 bool suspend_is_pending_; 122 bool suspend_is_pending_;
123 int suspend_keepalive_count_; 123 int suspend_keepalive_count_;
124 base::Closure power_manager_callback_; 124 base::Closure power_manager_callback_;
125 base::CancelableClosure suspend_readiness_callback_; 125 base::CancelableClosure suspend_readiness_callback_;
126 126
127 content::NotificationRegistrar registrar_; 127 content::NotificationRegistrar registrar_;
128 128
129 base::WeakPtrFactory<ExtensionEventObserver> weak_factory_; 129 base::WeakPtrFactory<ExtensionEventObserver> weak_factory_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(ExtensionEventObserver); 131 DISALLOW_COPY_AND_ASSIGN(ExtensionEventObserver);
132 }; 132 };
133 133
134 } // namespace chromeos 134 } // namespace chromeos
135 135
136 #endif // CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_ 136 #endif // CHROME_BROWSER_CHROMEOS_POWER_EXTENSION_EVENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698