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

Side by Side Diff: chrome/browser/chromeos/cros/power_library.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "chrome/browser/chromeos/cros/cros_library.h" 16 #include "chrome/browser/chromeos/cros/cros_library.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "third_party/cros/chromeos_power.h" 18 #include "third_party/cros/chromeos_power.h"
19 #include "third_party/cros/chromeos_resume.h" 19 #include "third_party/cros/chromeos_resume.h"
20 20
21 using content::BrowserThread;
22
21 namespace chromeos { 23 namespace chromeos {
22 24
23 class PowerLibraryImpl : public PowerLibrary { 25 class PowerLibraryImpl : public PowerLibrary {
24 public: 26 public:
25 PowerLibraryImpl() 27 PowerLibraryImpl()
26 : power_status_connection_(NULL), 28 : power_status_connection_(NULL),
27 resume_status_connection_(NULL) { 29 resume_status_connection_(NULL) {
28 } 30 }
29 31
30 virtual ~PowerLibraryImpl() { 32 virtual ~PowerLibraryImpl() {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 PowerLibrary* impl; 253 PowerLibrary* impl;
252 if (stub) 254 if (stub)
253 impl = new PowerLibraryStubImpl(); 255 impl = new PowerLibraryStubImpl();
254 else 256 else
255 impl = new PowerLibraryImpl(); 257 impl = new PowerLibraryImpl();
256 impl->Init(); 258 impl->Init();
257 return impl; 259 return impl;
258 } 260 }
259 261
260 } // namespace chromeos 262 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/cros/screen_lock_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698