OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class PushMessagingMessageFilter : public BrowserMessageFilter { | 21 class PushMessagingMessageFilter : public BrowserMessageFilter { |
22 public: | 22 public: |
23 PushMessagingMessageFilter( | 23 PushMessagingMessageFilter( |
24 int render_process_id, | 24 int render_process_id, |
25 ServiceWorkerContextWrapper* service_worker_context); | 25 ServiceWorkerContextWrapper* service_worker_context); |
26 | 26 |
27 private: | 27 private: |
28 virtual ~PushMessagingMessageFilter(); | 28 virtual ~PushMessagingMessageFilter(); |
29 | 29 |
30 // BrowserMessageFilter implementation. | 30 // BrowserMessageFilter implementation. |
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 31 virtual bool OnMessageReceived(const IPC::Message& message) override; |
32 | 32 |
33 void OnRegister(int render_frame_id, | 33 void OnRegister(int render_frame_id, |
34 int callbacks_id, | 34 int callbacks_id, |
35 const std::string& sender_id, | 35 const std::string& sender_id, |
36 bool user_gesture, | 36 bool user_gesture, |
37 int service_worker_provider_id); | 37 int service_worker_provider_id); |
38 | 38 |
39 void DoRegister(int render_frame_id, | 39 void DoRegister(int render_frame_id, |
40 int callbacks_id, | 40 int callbacks_id, |
41 const std::string& sender_id, | 41 const std::string& sender_id, |
(...skipping 16 matching lines...) Expand all Loading... |
58 PushMessagingService* service_; | 58 PushMessagingService* service_; |
59 | 59 |
60 base::WeakPtrFactory<PushMessagingMessageFilter> weak_factory_; | 60 base::WeakPtrFactory<PushMessagingMessageFilter> weak_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(PushMessagingMessageFilter); | 62 DISALLOW_COPY_AND_ASSIGN(PushMessagingMessageFilter); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
66 | 66 |
67 #endif // CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ | 67 #endif // CONTENT_BROWSER_PUSH_MESSAGING_MESSAGE_FILTER_H_ |
OLD | NEW |