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

Side by Side Diff: ipc/handle_win.cc

Issue 1397023002: ipc: Write end-to-end tests for SharedMemoryHandle brokering on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Win compile errors. Created 5 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
« no previous file with comments | « ipc/handle_win.h ('k') | ipc/ipc.gyp » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ipc/handle_win.h" 5 #include "ipc/handle_win.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h"
10 #include "ipc/handle_attachment_win.h" 11 #include "ipc/handle_attachment_win.h"
12 #include "ipc/ipc_message.h"
11 13
12 namespace IPC { 14 namespace IPC {
13 15
14 HandleWin::HandleWin() : handle_(nullptr), permissions_(INVALID) {} 16 HandleWin::HandleWin() : handle_(nullptr), permissions_(INVALID) {}
15 17
16 HandleWin::HandleWin(const HANDLE& handle, Permissions permissions) 18 HandleWin::HandleWin(const HANDLE& handle, Permissions permissions)
17 : handle_(handle), permissions_(permissions) {} 19 : handle_(handle), permissions_(permissions) {}
18 20
19 // static 21 // static
20 void ParamTraits<HandleWin>::Write(Message* m, const param_type& p) { 22 void ParamTraits<HandleWin>::Write(Message* m, const param_type& p) {
(...skipping 25 matching lines...) Expand all
46 return true; 48 return true;
47 } 49 }
48 50
49 // static 51 // static
50 void ParamTraits<HandleWin>::Log(const param_type& p, std::string* l) { 52 void ParamTraits<HandleWin>::Log(const param_type& p, std::string* l) {
51 l->append(base::StringPrintf("0x%p", p.get_handle())); 53 l->append(base::StringPrintf("0x%p", p.get_handle()));
52 l->append(base::IntToString(p.get_permissions())); 54 l->append(base::IntToString(p.get_permissions()));
53 } 55 }
54 56
55 } // namespace IPC 57 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/handle_win.h ('k') | ipc/ipc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698