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

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

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (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/private/network_monitor_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/private/network_monitor_private.h
diff --git a/ppapi/cpp/private/network_monitor_private.h b/ppapi/cpp/private/network_monitor_private.h
index 693bbcdc7fbb97f45172301a3b79f167befe20c8..b8fbe0f5c021f1ace154853f5f9766b13bd8631a 100644
--- a/ppapi/cpp/private/network_monitor_private.h
+++ b/ppapi/cpp/private/network_monitor_private.h
@@ -5,19 +5,22 @@
#ifndef PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_
#define PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_
-#include "ppapi/c/private/ppb_network_monitor_private.h"
#include "ppapi/cpp/resource.h"
#include "ppapi/cpp/instance_handle.h"
namespace pp {
class Instance;
+class NetworkListPrivate;
+
+template <typename T> class CompletionCallbackWithOutput;
class NetworkMonitorPrivate : public Resource {
public:
- NetworkMonitorPrivate(const InstanceHandle& instance,
- PPB_NetworkMonitor_Callback callback,
- void* user_data);
+ explicit NetworkMonitorPrivate(const InstanceHandle& instance);
+
+ int32_t UpdateNetworkList(
+ const CompletionCallbackWithOutput<NetworkListPrivate>& callback);
// Returns true if the required interface is available.
static bool IsAvailable();
« no previous file with comments | « ppapi/c/private/ppb_network_monitor_private.h ('k') | ppapi/cpp/private/network_monitor_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698