cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / ppapi / utility / private / network_list_observer_private.cc
blob1969ee1e5f672505be933cc8c03ada1815667428
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 #include "ppapi/utility/private/network_list_observer_private.h"
7 #include "ppapi/cpp/private/network_list_private.h"
8 #include "ppapi/cpp/module.h"
10 namespace pp {
12 NetworkListObserverPrivate::NetworkListObserverPrivate(
13 const InstanceHandle& instance)
14 : PP_ALLOW_THIS_IN_INITIALIZER_LIST(
15 monitor_(instance,
16 &NetworkListObserverPrivate::NetworkListCallbackHandler,
17 this)) {
20 NetworkListObserverPrivate::~NetworkListObserverPrivate() {
23 // static
24 void NetworkListObserverPrivate::NetworkListCallbackHandler(
25 void* user_data,
26 PP_Resource list_resource) {
27 NetworkListObserverPrivate* object =
28 static_cast<NetworkListObserverPrivate*>(user_data);
29 NetworkListPrivate list(PASS_REF, list_resource);
30 object->OnNetworkListChanged(list);
33 } // namespace pp