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

Unified Diff: ppapi/cpp/network_list.h

Issue 23450012: Make NetworkList and NetworkMonitor APIs public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « ppapi/c/private/ppb_network_monitor_private.h ('k') | ppapi/cpp/network_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/network_list.h
diff --git a/ppapi/cpp/private/network_list_private.h b/ppapi/cpp/network_list.h
similarity index 76%
rename from ppapi/cpp/private/network_list_private.h
rename to ppapi/cpp/network_list.h
index c338aa6196ea6a4f0a018a7b4fcc9d81ad44cfe4..d479129442e82d2a4c90397921b11a2b1a8d2331 100644
--- a/ppapi/cpp/private/network_list_private.h
+++ b/ppapi/cpp/network_list.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_
-#define PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_
+#ifndef PPAPI_CPP_NETWORK_LIST_H_
+#define PPAPI_CPP_NETWORK_LIST_H_
#include <string>
#include <vector>
-#include "ppapi/c/private/ppb_network_list_private.h"
+#include "ppapi/c/ppb_network_list.h"
#include "ppapi/cpp/pass_ref.h"
#include "ppapi/cpp/resource.h"
@@ -16,10 +16,10 @@ namespace pp {
class NetAddress;
-class NetworkListPrivate : public Resource {
+class NetworkList : public Resource {
public:
- NetworkListPrivate();
- NetworkListPrivate(PassRef, PP_Resource resource);
+ NetworkList();
+ NetworkList(PassRef, PP_Resource resource);
/// Returns true if the required interface is available.
static bool IsAvailable();
@@ -34,11 +34,11 @@ class NetworkListPrivate : public Resource {
/// @return Returns the type of the network interface with the
/// specified <code>index</code>.
- PP_NetworkListType_Private GetType(uint32_t index) const;
+ PP_NetworkList_Type 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) const;
+ PP_NetworkList_State 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
@@ -57,4 +57,4 @@ class NetworkListPrivate : public Resource {
} // namespace pp
-#endif // PPAPI_CPP_PRIVATE_NETWORK_LIST_PRIVATE_H_
+#endif // PPAPI_CPP_NETWORK_LIST_H_
« no previous file with comments | « ppapi/c/private/ppb_network_monitor_private.h ('k') | ppapi/cpp/network_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698