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

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

Issue 8536002: Cleanup: Remove unneeded forward declarations from remoting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/jingle_stream_connector.h ('k') | remoting/protocol/pepper_stream_channel.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PEPPER_SESSION_H_ 5 #ifndef REMOTING_PROTOCOL_PEPPER_SESSION_H_
6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_ 6 #define REMOTING_PROTOCOL_PEPPER_SESSION_H_
7 7
8 #include <list>
8 #include <map> 9 #include <map>
9 #include <string> 10 #include <string>
10 11
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "base/timer.h" 13 #include "base/timer.h"
13 #include "crypto/rsa_private_key.h" 14 #include "crypto/rsa_private_key.h"
14 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
15 #include "remoting/protocol/jingle_messages.h" 16 #include "remoting/protocol/jingle_messages.h"
16 #include "remoting/protocol/session.h" 17 #include "remoting/protocol/session.h"
17 #include "remoting/protocol/session_config.h" 18 #include "remoting/protocol/session_config.h"
18 19
19 namespace net { 20 namespace net {
20 class CertVerifier;
21 class ClientSocketFactory;
22 class Socket; 21 class Socket;
23 class StreamSocket; 22 class StreamSocket;
24 class X509Certificate;
25 } // namespace net 23 } // namespace net
26 24
27 namespace pp {
28 class Instance;
29 } // namespace pp
30
31 namespace remoting { 25 namespace remoting {
32 26
33 class IqRequest; 27 class IqRequest;
34 28
35 namespace protocol { 29 namespace protocol {
36 30
37 class PepperChannel; 31 class PepperChannel;
38 class PepperSessionManager; 32 class PepperSessionManager;
39 class SocketWrapper;
40 33
41 // Implements the protocol::Session interface using the Pepper P2P 34 // Implements the protocol::Session interface using the Pepper P2P
42 // Transport API. Created by PepperSessionManager for incoming and 35 // Transport API. Created by PepperSessionManager for incoming and
43 // outgoing connections. 36 // outgoing connections.
44 class PepperSession : public Session { 37 class PepperSession : public Session {
45 public: 38 public:
46 virtual ~PepperSession(); 39 virtual ~PepperSession();
47 40
48 // Session interface. 41 // Session interface.
49 virtual void SetStateChangeCallback( 42 virtual void SetStateChangeCallback(
(...skipping 18 matching lines...) Expand all
68 virtual void set_shared_secret(const std::string& secret) OVERRIDE; 61 virtual void set_shared_secret(const std::string& secret) OVERRIDE;
69 virtual const std::string& shared_secret() OVERRIDE; 62 virtual const std::string& shared_secret() OVERRIDE;
70 virtual void Close() OVERRIDE; 63 virtual void Close() OVERRIDE;
71 64
72 private: 65 private:
73 friend class PepperSessionManager; 66 friend class PepperSessionManager;
74 friend class PepperStreamChannel; 67 friend class PepperStreamChannel;
75 68
76 typedef std::map<std::string, PepperChannel*> ChannelsMap; 69 typedef std::map<std::string, PepperChannel*> ChannelsMap;
77 70
78 PepperSession(PepperSessionManager* session_manager); 71 explicit PepperSession(PepperSessionManager* session_manager);
79 72
80 // Start cs connection by sending session-initiate message. 73 // Start cs connection by sending session-initiate message.
81 void StartConnection(const std::string& peer_jid, 74 void StartConnection(const std::string& peer_jid,
82 const std::string& peer_public_key, 75 const std::string& peer_public_key,
83 const std::string& client_token, 76 const std::string& client_token,
84 CandidateSessionConfig* config, 77 CandidateSessionConfig* config,
85 const StateChangeCallback& state_change_callback); 78 const StateChangeCallback& state_change_callback);
86 79
87 // Handler for session-initiate response. 80 // Handler for session-initiate response.
88 void OnSessionInitiateResponse(const buzz::XmlElement* response); 81 void OnSessionInitiateResponse(const buzz::XmlElement* response);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 base::OneShotTimer<PepperSession> transport_infos_timer_; 143 base::OneShotTimer<PepperSession> transport_infos_timer_;
151 std::list<cricket::Candidate> pending_candidates_; 144 std::list<cricket::Candidate> pending_candidates_;
152 145
153 DISALLOW_COPY_AND_ASSIGN(PepperSession); 146 DISALLOW_COPY_AND_ASSIGN(PepperSession);
154 }; 147 };
155 148
156 } // namespace protocol 149 } // namespace protocol
157 } // namespace remoting 150 } // namespace remoting
158 151
159 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_ 152 #endif // REMOTING_PROTOCOL_PEPPER_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_stream_connector.h ('k') | remoting/protocol/pepper_stream_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698