LCOV - code coverage report
Current view: directory - ipc/chromium/src/base - process_posix.cc (source / functions) Found Hit Coverage
Test: app.info Lines: 25 0 0.0 %
Date: 2012-06-02 Functions: 10 0 0.0 %

       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
       3                 : // found in the LICENSE file.
       4                 : 
       5                 : #include "base/process.h"
       6                 : #include "base/process_util.h"
       7                 : 
       8                 : namespace base {
       9                 : 
      10               0 : void Process::Close() {
      11               0 :   process_ = 0;
      12                 :   // if the process wasn't termiated (so we waited) or the state
      13                 :   // wasn't already collected w/ a wait from process_utils, we're gonna
      14                 :   // end up w/ a zombie when it does finally exit.
      15               0 : }
      16                 : 
      17               0 : void Process::Terminate(int result_code) {
      18                 :   // result_code isn't supportable.
      19               0 :   if (!process_)
      20               0 :     return;
      21                 :   // We don't wait here. It's the responsibility of other code to reap the
      22                 :   // child.
      23               0 :   KillProcess(process_, result_code, false);
      24                 : }
      25                 : 
      26               0 : bool Process::IsProcessBackgrounded() const {
      27                 :   // http://code.google.com/p/chromium/issues/detail?id=8083
      28               0 :   return false;
      29                 : }
      30                 : 
      31               0 : bool Process::SetProcessBackgrounded(bool value) {
      32                 :   // http://code.google.com/p/chromium/issues/detail?id=8083
      33                 :   // Just say we did it to keep renderer happy at the moment.  Need to finish
      34                 :   // cleaning this up w/in higher layers since windows is probably the only
      35                 :   // one that can raise priorities w/o privileges.
      36               0 :   return true;
      37                 : }
      38                 : 
      39               0 : bool Process::ReduceWorkingSet() {
      40                 :   // http://code.google.com/p/chromium/issues/detail?id=8083
      41               0 :   return false;
      42                 : }
      43                 : 
      44               0 : bool Process::UnReduceWorkingSet() {
      45                 :   // http://code.google.com/p/chromium/issues/detail?id=8083
      46               0 :   return false;
      47                 : }
      48                 : 
      49               0 : bool Process::EmptyWorkingSet() {
      50                 :   // http://code.google.com/p/chromium/issues/detail?id=8083
      51               0 :   return false;
      52                 : }
      53                 : 
      54               0 : ProcessId Process::pid() const {
      55               0 :   if (process_ == 0)
      56               0 :     return 0;
      57                 : 
      58               0 :   return GetProcId(process_);
      59                 : }
      60                 : 
      61               0 : bool Process::is_current() const {
      62               0 :   return process_ == GetCurrentProcessHandle();
      63                 : }
      64                 : 
      65                 : // static
      66               0 : Process Process::Current() {
      67               0 :   return Process(GetCurrentProcessHandle());
      68                 : }
      69                 : 
      70                 : }  // namspace base

Generated by: LCOV version 1.7