Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: remoting/signaling/push_notification_subscriber.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_ 5 #ifndef REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_
6 #define REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_ 6 #define REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "remoting/signaling/signal_strategy.h" 13 #include "remoting/signaling/signal_strategy.h"
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 class IqSender; 17 class IqSender;
18 class IqRequest; 18 class IqRequest;
19 19
20 // An object that subscribes to push notifications using an XMPP 20 // An object that subscribes to push notifications using an XMPP
21 // channel. The notifications themselves are ignored, but creating a 21 // channel. The notifications themselves are ignored, but creating a
22 // subscription is necessary, e.g., for GCD to see a device as online. 22 // subscription is necessary, e.g., for GCD to see a device as online.
(...skipping 17 matching lines...) Expand all
40 // SignalStrategy::Listener interface. 40 // SignalStrategy::Listener interface.
41 void OnSignalStrategyStateChange(SignalStrategy::State state) override; 41 void OnSignalStrategyStateChange(SignalStrategy::State state) override;
42 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override; 42 bool OnSignalStrategyIncomingStanza(const buzz::XmlElement* stanza) override;
43 43
44 void Subscribe(const Subscription& subscription); 44 void Subscribe(const Subscription& subscription);
45 void OnSubscriptionResult(IqRequest* request, 45 void OnSubscriptionResult(IqRequest* request,
46 const buzz::XmlElement* response); 46 const buzz::XmlElement* response);
47 47
48 SignalStrategy* signal_strategy_; 48 SignalStrategy* signal_strategy_;
49 SubscriptionList subscriptions_; 49 SubscriptionList subscriptions_;
50 scoped_ptr<IqSender> iq_sender_; 50 std::unique_ptr<IqSender> iq_sender_;
51 scoped_ptr<IqRequest> iq_request_; 51 std::unique_ptr<IqRequest> iq_request_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(PushNotificationSubscriber); 53 DISALLOW_COPY_AND_ASSIGN(PushNotificationSubscriber);
54 }; 54 };
55 55
56 } // namespace remoting 56 } // namespace remoting
57 57
58 #endif // REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_ 58 #endif // REMOTING_HOST_GCD_NOTIFICATION_SUBSCRIBER_H_
OLDNEW
« no previous file with comments | « remoting/signaling/mock_signal_strategy.h ('k') | remoting/signaling/push_notification_subscriber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698