| Index: ppapi/cpp/private/network_list_private.cc
|
| diff --git a/ppapi/cpp/private/network_list_private.cc b/ppapi/cpp/private/network_list_private.cc
|
| index d08410ea4e8feaf94899f5ec097992e82b3ebd13..84990a2666407e5d9e109c1f2ff83d40d8ef50c4 100644
|
| --- a/ppapi/cpp/private/network_list_private.cc
|
| +++ b/ppapi/cpp/private/network_list_private.cc
|
| @@ -17,6 +17,9 @@ template <> const char* interface_name<PPB_NetworkList_Private>() {
|
|
|
| } // namespace
|
|
|
| +NetworkListPrivate::NetworkListPrivate() {
|
| +}
|
| +
|
| NetworkListPrivate::NetworkListPrivate(PP_Resource resource)
|
| : Resource(resource) {
|
| }
|
| @@ -26,13 +29,13 @@ bool NetworkListPrivate::IsAvailable() {
|
| return has_interface<PPB_NetworkList_Private>();
|
| }
|
|
|
| -uint32_t NetworkListPrivate::GetCount() {
|
| +uint32_t NetworkListPrivate::GetCount() const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return 0;
|
| return get_interface<PPB_NetworkList_Private>()->GetCount(pp_resource());
|
| }
|
|
|
| -std::string NetworkListPrivate::GetName(uint32_t index) {
|
| +std::string NetworkListPrivate::GetName(uint32_t index) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return std::string();
|
| Var result(PASS_REF,
|
| @@ -41,14 +44,14 @@ std::string NetworkListPrivate::GetName(uint32_t index) {
|
| return result.is_string() ? result.AsString() : std::string();
|
| }
|
|
|
| -PP_NetworkListType_Private NetworkListPrivate::GetType(uint32_t index) {
|
| +PP_NetworkListType_Private NetworkListPrivate::GetType(uint32_t index) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return PP_NETWORKLIST_ETHERNET;
|
| return get_interface<PPB_NetworkList_Private>()->GetType(
|
| pp_resource(), index);
|
| }
|
|
|
| -PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) {
|
| +PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return PP_NETWORKLIST_DOWN;
|
| return get_interface<PPB_NetworkList_Private>()->GetState(
|
| @@ -57,7 +60,7 @@ PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) {
|
|
|
| void NetworkListPrivate::GetIpAddresses(
|
| uint32_t index,
|
| - std::vector<PP_NetAddress_Private>* addresses) {
|
| + std::vector<PP_NetAddress_Private>* addresses) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return;
|
|
|
| @@ -88,7 +91,7 @@ void NetworkListPrivate::GetIpAddresses(
|
| }
|
| }
|
|
|
| -std::string NetworkListPrivate::GetDisplayName(uint32_t index) {
|
| +std::string NetworkListPrivate::GetDisplayName(uint32_t index) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return std::string();
|
| Var result(PASS_REF,
|
| @@ -97,7 +100,7 @@ std::string NetworkListPrivate::GetDisplayName(uint32_t index) {
|
| return result.is_string() ? result.AsString() : std::string();
|
| }
|
|
|
| -uint32_t NetworkListPrivate::GetMTU(uint32_t index) {
|
| +uint32_t NetworkListPrivate::GetMTU(uint32_t index) const {
|
| if (!has_interface<PPB_NetworkList_Private>())
|
| return 0;
|
| return get_interface<PPB_NetworkList_Private>()->GetMTU(
|
|
|