| 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 #ifndef PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ |
| 6 #define PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ppapi/c/private/ppb_network_list_private.h" | 11 #include "ppapi/c/private/ppb_network_list_private.h" |
| 12 #include "ppapi/cpp/pass_ref.h" |
| 12 #include "ppapi/cpp/resource.h" | 13 #include "ppapi/cpp/resource.h" |
| 13 | 14 |
| 14 namespace pp { | 15 namespace pp { |
| 15 | 16 |
| 16 class NetworkListPrivate : public Resource { | 17 class NetworkListPrivate : public Resource { |
| 17 public: | 18 public: |
| 18 NetworkListPrivate(); | 19 NetworkListPrivate(); |
| 19 explicit NetworkListPrivate(PP_Resource resource); | 20 NetworkListPrivate(PassRef, PP_Resource resource); |
| 20 | 21 |
| 21 /// Returns true if the required interface is available. | 22 /// Returns true if the required interface is available. |
| 22 static bool IsAvailable(); | 23 static bool IsAvailable(); |
| 23 | 24 |
| 24 /// @return Returns the number of available network interfaces or 0 | 25 /// @return Returns the number of available network interfaces or 0 |
| 25 /// if the list has never been updated. | 26 /// if the list has never been updated. |
| 26 uint32_t GetCount() const; | 27 uint32_t GetCount() const; |
| 27 | 28 |
| 28 /// @return Returns the name for the network interface with the | 29 /// @return Returns the name for the network interface with the |
| 29 /// specified <code>index</code>. | 30 /// specified <code>index</code>. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 48 std::string GetDisplayName(uint32_t index) const; | 49 std::string GetDisplayName(uint32_t index) const; |
| 49 | 50 |
| 50 /// @return Returns the MTU for the network interface with the | 51 /// @return Returns the MTU for the network interface with the |
| 51 /// specified <code>index</code>. | 52 /// specified <code>index</code>. |
| 52 uint32_t GetMTU(uint32_t index) const; | 53 uint32_t GetMTU(uint32_t index) const; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace pp | 56 } // namespace pp |
| 56 | 57 |
| 57 #endif // PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ | 58 #endif // PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_ |
| OLD | NEW |