Componentize component_updater: Copy over test data with executable bit.
[chromium-blink-merge.git] / ppapi / cpp / network_monitor.h
blobbce731d90d2e594b4bffb3e5d2e9a6f0056d5d86
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.
5 #ifndef PPAPI_CPP_NETWORK_MONITOR_H_
6 #define PPAPI_CPP_NETWORK_MONITOR_H_
8 #include "ppapi/cpp/instance_handle.h"
9 #include "ppapi/cpp/resource.h"
11 namespace pp {
13 class Instance;
14 class NetworkList;
16 template <typename T> class CompletionCallbackWithOutput;
18 class NetworkMonitor : public Resource {
19 public:
20 explicit NetworkMonitor(const InstanceHandle& instance);
22 int32_t UpdateNetworkList(
23 const CompletionCallbackWithOutput<NetworkList>& callback);
25 // Returns true if the required interface is available.
26 static bool IsAvailable();
29 } // namespace pp
31 #endif // PPAPI_CPP_NETWORK_MONITOR_H_