OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_ANDROID_H_ | |
6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_ANDROID_H_ | |
7 | |
8 #include "chrome/browser/push_messaging/push_messaging_service_observer.h" | |
9 | |
10 #include <jni.h> | |
11 | |
12 #include "base/macros.h" | |
13 | |
14 // Observer for the PushMessagingService to be used on Android for forwarding | |
15 // message handled events to listeners in Java. | |
16 class PushMessagingServiceObserverAndroid | |
17 : public PushMessagingServiceObserver { | |
18 public: | |
19 static bool RegisterJni(JNIEnv* env); | |
20 | |
21 // PushMessagingServiceObserver implementation. | |
22 void OnMessageHandled() override; | |
23 | |
24 private: | |
25 friend class PushMessagingServiceObserver; | |
Bernhard Bauer
2015/12/11 12:28:42
You could add a protected empty constructor to the
Michael van Ouwerkerk
2015/12/11 16:05:56
I'm not sure what you meant by this actually. How
| |
26 PushMessagingServiceObserverAndroid() {} | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceObserverAndroid); | |
29 }; | |
30 | |
31 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_OBSERVER_ANDROID _H_ | |
OLD | NEW |