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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_mapper.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_mapper.h
diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_mapper.h b/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_mapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..a78bbcbd87ae996b18c193919053f04e17846b1c
--- /dev/null
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_mapper.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// 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_PUSH_MESSAGING_INVALIDATION_MAPPER_H_
+#define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_MAPPER_H_
+
+#include <string>
+
+namespace extensions {
+
+// Interface for mapping extension IDs to object IDs.
+class PushMessagingInvalidationMapper {
+ public:
+ virtual ~PushMessagingInvalidationMapper() {}
+
+ // Register/unregister the object IDs associated with |extension_id|.
+ virtual void RegisterExtension(const std::string& extension_id) = 0;
+ virtual void UnregisterExtension(const std::string& extension_id) = 0;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_MAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698