Further cleanup of some assets
[chromium-blink-merge.git] / content / browser / power_save_blocker_ozone.cc
blob0ec03b1af19f0dba48cc692ebf26ef7022d6adb8
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
3 // found in the LICENSE file.
5 #include "content/browser/power_save_blocker_impl.h"
7 #include "base/memory/ref_counted.h"
9 namespace content {
11 // TODO(derat): Consider renaming this file; '_ozone' is a misnomer as power
12 // save is OS-specific, not display-system-specific. This implementation
13 // ends up being used for non-ChromeOS Ozone platforms such as Chromecast.
14 // See crbug.com/495661 for more detail.
15 class PowerSaveBlockerImpl::Delegate
16 : public base::RefCountedThreadSafe<PowerSaveBlockerImpl::Delegate> {
17 public:
18 Delegate() {}
20 private:
21 friend class base::RefCountedThreadSafe<Delegate>;
22 virtual ~Delegate() {}
24 DISALLOW_COPY_AND_ASSIGN(Delegate);
27 PowerSaveBlockerImpl::PowerSaveBlockerImpl(PowerSaveBlockerType type,
28 Reason reason,
29 const std::string& description)
30 : delegate_(new Delegate()) {
33 PowerSaveBlockerImpl::~PowerSaveBlockerImpl() { }
35 } // namespace content