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

Unified Diff: net/base/network_change_notifier.h

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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: net/base/network_change_notifier.h
===================================================================
--- net/base/network_change_notifier.h (revision 85332)
+++ net/base/network_change_notifier.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -8,15 +8,16 @@
#include "base/basictypes.h"
#include "base/observer_list_threadsafe.h"
+#include "net/base/net_api.h"
namespace net {
// NetworkChangeNotifier monitors the system for network changes, and notifies
// registered observers of those events. Observers may register on any thread,
// and will be called back on the thread from which they registered.
-class NetworkChangeNotifier {
+class NET_API NetworkChangeNotifier {
public:
- class IPAddressObserver {
+ class NET_API IPAddressObserver {
public:
virtual ~IPAddressObserver() {}
@@ -93,7 +94,7 @@
static void RemoveIPAddressObserver(IPAddressObserver* observer);
static void RemoveOnlineStateObserver(OnlineStateObserver* observer);
-#ifdef UNIT_TEST
+#if defined(UNIT_TEST) || defined(NET_DLL)
wtc 2011/05/16 20:55:17 Perhaps we should just delete this ifdef, given ou
// Allow unit tests to trigger notifications.
static void NotifyObserversOfIPAddressChangeForTests() {
NotifyObserversOfIPAddressChange();

Powered by Google App Engine
This is Rietveld 408576698