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

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

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
« no previous file with comments | « ppapi/utility/private/DEPS ('k') | ppapi/utility/private/network_list_observer_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/utility/private/network_list_observer_private.h
diff --git a/ppapi/utility/private/network_list_observer_private.h b/ppapi/utility/private/network_list_observer_private.h
deleted file mode 100644
index 066f2ffd6e17649c3d5817351539a18e618ac95d..0000000000000000000000000000000000000000
--- a/ppapi/utility/private/network_list_observer_private.h
+++ /dev/null
@@ -1,49 +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.
-
-#ifndef PPAPI_UTILITY_PRIVATE_NETWORK_LIST_OBSERVER_H_
-#define PPAPI_UTILITY_PRIVATE_NETWORK_LIST_OBSERVER_H_
-
-#include "ppapi/cpp/private/network_monitor_private.h"
-
-namespace pp {
-
-class NetworkListPrivate;
-
-/// <code>NetworkListObserver</code> is a wrapper for
-/// <code>pp::NetworkMonitorPrivate</code> that makes it easier to
-/// handle network list update notifications. A child class must
-/// implement the <code>OnNetworkListChanged()</code> method. That
-/// method will be called once after the object is created and then
-/// every time network configuration changes.
-class NetworkListObserverPrivate {
- public:
- explicit NetworkListObserverPrivate(const InstanceHandle& instance);
- virtual ~NetworkListObserverPrivate();
-
- protected:
- /// Called once after this object is created and later every time
- /// network configuration changes. Child classes must implement this
- /// method.
- ///
- /// @param[in] list The current list of network interfaces.
- virtual void OnNetworkListChanged(const NetworkListPrivate& list) = 0;
-
- private:
- // Private copy constructor and assign operator to disallow copying of this
- // object. This is necessary to guarantee that |monitor_| is not shared with
- // another list observer and is always destroyed when this object is
- // destroyed.
- NetworkListObserverPrivate(const NetworkListObserverPrivate&);
- void operator=(const NetworkListObserverPrivate&);
-
- static void NetworkListCallbackHandler(void* user_data,
- PP_Resource list_resource);
-
- NetworkMonitorPrivate monitor_;
-};
-
-} // namespace pp
-
-#endif // PPAPI_UTILITY_PRIVATE_NETWORK_LIST_OBSERVER_H_
« no previous file with comments | « ppapi/utility/private/DEPS ('k') | ppapi/utility/private/network_list_observer_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698