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

Side by Side Diff: ppapi/utility/network_list_observer.h

Issue 9696051: Add NetworkListObserver utility class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_network_monitor_private.cc ('k') | ppapi/utility/network_list_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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_UTILITY_NETWORK_LIST_OBSERVER_H_
6 #define PPAPI_UTILITY_NETWORK_LIST_OBSERVER_H_
dmichael (off chromium) 2012/03/15 20:16:58 It should probably go in a ppapi/utility/private d
Sergey Ulanov 2012/03/15 23:44:08 Done.
7
8 #include "ppapi/cpp/private/network_monitor_private.h"
9
10 namespace pp {
11
12 class NetworkListPrivate;
13
14 class NetworkListObserver {
dmichael (off chromium) 2012/03/15 20:16:58 Please add documentation.
Sergey Ulanov 2012/03/15 23:44:08 Done.
15 public:
16 NetworkListObserver(const InstanceHandle& instance);
dmichael (off chromium) 2012/03/15 20:16:58 explicit
Sergey Ulanov 2012/03/15 23:44:08 Done.
17 virtual ~NetworkListObserver();
18
19 virtual void OnNetworkList(const NetworkListPrivate& list) = 0;
dmichael (off chromium) 2012/03/15 20:16:58 What about OnReceiveNetworkList? It would be nice
Sergey Ulanov 2012/03/15 23:44:08 Renamed to OnNetworkListChanged()
20
21 private:
22 static void NetworkListCallbackHandler(void* user_data,
23 PP_Resource list_resource);
24
25 NetworkMonitorPrivate monitor_;
26 };
27
28 } // namespace pp
29
30 #endif // PPAPI_UTILITY_NETWORK_LIST_OBSERVER_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_network_monitor_private.cc ('k') | ppapi/utility/network_list_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698