OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/network_list_resource.h" | 5 #include "ppapi/proxy/network_list_resource.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/shared_impl/array_writer.h" | 13 #include "ppapi/shared_impl/array_writer.h" |
12 #include "ppapi/shared_impl/var.h" | 14 #include "ppapi/shared_impl/var.h" |
13 #include "ppapi/thunk/enter.h" | 15 #include "ppapi/thunk/enter.h" |
14 | 16 |
15 namespace ppapi { | 17 namespace ppapi { |
16 namespace proxy { | 18 namespace proxy { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 82 } |
81 | 83 |
82 uint32_t NetworkListResource::GetMTU(uint32_t index) { | 84 uint32_t NetworkListResource::GetMTU(uint32_t index) { |
83 if (index >= list_.size()) | 85 if (index >= list_.size()) |
84 return 0; | 86 return 0; |
85 return list_.at(index).mtu; | 87 return list_.at(index).mtu; |
86 } | 88 } |
87 | 89 |
88 } // namespace proxy | 90 } // namespace proxy |
89 } // namespace thunk | 91 } // namespace thunk |
OLD | NEW |