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_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ | 5 #ifndef CONTENT_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ |
6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ | 6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "content/child/push_messaging/push_dispatcher.h" | 12 #include "content/child/push_messaging/push_dispatcher.h" |
13 #include "content/child/worker_task_runner.h" | 13 #include "content/child/worker_task_runner.h" |
14 #include "content/public/common/push_messaging_status.h" | 14 #include "content/public/common/push_messaging_status.h" |
15 #include "third_party/WebKit/public/platform/WebPushError.h" | 15 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushError
.h" |
16 #include "third_party/WebKit/public/platform/WebPushProvider.h" | 16 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushProvi
der.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 class ThreadSafeSender; | 22 class ThreadSafeSender; |
23 | 23 |
24 class PushProvider : public blink::WebPushProvider, | 24 class PushProvider : public blink::WebPushProvider, |
25 public WorkerTaskRunner::Observer { | 25 public WorkerTaskRunner::Observer { |
26 public: | 26 public: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // the callbacks. | 86 // the callbacks. |
87 IDMap<blink::WebPushUnregisterCallbacks, IDMapOwnPointer> | 87 IDMap<blink::WebPushUnregisterCallbacks, IDMapOwnPointer> |
88 unregister_callbacks_; | 88 unregister_callbacks_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(PushProvider); | 90 DISALLOW_COPY_AND_ASSIGN(PushProvider); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace content | 93 } // namespace content |
94 | 94 |
95 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ | 95 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_MANAGER_H_ |
OLD | NEW |