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

Unified Diff: chrome/browser/push_messaging/push_messaging_service_observer.h

Issue 1485743002: Push API: test that default notification is shown on Android when needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PushMessagingInstrumentationTest
Patch Set: Address bauerb's comments. Created 5 years 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/push_messaging/push_messaging_service_observer.h
diff --git a/chrome/browser/push_messaging/push_messaging_service_observer.h b/chrome/browser/push_messaging/push_messaging_service_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..80d841d96fd81e43cb0c742fd5c1fff9e46cd13d
--- /dev/null
+++ b/chrome/browser/push_messaging/push_messaging_service_observer.h
@@ -0,0 +1,20 @@
+// Copyright 2015 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_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_H_
+#define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+// Observes events and changes in the PushMessagingService.
+class PushMessagingServiceObserver {
+ public:
+ // Creates a new PushMessagingServiceObserver.
+ static scoped_ptr<PushMessagingServiceObserver> Create();
+
+ // Called when a push message has been fully handled.
+ virtual void OnMessageHandled() = 0;
+};
+
+#endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698