OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "remoting/signaling/push_notification_subscriber.h" | 5 #include "remoting/signaling/push_notification_subscriber.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "remoting/base/logging.h" | 10 #include "remoting/base/logging.h" |
11 #include "remoting/signaling/iq_sender.h" | 11 #include "remoting/signaling/iq_sender.h" |
12 #include "remoting/signaling/jid_util.h" | 12 #include "remoting/signaling/jid_util.h" |
13 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | 13 #include "third_party/libjingle_xmpp/xmllite/xmlelement.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kGooglePushNamespace[] = "google:push"; | 19 const char kGooglePushNamespace[] = "google:push"; |
20 | 20 |
21 } // namespace | 21 } // namespace |
22 | 22 |
23 PushNotificationSubscriber::Subscription::Subscription() { | 23 PushNotificationSubscriber::Subscription::Subscription() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 LOG(ERROR) << "Invalid response type for subscription: " << response_type; | 87 LOG(ERROR) << "Invalid response type for subscription: " << response_type; |
88 } | 88 } |
89 | 89 |
90 // The IqSender and IqRequest are no longer needed after receiving a | 90 // The IqSender and IqRequest are no longer needed after receiving a |
91 // reply to the subscription request. | 91 // reply to the subscription request. |
92 iq_request_.reset(); | 92 iq_request_.reset(); |
93 iq_sender_.reset(); | 93 iq_sender_.reset(); |
94 } | 94 } |
95 | 95 |
96 } // namespace remoting | 96 } // namespace remoting |
OLD | NEW |