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

Unified Diff: remoting/client/plugin/pepper_network_manager.cc

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 | « remoting/client/plugin/pepper_network_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_network_manager.cc
diff --git a/remoting/client/plugin/pepper_network_manager.cc b/remoting/client/plugin/pepper_network_manager.cc
index 7b0f50f5764be88eb03b1dc2fe9ed76140139e83..2077bb83414a92ed371fd902b652cb32c141d6a1 100644
--- a/remoting/client/plugin/pepper_network_manager.cc
+++ b/remoting/client/plugin/pepper_network_manager.cc
@@ -10,7 +10,7 @@
#include "base/thread_task_runner_handle.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/net_address.h"
-#include "ppapi/cpp/private/network_list_private.h"
+#include "ppapi/cpp/network_list.h"
#include "remoting/client/plugin/pepper_util.h"
#include "third_party/libjingle/source/talk/base/socketaddress.h"
@@ -22,7 +22,7 @@ PepperNetworkManager::PepperNetworkManager(const pp::InstanceHandle& instance)
network_list_received_(false),
callback_factory_(this),
weak_factory_(this) {
- pp::CompletionCallbackWithOutput<pp::NetworkListPrivate> callback =
+ pp::CompletionCallbackWithOutput<pp::NetworkList> callback =
callback_factory_.NewCallbackWithOutput(
&PepperNetworkManager::OnNetworkList);
monitor_.UpdateNetworkList(callback);
@@ -47,9 +47,8 @@ void PepperNetworkManager::StopUpdating() {
--start_count_;
}
-
void PepperNetworkManager::OnNetworkList(int32_t result,
- const pp::NetworkListPrivate& list) {
+ const pp::NetworkList& list) {
if (result != PP_OK) {
SignalError();
return;
@@ -59,7 +58,7 @@ void PepperNetworkManager::OnNetworkList(int32_t result,
network_list_received_ = true;
// Request for the next update.
- pp::CompletionCallbackWithOutput<pp::NetworkListPrivate> callback =
+ pp::CompletionCallbackWithOutput<pp::NetworkList> callback =
callback_factory_.NewCallbackWithOutput(
&PepperNetworkManager::OnNetworkList);
monitor_.UpdateNetworkList(callback);
« no previous file with comments | « remoting/client/plugin/pepper_network_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698