From 6de9070e8a48d7faf1d723c5fd40ed29222c7125 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Tue, 20 Mar 2012 23:46:41 +0000 Subject: Revert 127797 - Add NetworkListObserver utility class. BUG=114808 Review URL: http://codereview.chromium.org/9696051 TBR=sergeyu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9801004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127837 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/private/network_list_private.cc | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to '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 84990a2..d08410e 100644 --- a/ppapi/cpp/private/network_list_private.cc +++ b/ppapi/cpp/private/network_list_private.cc @@ -17,9 +17,6 @@ template <> const char* interface_name() { } // namespace -NetworkListPrivate::NetworkListPrivate() { -} - NetworkListPrivate::NetworkListPrivate(PP_Resource resource) : Resource(resource) { } @@ -29,13 +26,13 @@ bool NetworkListPrivate::IsAvailable() { return has_interface(); } -uint32_t NetworkListPrivate::GetCount() const { +uint32_t NetworkListPrivate::GetCount() { if (!has_interface()) return 0; return get_interface()->GetCount(pp_resource()); } -std::string NetworkListPrivate::GetName(uint32_t index) const { +std::string NetworkListPrivate::GetName(uint32_t index) { if (!has_interface()) return std::string(); Var result(PASS_REF, @@ -44,14 +41,14 @@ std::string NetworkListPrivate::GetName(uint32_t index) const { return result.is_string() ? result.AsString() : std::string(); } -PP_NetworkListType_Private NetworkListPrivate::GetType(uint32_t index) const { +PP_NetworkListType_Private NetworkListPrivate::GetType(uint32_t index) { if (!has_interface()) return PP_NETWORKLIST_ETHERNET; return get_interface()->GetType( pp_resource(), index); } -PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) const { +PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) { if (!has_interface()) return PP_NETWORKLIST_DOWN; return get_interface()->GetState( @@ -60,7 +57,7 @@ PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) const { void NetworkListPrivate::GetIpAddresses( uint32_t index, - std::vector* addresses) const { + std::vector* addresses) { if (!has_interface()) return; @@ -91,7 +88,7 @@ void NetworkListPrivate::GetIpAddresses( } } -std::string NetworkListPrivate::GetDisplayName(uint32_t index) const { +std::string NetworkListPrivate::GetDisplayName(uint32_t index) { if (!has_interface()) return std::string(); Var result(PASS_REF, @@ -100,7 +97,7 @@ std::string NetworkListPrivate::GetDisplayName(uint32_t index) const { return result.is_string() ? result.AsString() : std::string(); } -uint32_t NetworkListPrivate::GetMTU(uint32_t index) const { +uint32_t NetworkListPrivate::GetMTU(uint32_t index) { if (!has_interface()) return 0; return get_interface()->GetMTU( -- cgit v1.1