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

Unified Diff: content/browser/notification_service_impl.h

Issue 11274038: content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win - part2 Created 8 years, 2 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 | « content/browser/mime_registry_message_filter.cc ('k') | content/browser/notification_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/notification_service_impl.h
diff --git a/content/browser/notification_service_impl.h b/content/browser/notification_service_impl.h
index e7c135d12e1589f8fc9c2209bbd389a6f0b09344..591284ffd58e79ac1653e557524afa747297a0d2 100644
--- a/content/browser/notification_service_impl.h
+++ b/content/browser/notification_service_impl.h
@@ -14,10 +14,8 @@
namespace content {
class NotificationObserver;
class NotificationRegistrar;
-}
-class CONTENT_EXPORT NotificationServiceImpl
- : public content::NotificationService {
+class CONTENT_EXPORT NotificationServiceImpl : public NotificationService {
public:
static NotificationServiceImpl* current();
@@ -26,15 +24,15 @@ class CONTENT_EXPORT NotificationServiceImpl
NotificationServiceImpl();
virtual ~NotificationServiceImpl();
- // content::NotificationService
+ // NotificationService:
virtual void Notify(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ const NotificationSource& source,
+ const NotificationDetails& details) OVERRIDE;
private:
- friend class content::NotificationRegistrar;
+ friend class NotificationRegistrar;
- typedef ObserverList<content::NotificationObserver> NotificationObserverList;
+ typedef ObserverList<NotificationObserver> NotificationObserverList;
typedef std::map<uintptr_t, NotificationObserverList*> NotificationSourceMap;
typedef std::map<int, NotificationSourceMap> NotificationObserverMap;
typedef std::map<int, int> NotificationObserverCount;
@@ -42,7 +40,7 @@ class CONTENT_EXPORT NotificationServiceImpl
// Convenience function to determine whether a source has a
// NotificationObserverList in the given map;
static bool HasKey(const NotificationSourceMap& map,
- const content::NotificationSource& source);
+ const NotificationSource& source);
// NOTE: Rather than using this directly, you should use a
// NotificationRegistrar.
@@ -51,7 +49,7 @@ class CONTENT_EXPORT NotificationServiceImpl
// notification is posted. Observer is a pointer to an object subclassing
// NotificationObserver to be notified when an event matching the other two
// parameters is posted to this service. Type is the type of events to be
- // notified about (or content::NOTIFICATION_ALL to receive events of all
+ // notified about (or NOTIFICATION_ALL to receive events of all
// types).
// Source is a NotificationSource object (created using
// "Source<classname>(pointer)"), if this observer only wants to
@@ -63,8 +61,9 @@ class CONTENT_EXPORT NotificationServiceImpl
// it must be removed for each of those combinations of type and source later.
//
// The caller retains ownership of the object pointed to by observer.
- void AddObserver(content::NotificationObserver* observer,
- int type, const content::NotificationSource& source);
+ void AddObserver(NotificationObserver* observer,
+ int type,
+ const NotificationSource& source);
// NOTE: Rather than using this directly, you should use a
// NotificationRegistrar.
@@ -72,8 +71,9 @@ class CONTENT_EXPORT NotificationServiceImpl
// Removes the object pointed to by observer from receiving notifications
// that match type and source. If no object matching the parameters is
// currently registered, this method is a no-op.
- void RemoveObserver(content::NotificationObserver* observer,
- int type, const content::NotificationSource& source);
+ void RemoveObserver(NotificationObserver* observer,
+ int type,
+ const NotificationSource& source);
// Keeps track of the observers for each type of notification.
// Until we get a prohibitively large number of notification types,
@@ -89,4 +89,6 @@ class CONTENT_EXPORT NotificationServiceImpl
DISALLOW_COPY_AND_ASSIGN(NotificationServiceImpl);
};
+} // namespace content
+
#endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_SERVICE_IMPL_H_
« no previous file with comments | « content/browser/mime_registry_message_filter.cc ('k') | content/browser/notification_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698