OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ppapi/proxy/serialized_handle.h" | 5 #include "ppapi/proxy/serialized_handle.h" |
6 | 6 |
| 7 #include "base/memory/shared_memory.h" |
7 #include "base/pickle.h" | 8 #include "base/pickle.h" |
8 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
9 #include "base/shared_memory.h" | |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
12 | 12 |
13 #if defined(OS_NACL) | 13 #if defined(OS_NACL) |
14 #include <unistd.h> | 14 #include <unistd.h> |
15 #endif | 15 #endif |
16 | 16 |
17 namespace ppapi { | 17 namespace ppapi { |
18 namespace proxy { | 18 namespace proxy { |
19 | 19 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 break; | 134 break; |
135 // No default so the compiler will warn us if a new type is added. | 135 // No default so the compiler will warn us if a new type is added. |
136 } | 136 } |
137 if (valid_type) | 137 if (valid_type) |
138 hdr->type = Type(type); | 138 hdr->type = Type(type); |
139 return valid_type; | 139 return valid_type; |
140 } | 140 } |
141 | 141 |
142 } // namespace proxy | 142 } // namespace proxy |
143 } // namespace ppapi | 143 } // namespace ppapi |
OLD | NEW |