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

Side by Side Diff: base/process_posix.cc

Issue 10895: Add Terminate() to the Process object, have RenderProcessHost use this to avo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
« no previous file with comments | « base/process.h ('k') | base/process_util.h » ('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) 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
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
OLDNEW
« no previous file with comments | « base/process.h ('k') | base/process_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698