Index: content/public/browser/push_messaging_service.h |
diff --git a/content/public/browser/push_messaging_service.h b/content/public/browser/push_messaging_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d4621e535fdaa1bed974e3b7eb818905bbb637c |
--- /dev/null |
+++ b/content/public/browser/push_messaging_service.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 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 CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
+#define CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |
+ |
+#include <string> |
+ |
+#include "base/callback.h" |
+#include "content/common/content_export.h" |
+#include "content/public/common/push_messaging_status.h" |
+ |
+namespace content { |
+ |
+class CONTENT_EXPORT PushMessagingService { |
+ public: |
+ typedef base::Callback<void(const std::string& /* registration_id */, |
+ PushMessagingStatus /* status */)> |
+ RegisterCallback; |
+ |
+ virtual ~PushMessagingService() {} |
+ virtual void Register(RegisterCallback) = 0; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ |