OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBSERV ER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_OBSERVER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBSERV ER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION _HANDLER_OBSERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 // Observer interface for the push messaging invalidation handler. For each | 12 // Observer interface for the push messaging invalidation handler. For each |
13 // object that was invalidated, OnMessage() will be called back once for that | 13 // object that was invalidated, OnMessage() will be called back once for that |
14 // object. | 14 // object. |
15 class InvalidationHandlerObserver { | 15 class PushMessagingInvalidationHandlerObserver { |
16 public: | 16 public: |
17 virtual ~InvalidationHandlerObserver() {} | 17 virtual ~PushMessagingInvalidationHandlerObserver() {} |
akalin
2012/08/20 20:35:01
protected destructor?
dcheng
2012/08/20 20:58:21
Done.
| |
18 virtual void OnMessage(const std::string& extension_id, | 18 virtual void OnMessage(const std::string& extension_id, |
19 int subchannel, | 19 int subchannel, |
20 const std::string& payload) = 0; | 20 const std::string& payload) = 0; |
21 }; | 21 }; |
22 | 22 |
23 } // namespace extensions | 23 } // namespace extensions |
24 | 24 |
25 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_INVALIDATION_HANDLER_OBS ERVER_H_ | 25 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDAT ION_HANDLER_OBSERVER_H_ |
OLD | NEW |