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

Unified Diff: content/browser/notification_service_impl.h

Issue 11273049: Revert 164120 - content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- content/browser/notification_service_impl.h (revision 164121)
+++ content/browser/notification_service_impl.h (working copy)
@@ -14,8 +14,10 @@
namespace content {
class NotificationObserver;
class NotificationRegistrar;
+}
-class CONTENT_EXPORT NotificationServiceImpl : public NotificationService {
+class CONTENT_EXPORT NotificationServiceImpl
+ : public content::NotificationService {
public:
static NotificationServiceImpl* current();
@@ -24,15 +26,15 @@
NotificationServiceImpl();
virtual ~NotificationServiceImpl();
- // NotificationService:
+ // content::NotificationService
virtual void Notify(int type,
- const NotificationSource& source,
- const NotificationDetails& details) OVERRIDE;
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
private:
- friend class NotificationRegistrar;
+ friend class content::NotificationRegistrar;
- typedef ObserverList<NotificationObserver> NotificationObserverList;
+ typedef ObserverList<content::NotificationObserver> NotificationObserverList;
typedef std::map<uintptr_t, NotificationObserverList*> NotificationSourceMap;
typedef std::map<int, NotificationSourceMap> NotificationObserverMap;
typedef std::map<int, int> NotificationObserverCount;
@@ -40,7 +42,7 @@
// Convenience function to determine whether a source has a
// NotificationObserverList in the given map;
static bool HasKey(const NotificationSourceMap& map,
- const NotificationSource& source);
+ const content::NotificationSource& source);
// NOTE: Rather than using this directly, you should use a
// NotificationRegistrar.
@@ -49,7 +51,7 @@
// 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 NOTIFICATION_ALL to receive events of all
+ // notified about (or content::NOTIFICATION_ALL to receive events of all
// types).
// Source is a NotificationSource object (created using
// "Source<classname>(pointer)"), if this observer only wants to
@@ -61,9 +63,8 @@
// 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(NotificationObserver* observer,
- int type,
- const NotificationSource& source);
+ void AddObserver(content::NotificationObserver* observer,
+ int type, const content::NotificationSource& source);
// NOTE: Rather than using this directly, you should use a
// NotificationRegistrar.
@@ -71,9 +72,8 @@
// 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(NotificationObserver* observer,
- int type,
- const NotificationSource& source);
+ void RemoveObserver(content::NotificationObserver* observer,
+ int type, const content::NotificationSource& source);
// Keeps track of the observers for each type of notification.
// Until we get a prohibitively large number of notification types,
@@ -89,6 +89,4 @@
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