1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_NETWORK_MONITOR_H_
6 #define PPAPI_CPP_NETWORK_MONITOR_H_
7 
8 #include <stdint.h>
9 
10 #include "ppapi/cpp/instance_handle.h"
11 #include "ppapi/cpp/resource.h"
12 
13 namespace pp {
14 
15 class NetworkList;
16 
17 template <typename T> class CompletionCallbackWithOutput;
18 
19 class NetworkMonitor : public Resource {
20  public:
21   explicit NetworkMonitor(const InstanceHandle& instance);
22 
23   int32_t UpdateNetworkList(
24       const CompletionCallbackWithOutput<NetworkList>& callback);
25 
26   // Returns true if the required interface is available.
27   static bool IsAvailable();
28 };
29 
30 }  // namespace pp
31 
32 #endif  // PPAPI_CPP_NETWORK_MONITOR_H_
33