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..d7409d023f5b0140b69eac38c2589b78edba335e |
--- /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_ |
+ |
+// Observes events and changes in the PushMessagingService. |
+// |
+// Note: this class is to be used in tests only. |
Bernhard Bauer
2015/12/11 12:28:42
Name it ...ForTesting or ...TestingObserver then?
Michael van Ouwerkerk
2015/12/11 16:05:56
I've deleted this bit and expanded the comment in
|
+class PushMessagingServiceObserver { |
+ public: |
+ // Creates a new PushMessagingServiceObserver. Caller takes ownership. |
Bernhard Bauer
2015/12/11 12:28:42
Return a scoped_ptr then?
Michael van Ouwerkerk
2015/12/11 16:05:56
Done.
|
+ static 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_ |