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

Side by Side Diff: content/browser/power_save_blocker_ozone.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
« no previous file with comments | « content/browser/power_save_blocker_impl.cc ('k') | content/browser/power_save_blocker_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/power_save_blocker_impl.h" 5 #include "content/browser/power_save_blocker_impl.h"
6 6
7 #include "base/macros.h"
7 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 // TODO(derat): Consider renaming this file; '_ozone' is a misnomer as power 12 // TODO(derat): Consider renaming this file; '_ozone' is a misnomer as power
12 // save is OS-specific, not display-system-specific. This implementation 13 // save is OS-specific, not display-system-specific. This implementation
13 // ends up being used for non-ChromeOS Ozone platforms such as Chromecast. 14 // ends up being used for non-ChromeOS Ozone platforms such as Chromecast.
14 // See crbug.com/495661 for more detail. 15 // See crbug.com/495661 for more detail.
15 class PowerSaveBlockerImpl::Delegate 16 class PowerSaveBlockerImpl::Delegate
16 : public base::RefCountedThreadSafe<PowerSaveBlockerImpl::Delegate> { 17 : public base::RefCountedThreadSafe<PowerSaveBlockerImpl::Delegate> {
17 public: 18 public:
18 Delegate() {} 19 Delegate() {}
19 20
20 private: 21 private:
21 friend class base::RefCountedThreadSafe<Delegate>; 22 friend class base::RefCountedThreadSafe<Delegate>;
22 virtual ~Delegate() {} 23 virtual ~Delegate() {}
23 24
24 DISALLOW_COPY_AND_ASSIGN(Delegate); 25 DISALLOW_COPY_AND_ASSIGN(Delegate);
25 }; 26 };
26 27
27 PowerSaveBlockerImpl::PowerSaveBlockerImpl(PowerSaveBlockerType type, 28 PowerSaveBlockerImpl::PowerSaveBlockerImpl(PowerSaveBlockerType type,
28 Reason reason, 29 Reason reason,
29 const std::string& description) 30 const std::string& description)
30 : delegate_(new Delegate()) { 31 : delegate_(new Delegate()) {
31 } 32 }
32 33
33 PowerSaveBlockerImpl::~PowerSaveBlockerImpl() { } 34 PowerSaveBlockerImpl::~PowerSaveBlockerImpl() { }
34 35
35 } // namespace content 36 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_impl.cc ('k') | content/browser/power_save_blocker_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698