| OLD | NEW |
| 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 "ipc/handle_attachment_win.h" | 10 #include "ipc/handle_attachment_win.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 return false; | 41 return false; |
| 42 } | 42 } |
| 43 IPC::internal::HandleAttachmentWin* handle_attachment = | 43 IPC::internal::HandleAttachmentWin* handle_attachment = |
| 44 static_cast<IPC::internal::HandleAttachmentWin*>(brokerable_attachment); | 44 static_cast<IPC::internal::HandleAttachmentWin*>(brokerable_attachment); |
| 45 r->set_handle(handle_attachment->get_handle()); | 45 r->set_handle(handle_attachment->get_handle()); |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 // static | 49 // static |
| 50 void ParamTraits<HandleWin>::Log(const param_type& p, std::string* l) { | 50 void ParamTraits<HandleWin>::Log(const param_type& p, std::string* l) { |
| 51 l->append(base::StringPrintf("0x%X", p.get_handle())); | 51 l->append(base::StringPrintf("0x%p", p.get_handle())); |
| 52 l->append(base::IntToString(p.get_permissions())); | 52 l->append(base::IntToString(p.get_permissions())); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace IPC | 55 } // namespace IPC |
| OLD | NEW |