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

Side by Side Diff: content/browser/renderer_host/p2p/ssltcp_helper.h

Issue 16516003: SSLTCP (pseudo-SSL with fake handshake and unencrypted data) support for p2p socket. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SSLTCP_HELPER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SSLTCP_HELPER_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "content/common/content_export.h"
12
13 namespace content {
14
15 size_t client_hello_message_size();
Sergey Ulanov 2013/06/18 20:01:26 These do not seem to be used anywhere except in ss
16 size_t server_hello_message_size();
17
18 class CONTENT_EXPORT SsltcpHelper {
Sergey Ulanov 2013/06/18 20:01:26 Add comments to explain what this class is used fo
19 public:
20 SsltcpHelper();
21 ~SsltcpHelper();
22
23 void Init(bool client);
Sergey Ulanov 2013/06/18 20:01:26 instead of using bool define enum Mode { CLIENT, S
24 bool IsClient() const;
25
26 void set_hello_sent(bool hello_sent);
27 bool hello_sent() const;
28 void set_hello_received(bool hello_received);
29 bool hello_received() const;
30 const std::vector<char>& client_hello_message() const;
31 const std::vector<char>& server_hello_message() const;
32 bool IsHelloMessage(const char* message);
33 size_t hello_message_size();
34 size_t remote_hello_message_size();
35
36 private:
37 bool client_;
38 bool hello_sent_;
39 bool hello_received_;
40 std::vector<char> client_hello_message_;
41 std::vector<char> server_hello_message_;
42
43 DISALLOW_COPY_AND_ASSIGN(SsltcpHelper);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SSLTCP_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698