OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ |
6 #define PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ |
7 | 7 |
8 #include "ppapi/c/private/ppb_network_monitor_private.h" | |
9 #include "ppapi/cpp/resource.h" | 8 #include "ppapi/cpp/resource.h" |
10 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
11 | 10 |
12 namespace pp { | 11 namespace pp { |
13 | 12 |
14 class Instance; | 13 class Instance; |
14 class NetworkListPrivate; | |
15 | |
16 template <typename T> class CompletionCallbackWithOutput; | |
15 | 17 |
16 class NetworkMonitorPrivate : public Resource { | 18 class NetworkMonitorPrivate : public Resource { |
17 public: | 19 public: |
18 NetworkMonitorPrivate(const InstanceHandle& instance, | 20 NetworkMonitorPrivate(const InstanceHandle& instance); |
yzshen1
2013/09/04 19:52:01
explicit, please.
Sergey Ulanov
2013/09/04 22:22:32
Done.
| |
19 PPB_NetworkMonitor_Callback callback, | 21 |
20 void* user_data); | 22 int32_t UpdateNetworkList( |
23 const CompletionCallbackWithOutput<NetworkListPrivate>& callback); | |
21 | 24 |
22 // Returns true if the required interface is available. | 25 // Returns true if the required interface is available. |
23 static bool IsAvailable(); | 26 static bool IsAvailable(); |
24 }; | 27 }; |
25 | 28 |
26 } // namespace pp | 29 } // namespace pp |
27 | 30 |
28 #endif // PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ | 31 #endif // PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ |
OLD | NEW |