| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 "base/process.h" | 5 #include "base/process.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
| 8 | 8 |
| 9 namespace base { |
| 10 |
| 11 void Process::Close() { |
| 12 process_ = 0; |
| 13 } |
| 14 |
| 15 void Process::Terminate() { |
| 16 NOTIMPLEMENTED(); |
| 17 } |
| 18 |
| 9 bool Process::IsProcessBackgrounded() const { | 19 bool Process::IsProcessBackgrounded() const { |
| 10 return false; | 20 return false; |
| 11 } | 21 } |
| 12 | 22 |
| 13 bool Process::SetProcessBackgrounded(bool value) { | 23 bool Process::SetProcessBackgrounded(bool value) { |
| 14 NOTIMPLEMENTED(); | 24 NOTIMPLEMENTED(); |
| 15 return false; | 25 return false; |
| 16 } | 26 } |
| 17 | 27 |
| 18 bool Process::ReduceWorkingSet() { | 28 bool Process::ReduceWorkingSet() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 | 49 |
| 40 bool Process::is_current() const { | 50 bool Process::is_current() const { |
| 41 return process_ == process_util::GetCurrentProcessHandle(); | 51 return process_ == process_util::GetCurrentProcessHandle(); |
| 42 } | 52 } |
| 43 | 53 |
| 44 // static | 54 // static |
| 45 Process Process::Current() { | 55 Process Process::Current() { |
| 46 return Process(process_util::GetCurrentProcessHandle()); | 56 return Process(process_util::GetCurrentProcessHandle()); |
| 47 } | 57 } |
| 48 | 58 |
| 59 } // namspace base |
| OLD | NEW |