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

Side by Side Diff: base/shared_memory_win.cc

Issue 3071012: Cleanup: Remove unneeded headers from base/ (part 1) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « base/process_util_posix.cc ('k') | base/trace_event_win.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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/shared_memory.h" 5 #include "base/shared_memory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/win_util.h"
9 8
10 namespace base { 9 namespace base {
11 10
12 SharedMemory::SharedMemory() 11 SharedMemory::SharedMemory()
13 : mapped_file_(NULL), 12 : mapped_file_(NULL),
14 memory_(NULL), 13 memory_(NULL),
15 read_only_(false), 14 read_only_(false),
16 max_size_(0), 15 max_size_(0),
17 lock_(NULL) { 16 lock_(NULL) {
18 } 17 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 void SharedMemory::Unlock() { 188 void SharedMemory::Unlock() {
190 DCHECK(lock_ != NULL); 189 DCHECK(lock_ != NULL);
191 ReleaseMutex(lock_); 190 ReleaseMutex(lock_);
192 } 191 }
193 192
194 SharedMemoryHandle SharedMemory::handle() const { 193 SharedMemoryHandle SharedMemory::handle() const {
195 return mapped_file_; 194 return mapped_file_;
196 } 195 }
197 196
198 } // namespace base 197 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_posix.cc ('k') | base/trace_event_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698