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

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

Issue 9545010: Add NetworkList/NetworkMonitor hooks and C++ wrappers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_monitor_private.h
diff --git a/ppapi/cpp/private/network_monitor_private.h b/ppapi/cpp/private/network_monitor_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..82d12dd82237d4e3b46f2379aaf5d0a8ad1e7e61
--- /dev/null
+++ b/ppapi/cpp/private/network_monitor_private.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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_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"
+
+namespace pp {
+
+class Instance;
+
+class NetworkMonitorPrivate : public Resource {
+ public:
+ explicit NetworkMonitorPrivate(Instance* instance,
dmichael (off chromium) 2012/03/01 18:29:54 explicit isn't necessary. Instance* should be Inst
Sergey Ulanov 2012/03/02 03:01:37 Done.
+ PPB_NetworkMonitor_Callback callback,
+ void* user_data);
dmichael (off chromium) 2012/03/01 18:29:54 You may want to put a class in ppapi/utility that
Sergey Ulanov 2012/03/02 03:01:37 I agree that may be useful. Will do it later in a
+
+ // Returns true if the required interface is available.
+ static bool IsAvailable();
+};
+
+} // namespace pp
+
+#endif // PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_

Powered by Google App Engine
This is Rietveld 408576698