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

Side by Side Diff: device/power_save_blocker/power_save_blocker_x11.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 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
« no previous file with comments | « device/power_save_blocker/power_save_blocker_win.cc ('k') | device/test/test_device_client.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <X11/Xlib.h> 5 #include <X11/Xlib.h>
6 #include <X11/extensions/dpms.h> 6 #include <X11/extensions/dpms.h>
7 #include <X11/extensions/scrnsaver.h> 7 #include <X11/extensions/scrnsaver.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "device/power_save_blocker/power_save_blocker.h" 12 #include "device/power_save_blocker/power_save_blocker.h"
13 13
14 // Xlib #defines Status, but we can't have that for some of our headers. 14 // Xlib #defines Status, but we can't have that for some of our headers.
15 #ifdef Status 15 #ifdef Status
16 #undef Status 16 #undef Status
17 #endif 17 #endif
18 18
19 #include "base/bind.h" 19 #include "base/bind.h"
20 #include "base/callback.h" 20 #include "base/callback.h"
21 #include "base/command_line.h" 21 #include "base/command_line.h"
22 #include "base/environment.h" 22 #include "base/environment.h"
23 #include "base/files/file_path.h" 23 #include "base/files/file_path.h"
24 #include "base/location.h" 24 #include "base/location.h"
25 #include "base/logging.h" 25 #include "base/logging.h"
26 #include "base/macros.h" 26 #include "base/macros.h"
27 #include "base/memory/ref_counted.h" 27 #include "base/memory/ref_counted.h"
28 #include "base/memory/singleton.h" 28 #include "base/memory/singleton.h"
29 #include "base/nix/xdg_util.h" 29 #include "base/nix/xdg_util.h"
30 #include "base/single_thread_task_runner.h"
30 #include "base/synchronization/lock.h" 31 #include "base/synchronization/lock.h"
31 #include "dbus/bus.h" 32 #include "dbus/bus.h"
32 #include "dbus/message.h" 33 #include "dbus/message.h"
33 #include "dbus/object_path.h" 34 #include "dbus/object_path.h"
34 #include "dbus/object_proxy.h" 35 #include "dbus/object_proxy.h"
35 #include "ui/gfx/switches.h" 36 #include "ui/gfx/switches.h"
36 #include "ui/gfx/x/x11_types.h" 37 #include "ui/gfx/x/x11_types.h"
37 38
38 namespace { 39 namespace {
39 40
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 } 504 }
504 } 505 }
505 506
506 PowerSaveBlocker::~PowerSaveBlocker() { 507 PowerSaveBlocker::~PowerSaveBlocker() {
507 delegate_->CleanUp(); 508 delegate_->CleanUp();
508 if (freedesktop_suspend_delegate_) 509 if (freedesktop_suspend_delegate_)
509 freedesktop_suspend_delegate_->CleanUp(); 510 freedesktop_suspend_delegate_->CleanUp();
510 } 511 }
511 512
512 } // namespace device 513 } // namespace device
OLDNEW
« no previous file with comments | « device/power_save_blocker/power_save_blocker_win.cc ('k') | device/test/test_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698