Chromium Code Reviews| 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..3789348f6a082584b9eba24d08d6b464135d2e02 |
| --- /dev/null |
| +++ b/ppapi/cpp/private/network_monitor_private.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2012 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: |
| + NetworkMonitorPrivate(Instance* instance, |
|
dmichael (off chromium)
2012/03/02 16:43:12
Instance* should be InstanceHandle now. See:
http:
Sergey Ulanov
2012/03/02 18:43:03
Done. Other code uses const refs for InstanceHandl
dmichael (off chromium)
2012/03/02 19:08:51
You could ask brettw if you want. I suspect you're
|
| + PPB_NetworkMonitor_Callback callback, |
| + void* user_data); |
| + |
| + // Returns true if the required interface is available. |
| + static bool IsAvailable(); |
| +}; |
| + |
| +} // namespace pp |
| + |
| +#endif // PPAPI_CPP_PRIVATE_NETWORK_MONITOR_PRIVATE_H_ |