Autofill: Refactor some FormFieldData pickling code.
[chromium-blink-merge.git] / chrome / browser / extensions / api / push_messaging / push_messaging_invalidation_handler_delegate.h
blob07a7f4243faf185dc585e2f28b84f2a314fb23c0
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_
8 #include <string>
10 namespace extensions {
12 // Delegate interface for the push messaging invalidation handler. For each
13 // object that was invalidated, OnMessage() will be called back once for that
14 // object.
15 class PushMessagingInvalidationHandlerDelegate {
16 public:
17 virtual void OnMessage(const std::string& extension_id,
18 int subchannel,
19 const std::string& payload) = 0;
21 protected:
22 virtual ~PushMessagingInvalidationHandlerDelegate() {}
25 } // namespace extensions
27 #endif // CHROME_BROWSER_EXTENSIONS_API_PUSH_MESSAGING_PUSH_MESSAGING_INVALIDATION_HANDLER_DELEGATE_H_