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

Side by Side Diff: mojo/edk/embedder/simple_platform_shared_buffer_win.cc

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/embedder/simple_platform_shared_buffer.h" 5 #include "mojo/edk/embedder/simple_platform_shared_buffer.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "mojo/embedder/platform_handle.h" 13 #include "mojo/edk/embedder/platform_handle.h"
14 #include "mojo/embedder/scoped_platform_handle.h" 14 #include "mojo/edk/embedder/scoped_platform_handle.h"
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace embedder { 17 namespace embedder {
18 18
19 // SimplePlatformSharedBuffer -------------------------------------------------- 19 // SimplePlatformSharedBuffer --------------------------------------------------
20 20
21 bool SimplePlatformSharedBuffer::Init() { 21 bool SimplePlatformSharedBuffer::Init() {
22 DCHECK(!handle_.is_valid()); 22 DCHECK(!handle_.is_valid());
23 23
24 // TODO(vtl): Currently, we only support mapping up to 2^32-1 bytes. 24 // TODO(vtl): Currently, we only support mapping up to 2^32-1 bytes.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // SimplePlatformSharedBufferMapping ------------------------------------------- 86 // SimplePlatformSharedBufferMapping -------------------------------------------
87 87
88 void SimplePlatformSharedBufferMapping::Unmap() { 88 void SimplePlatformSharedBufferMapping::Unmap() {
89 BOOL result = UnmapViewOfFile(real_base_); 89 BOOL result = UnmapViewOfFile(real_base_);
90 PLOG_IF(ERROR, !result) << "UnmapViewOfFile"; 90 PLOG_IF(ERROR, !result) << "UnmapViewOfFile";
91 } 91 }
92 92
93 } // namespace embedder 93 } // namespace embedder
94 } // namespace mojo 94 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/embedder/simple_platform_shared_buffer_unittest.cc ('k') | mojo/edk/embedder/simple_platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698