| 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 29 matching lines...) Expand all Loading... |
| 40 int callbacks_id, | 40 int callbacks_id, |
| 41 const std::string& sender_id, | 41 const std::string& sender_id, |
| 42 bool user_gesture, | 42 bool user_gesture, |
| 43 const GURL& origin, | 43 const GURL& origin, |
| 44 int64 service_worker_registration_id); | 44 int64 service_worker_registration_id); |
| 45 | 45 |
| 46 void DidRegister(int render_frame_id, | 46 void DidRegister(int render_frame_id, |
| 47 int callbacks_id, | 47 int callbacks_id, |
| 48 const GURL& push_endpoint, | 48 const GURL& push_endpoint, |
| 49 const std::string& push_registration_id, | 49 const std::string& push_registration_id, |
| 50 PushMessagingStatus status); | 50 PushRegistrationStatus status); |
| 51 | 51 |
| 52 PushMessagingService* service(); | 52 PushMessagingService* service(); |
| 53 | 53 |
| 54 int render_process_id_; | 54 int render_process_id_; |
| 55 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 55 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| 56 | 56 |
| 57 // Owned by the content embedder's browsing context. | 57 // Owned by the content embedder's browsing context. |
| 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 |