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

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

Issue 7388002: Move dependencies of download\base_file from chrome to content. These are all trivial file moves. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 | 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/power_save_blocker.h" 5 #include "content/browser/power_save_blocker.h"
6 6
7 #include <IOKit/pwr_mgt/IOPMLib.h> 7 #include <IOKit/pwr_mgt/IOPMLib.h>
8 8
9 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "content/browser/browser_thread.h" 11 #include "content/browser/browser_thread.h"
12 12
13 namespace { 13 namespace {
14 14
15 // Power management cannot be done on the UI thread. IOPMAssertionCreate does a 15 // Power management cannot be done on the UI thread. IOPMAssertionCreate does a
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 g_power_thread = new base::Thread("PowerSaveBlocker"); 55 g_power_thread = new base::Thread("PowerSaveBlocker");
56 g_power_thread->Start(); 56 g_power_thread->Start();
57 } 57 }
58 58
59 MessageLoop* loop = g_power_thread->message_loop(); 59 MessageLoop* loop = g_power_thread->message_loop();
60 if (blocking) 60 if (blocking)
61 loop->PostTask(FROM_HERE, NewRunnableFunction(CreateSleepAssertion)); 61 loop->PostTask(FROM_HERE, NewRunnableFunction(CreateSleepAssertion));
62 else 62 else
63 loop->PostTask(FROM_HERE, NewRunnableFunction(ReleaseSleepAssertion)); 63 loop->PostTask(FROM_HERE, NewRunnableFunction(ReleaseSleepAssertion));
64 } 64 }
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_common.cc ('k') | content/browser/power_save_blocker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698