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

Side by Side Diff: remoting/host/signaling_connector.h

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SIGNALING_CONNECTOR_H_ 5 #ifndef REMOTING_HOST_SIGNALING_CONNECTOR_H_
6 #define REMOTING_HOST_SIGNALING_CONNECTOR_H_ 6 #define REMOTING_HOST_SIGNALING_CONNECTOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // |oauth_token_getter| must outlive SignalingConnector. 42 // |oauth_token_getter| must outlive SignalingConnector.
43 void EnableOAuth(OAuthTokenGetter* oauth_token_getter); 43 void EnableOAuth(OAuthTokenGetter* oauth_token_getter);
44 44
45 // OAuthTokenGetter callback. 45 // OAuthTokenGetter callback.
46 void OnAccessToken(OAuthTokenGetter::Status status, 46 void OnAccessToken(OAuthTokenGetter::Status status,
47 const std::string& user_email, 47 const std::string& user_email,
48 const std::string& access_token); 48 const std::string& access_token);
49 49
50 // SignalStrategy::Listener interface. 50 // SignalStrategy::Listener interface.
51 virtual void OnSignalStrategyStateChange( 51 virtual void OnSignalStrategyStateChange(
52 SignalStrategy::State state) OVERRIDE; 52 SignalStrategy::State state) override;
53 virtual bool OnSignalStrategyIncomingStanza( 53 virtual bool OnSignalStrategyIncomingStanza(
54 const buzz::XmlElement* stanza) OVERRIDE; 54 const buzz::XmlElement* stanza) override;
55 55
56 // NetworkChangeNotifier::ConnectionTypeObserver interface. 56 // NetworkChangeNotifier::ConnectionTypeObserver interface.
57 virtual void OnConnectionTypeChanged( 57 virtual void OnConnectionTypeChanged(
58 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 58 net::NetworkChangeNotifier::ConnectionType type) override;
59 59
60 // NetworkChangeNotifier::IPAddressObserver interface. 60 // NetworkChangeNotifier::IPAddressObserver interface.
61 virtual void OnIPAddressChanged() OVERRIDE; 61 virtual void OnIPAddressChanged() override;
62 62
63 private: 63 private:
64 void OnNetworkError(); 64 void OnNetworkError();
65 void ScheduleTryReconnect(); 65 void ScheduleTryReconnect();
66 void ResetAndTryReconnect(); 66 void ResetAndTryReconnect();
67 void TryReconnect(); 67 void TryReconnect();
68 void OnDnsBlackholeCheckerDone(bool allow); 68 void OnDnsBlackholeCheckerDone(bool allow);
69 69
70 XmppSignalStrategy* signal_strategy_; 70 XmppSignalStrategy* signal_strategy_;
71 base::Closure auth_failed_callback_; 71 base::Closure auth_failed_callback_;
72 scoped_ptr<DnsBlackholeChecker> dns_blackhole_checker_; 72 scoped_ptr<DnsBlackholeChecker> dns_blackhole_checker_;
73 73
74 OAuthTokenGetter* oauth_token_getter_; 74 OAuthTokenGetter* oauth_token_getter_;
75 75
76 // Number of times we tried to connect without success. 76 // Number of times we tried to connect without success.
77 int reconnect_attempts_; 77 int reconnect_attempts_;
78 78
79 base::OneShotTimer<SignalingConnector> timer_; 79 base::OneShotTimer<SignalingConnector> timer_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(SignalingConnector); 81 DISALLOW_COPY_AND_ASSIGN(SignalingConnector);
82 }; 82 };
83 83
84 } // namespace remoting 84 } // namespace remoting
85 85
86 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H_ 86 #endif // REMOTING_HOST_SIGNALING_CONNECTOR_H_
OLDNEW
« no previous file with comments | « remoting/host/shaped_desktop_capturer_unittest.cc ('k') | remoting/host/single_window_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698