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

Side by Side Diff: content/common/notification_observer.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: fix exports for switches, content_main Created 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_NOTIFICATION_OBSERVER_H_ 5 #ifndef CONTENT_COMMON_NOTIFICATION_OBSERVER_H_
6 #define CONTENT_COMMON_NOTIFICATION_OBSERVER_H_ 6 #define CONTENT_COMMON_NOTIFICATION_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h"
10
9 class NotificationDetails; 11 class NotificationDetails;
10 class NotificationSource; 12 class NotificationSource;
11 13
12 // This is the base class for notification observers. When a matching 14 // This is the base class for notification observers. When a matching
13 // notification is posted to the notification service, Observe is called. 15 // notification is posted to the notification service, Observe is called.
14 class NotificationObserver { 16 class CONTENT_EXPORT NotificationObserver {
15 public: 17 public:
16 NotificationObserver(); 18 NotificationObserver();
17 virtual ~NotificationObserver(); 19 virtual ~NotificationObserver();
18 20
19 virtual void Observe(int type, 21 virtual void Observe(int type,
20 const NotificationSource& source, 22 const NotificationSource& source,
21 const NotificationDetails& details) = 0; 23 const NotificationDetails& details) = 0;
22 }; 24 };
23 25
24 #endif // CONTENT_COMMON_NOTIFICATION_OBSERVER_H_ 26 #endif // CONTENT_COMMON_NOTIFICATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698