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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h

Issue 10826156: Plumb invalidations from Tango to the extensions code for the Push Messaging API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android build Created 8 years, 4 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: chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h
diff --git a/chrome/browser/extensions/api/push_messaging/invalidation_handler_observer.h b/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h
similarity index 51%
rename from chrome/browser/extensions/api/push_messaging/invalidation_handler_observer.h
rename to chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h
index f1f42f23974333c191f93348334f9cc7bd9be5fb..07a7f4243faf185dc585e2f28b84f2a314fb23c0 100644
--- a/chrome/browser/extensions/api/push_messaging/invalidation_handler_observer.h
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h
@@ -2,24 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBSERVER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBSERVER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_
#include <string>
namespace extensions {
-// Observer interface for the push messaging invalidation handler. For each
+// Delegate interface for the push messaging invalidation handler. For each
// object that was invalidated, OnMessage() will be called back once for that
// object.
-class InvalidationHandlerObserver {
+class PushMessagingInvalidationHandlerDelegate {
public:
- virtual ~InvalidationHandlerObserver() {}
virtual void OnMessage(const std::string& extension_id,
int subchannel,
const std::string& payload) = 0;
+
+ protected:
+ virtual ~PushMessagingInvalidationHandlerDelegate() {}
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBSERVER_H_
+#endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698