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 #ifndef IPC_HANDLE_WIN_H_ | 5 #ifndef IPC_HANDLE_WIN_H_ |
6 #define IPC_HANDLE_WIN_H_ | 6 #define IPC_HANDLE_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 Permissions get_permissions() const { return permissions_; } | 49 Permissions get_permissions() const { return permissions_; } |
50 | 50 |
51 private: | 51 private: |
52 HANDLE handle_; | 52 HANDLE handle_; |
53 Permissions permissions_; | 53 Permissions permissions_; |
54 }; | 54 }; |
55 | 55 |
56 template <> | 56 template <> |
57 struct IPC_EXPORT ParamTraits<HandleWin> { | 57 struct IPC_EXPORT ParamTraits<HandleWin> { |
58 typedef HandleWin param_type; | 58 typedef HandleWin param_type; |
59 static void Write(Message* m, const param_type& p); | 59 static void Write(base::Pickle* m, const param_type& p); |
60 static bool Read(const Message* m, base::PickleIterator* iter, param_type* p); | 60 static bool Read(const base::Pickle* m, |
| 61 base::PickleIterator* iter, |
| 62 param_type* p); |
61 static void Log(const param_type& p, std::string* l); | 63 static void Log(const param_type& p, std::string* l); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace IPC | 66 } // namespace IPC |
65 | 67 |
66 #endif // IPC_HANDLE_WIN_H_ | 68 #endif // IPC_HANDLE_WIN_H_ |
OLD | NEW |