Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: ppapi/cpp/private/network_list_private.h

Issue 9696051: Add NetworkListObserver utility class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/cpp/private/network_list_private.h
diff --git a/ppapi/cpp/private/network_list_private.h b/ppapi/cpp/private/network_list_private.h
index 223941d113020a2bbecd0297e3aea111894eba30..d6143620d6bc0846de063f7b22649d89fe96b8cb 100644
--- a/ppapi/cpp/private/network_list_private.h
+++ b/ppapi/cpp/private/network_list_private.h
@@ -15,6 +15,7 @@ namespace pp {
class NetworkListPrivate : public Resource {
public:
+ NetworkListPrivate();
explicit NetworkListPrivate(PP_Resource resource);
/// Returns true if the required interface is available.
@@ -22,33 +23,33 @@ class NetworkListPrivate : public Resource {
/// @return Returns the number of available network interfaces or 0
/// if the list has never been updated.
- uint32_t GetCount();
+ uint32_t GetCount() const;
/// @return Returns the name for the network interface with the
/// specified <code>index</code>.
- std::string GetName(uint32_t index);
+ std::string GetName(uint32_t index) const;
/// @return Returns the type of the network interface with the
/// specified <code>index</code>.
- PP_NetworkListType_Private GetType(uint32_t index);
+ PP_NetworkListType_Private GetType(uint32_t index) const;
/// @return Returns the current state of the network interface with
/// the specified <code>index</code>.
- PP_NetworkListState_Private GetState(uint32_t index);
+ PP_NetworkListState_Private GetState(uint32_t index) const;
/// Gets the list of IP addresses for the network interface with the
/// specified <code>index</code> and stores them in
/// <code>addresses</code>.
void GetIpAddresses(uint32_t index,
- std::vector<PP_NetAddress_Private>* addresses);
+ std::vector<PP_NetAddress_Private>* addresses) const;
/// @return Returns the display name for the network interface with
/// the specified <code>index</code>.
- std::string GetDisplayName(uint32_t index);
+ std::string GetDisplayName(uint32_t index) const;
/// @return Returns the MTU for the network interface with the
/// specified <code>index</code>.
- uint32_t GetMTU(uint32_t index);
+ uint32_t GetMTU(uint32_t index) const;
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698