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

Unified Diff: remoting/protocol/pepper_session.h

Issue 8619011: Use Authenticator interface in Session and SessionManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/pepper_session.h
diff --git a/remoting/protocol/pepper_session.h b/remoting/protocol/pepper_session.h
index 7e0668752018ff1a408e679c42a874b5ad33e277..e13b875ea934acf113dd40797f001af81e55eb20 100644
--- a/remoting/protocol/pepper_session.h
+++ b/remoting/protocol/pepper_session.h
@@ -28,6 +28,7 @@ class IqRequest;
namespace protocol {
+class Authenticator;
class PepperChannel;
class PepperSessionManager;
@@ -53,12 +54,6 @@ class PepperSession : public Session {
virtual const CandidateSessionConfig* candidate_config() OVERRIDE;
virtual const SessionConfig& config() OVERRIDE;
virtual void set_config(const SessionConfig& config) OVERRIDE;
- virtual const std::string& initiator_token() OVERRIDE;
- virtual void set_initiator_token(const std::string& initiator_token) OVERRIDE;
- virtual const std::string& receiver_token() OVERRIDE;
- virtual void set_receiver_token(const std::string& receiver_token) OVERRIDE;
- virtual void set_shared_secret(const std::string& secret) OVERRIDE;
- virtual const std::string& shared_secret() OVERRIDE;
virtual void Close() OVERRIDE;
private:
@@ -71,8 +66,7 @@ class PepperSession : public Session {
// Start cs connection by sending session-initiate message.
void StartConnection(const std::string& peer_jid,
- const std::string& peer_public_key,
- const std::string& client_token,
+ Authenticator* authenticator,
CandidateSessionConfig* config,
const StateChangeCallback& state_change_callback);
@@ -110,7 +104,6 @@ class PepperSession : public Session {
PepperSessionManager* session_manager_;
std::string peer_jid_;
- std::string peer_public_key_;
scoped_ptr<CandidateSessionConfig> candidate_config_;
StateChangeCallback state_change_callback_;
@@ -118,12 +111,9 @@ class PepperSession : public Session {
State state_;
Error error_;
- std::string remote_cert_;
SessionConfig config_;
- std::string shared_secret_;
- std::string initiator_token_;
- std::string receiver_token_;
+ scoped_ptr<Authenticator> authenticator_;
scoped_ptr<IqRequest> initiate_request_;
scoped_ptr<IqRequest> transport_info_request_;
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | remoting/protocol/pepper_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698