OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "content/public/browser/browser_message_filter.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class PushMessagingMessageFilter : public BrowserMessageFilter { |
| 16 public: |
| 17 PushMessagingMessageFilter(); |
| 18 |
| 19 private: |
| 20 virtual ~PushMessagingMessageFilter(); |
| 21 |
| 22 // BrowserMessageFilter implementation. |
| 23 virtual bool OnMessageReceived(const IPC::Message& message, |
| 24 bool* message_was_ok) OVERRIDE; |
| 25 |
| 26 void OnRegister(int routing_id, |
| 27 int callbacks_id, |
| 28 const std::string& sender_id); |
| 29 |
| 30 void DidRegister(int routing_id, |
| 31 int callbacks_id, |
| 32 const GURL& endpoint, |
| 33 const std::string& registration_id, |
| 34 bool error); |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(PushMessagingMessageFilter); |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
OLD | NEW |