Pepper_47_C++_interfaces
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
network_monitor.h
Go to the documentation of this file.
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 "
ppapi/cpp/instance_handle.h
"
9
#include "
ppapi/cpp/resource.h
"
10
11
namespace
pp {
12
13
class
Instance;
14
class
NetworkList;
15
16
template
<
typename
T>
class
CompletionCallbackWithOutput;
17
18
class
NetworkMonitor
:
public
Resource
{
19
public
:
20
explicit
NetworkMonitor
(
const
InstanceHandle
& instance);
21
22
int32_t
UpdateNetworkList
(
23
const
CompletionCallbackWithOutput<NetworkList>
& callback);
24
25
// Returns true if the required interface is available.
26
static
bool
IsAvailable
();
27
};
28
29
}
// namespace pp
30
31
#endif // PPAPI_CPP_NETWORK_MONITOR_H_
instance_handle.h
pp::CompletionCallbackWithOutput
Definition:
completion_callback.h:187
pp::NetworkMonitor::NetworkMonitor
NetworkMonitor(const InstanceHandle &instance)
Definition:
network_monitor.cc:23
pp::NetworkMonitor
Definition:
network_monitor.h:18
pp::NetworkMonitor::UpdateNetworkList
int32_t UpdateNetworkList(const CompletionCallbackWithOutput< NetworkList > &callback)
Definition:
network_monitor.cc:30
resource.h
pp::InstanceHandle
Definition:
instance_handle.h:44
int32_t
pp::NetworkMonitor::IsAvailable
static bool IsAvailable()
Definition:
network_monitor.cc:40
pp::Resource
A reference counted module resource.
Definition:
resource.h:20
Generated on Wed Apr 5 2017 11:09:27 for Pepper_47_C++_interfaces by
1.8.6