summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/private/network_list_private.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 23:46:41 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 23:46:41 +0000
commit6de9070e8a48d7faf1d723c5fd40ed29222c7125 (patch)
treea129ec5f371d9cd072053313c56b96b051f9706c /ppapi/cpp/private/network_list_private.cc
parent061239ca0a4d26d8d88ca2db94cb1a330dae4928 (diff)
downloadchromium_src-6de9070e8a48d7faf1d723c5fd40ed29222c7125.zip
chromium_src-6de9070e8a48d7faf1d723c5fd40ed29222c7125.tar.gz
chromium_src-6de9070e8a48d7faf1d723c5fd40ed29222c7125.tar.bz2
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
Diffstat (limited to 'ppapi/cpp/private/network_list_private.cc')
-rw-r--r--ppapi/cpp/private/network_list_private.cc17
1 files changed, 7 insertions, 10 deletions
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<PPB_NetworkList_Private>() {
} // namespace
-NetworkListPrivate::NetworkListPrivate() {
-}
-
NetworkListPrivate::NetworkListPrivate(PP_Resource resource)
: Resource(resource) {
}
@@ -29,13 +26,13 @@ bool NetworkListPrivate::IsAvailable() {
return has_interface<PPB_NetworkList_Private>();
}
-uint32_t NetworkListPrivate::GetCount() const {
+uint32_t NetworkListPrivate::GetCount() {
if (!has_interface<PPB_NetworkList_Private>())
return 0;
return get_interface<PPB_NetworkList_Private>()->GetCount(pp_resource());
}
-std::string NetworkListPrivate::GetName(uint32_t index) const {
+std::string NetworkListPrivate::GetName(uint32_t index) {
if (!has_interface<PPB_NetworkList_Private>())
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<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) const {
+PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) {
if (!has_interface<PPB_NetworkList_Private>())
return PP_NETWORKLIST_DOWN;
return get_interface<PPB_NetworkList_Private>()->GetState(
@@ -60,7 +57,7 @@ PP_NetworkListState_Private NetworkListPrivate::GetState(uint32_t index) const {
void NetworkListPrivate::GetIpAddresses(
uint32_t index,
- std::vector<PP_NetAddress_Private>* addresses) const {
+ std::vector<PP_NetAddress_Private>* addresses) {
if (!has_interface<PPB_NetworkList_Private>())
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<PPB_NetworkList_Private>())
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<PPB_NetworkList_Private>())
return 0;
return get_interface<PPB_NetworkList_Private>()->GetMTU(