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

Side by Side Diff: chrome/common/multi_process_lock_linux.cc

Issue 11366229: Move eintr_wrapper.h from base to base/posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/browser/shell_integration_linux.cc ('k') | chrome/common/service_process_util_posix.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) 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/common/multi_process_lock.h" 5 #include "chrome/common/multi_process_lock.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <sys/socket.h> 8 #include <sys/socket.h>
9 #include <sys/un.h> 9 #include <sys/un.h>
10 #include <unistd.h> 10 #include <unistd.h>
11 11
12 #include "base/eintr_wrapper.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/posix/eintr_wrapper.h"
14 14
15 class MultiProcessLockLinux : public MultiProcessLock { 15 class MultiProcessLockLinux : public MultiProcessLock {
16 public: 16 public:
17 explicit MultiProcessLockLinux(const std::string& name) 17 explicit MultiProcessLockLinux(const std::string& name)
18 : name_(name), fd_(-1) { } 18 : name_(name), fd_(-1) { }
19 19
20 virtual ~MultiProcessLockLinux() { 20 virtual ~MultiProcessLockLinux() {
21 if (fd_ != -1) { 21 if (fd_ != -1) {
22 Unlock(); 22 Unlock();
23 } 23 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 private: 98 private:
99 std::string name_; 99 std::string name_;
100 int fd_; 100 int fd_;
101 DISALLOW_COPY_AND_ASSIGN(MultiProcessLockLinux); 101 DISALLOW_COPY_AND_ASSIGN(MultiProcessLockLinux);
102 }; 102 };
103 103
104 MultiProcessLock* MultiProcessLock::Create(const std::string &name) { 104 MultiProcessLock* MultiProcessLock::Create(const std::string &name) {
105 return new MultiProcessLockLinux(name); 105 return new MultiProcessLockLinux(name);
106 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/common/service_process_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698