OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/chromeos/cros/power_library.h" | 5 #include "chrome/browser/chromeos/cros/power_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/browser/browser_thread.h" | |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "content/browser/browser_thread.h" |
11 #include "third_party/cros/chromeos_resume.h" | 11 #include "third_party/cros/chromeos_resume.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 class PowerLibraryImpl : public PowerLibrary { | 15 class PowerLibraryImpl : public PowerLibrary { |
16 public: | 16 public: |
17 PowerLibraryImpl() | 17 PowerLibraryImpl() |
18 : power_status_connection_(NULL), | 18 : power_status_connection_(NULL), |
19 resume_status_connection_(NULL), | 19 resume_status_connection_(NULL), |
20 status_(chromeos::PowerStatus()) { | 20 status_(chromeos::PowerStatus()) { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 return new PowerLibraryStubImpl(); | 186 return new PowerLibraryStubImpl(); |
187 else | 187 else |
188 return new PowerLibraryImpl(); | 188 return new PowerLibraryImpl(); |
189 } | 189 } |
190 | 190 |
191 } // namespace chromeos | 191 } // namespace chromeos |
192 | 192 |
193 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 193 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
194 // won't be deleted until it's last InvokeLater is run. | 194 // won't be deleted until it's last InvokeLater is run. |
195 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::PowerLibraryImpl); | 195 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::PowerLibraryImpl); |
OLD | NEW |