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_ |