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

Side by Side Diff: remoting/protocol/fake_authenticator.h

Issue 10388226: This broke M20 build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/authenticator.h ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PROTOCOL_FAKE_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "remoting/protocol/authenticator.h" 10 #include "remoting/protocol/authenticator.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 }; 82 };
83 83
84 class FakeHostAuthenticatorFactory : public AuthenticatorFactory { 84 class FakeHostAuthenticatorFactory : public AuthenticatorFactory {
85 public: 85 public:
86 FakeHostAuthenticatorFactory( 86 FakeHostAuthenticatorFactory(
87 int round_trips, FakeAuthenticator::Action action, bool async); 87 int round_trips, FakeAuthenticator::Action action, bool async);
88 virtual ~FakeHostAuthenticatorFactory(); 88 virtual ~FakeHostAuthenticatorFactory();
89 89
90 // AuthenticatorFactory interface. 90 // AuthenticatorFactory interface.
91 virtual scoped_ptr<Authenticator> CreateAuthenticator( 91 virtual scoped_ptr<Authenticator> CreateAuthenticator(
92 const std::string& local_jid,
93 const std::string& remote_jid, 92 const std::string& remote_jid,
94 const buzz::XmlElement* first_message) OVERRIDE; 93 const buzz::XmlElement* first_message) OVERRIDE;
95 94
96 private: 95 private:
97 int round_trips_; 96 int round_trips_;
98 FakeAuthenticator::Action action_; 97 FakeAuthenticator::Action action_;
99 bool async_; 98 bool async_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory); 100 DISALLOW_COPY_AND_ASSIGN(FakeHostAuthenticatorFactory);
102 }; 101 };
103 102
104 } // namespace protocol 103 } // namespace protocol
105 } // namespace remoting 104 } // namespace remoting
106 105
107 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_ 106 #endif // REMOTING_PROTOCOL_FAKE_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/authenticator.h ('k') | remoting/protocol/fake_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698