Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1329)

Unified Diff: ppapi/utility/private/network_list_observer_private.cc

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/utility/private/network_list_observer_private.cc
diff --git a/ppapi/utility/private/network_list_observer_private.cc b/ppapi/utility/private/network_list_observer_private.cc
deleted file mode 100644
index 1969ee1e5f672505be933cc8c03ada1815667428..0000000000000000000000000000000000000000
--- a/ppapi/utility/private/network_list_observer_private.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// 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.
-
-#include "ppapi/utility/private/network_list_observer_private.h"
-
-#include "ppapi/cpp/private/network_list_private.h"
-#include "ppapi/cpp/module.h"
-
-namespace pp {
-
-NetworkListObserverPrivate::NetworkListObserverPrivate(
- const InstanceHandle& instance)
- : PP_ALLOW_THIS_IN_INITIALIZER_LIST(
- monitor_(instance,
- &NetworkListObserverPrivate::NetworkListCallbackHandler,
- this)) {
-}
-
-NetworkListObserverPrivate::~NetworkListObserverPrivate() {
-}
-
-// static
-void NetworkListObserverPrivate::NetworkListCallbackHandler(
- void* user_data,
- PP_Resource list_resource) {
- NetworkListObserverPrivate* object =
- static_cast<NetworkListObserverPrivate*>(user_data);
- NetworkListPrivate list(PASS_REF, list_resource);
- object->OnNetworkListChanged(list);
-}
-
-} // namespace pp
« no previous file with comments | « ppapi/utility/private/network_list_observer_private.h ('k') | remoting/client/plugin/pepper_network_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698