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

Side by Side Diff: jingle/notifier/base/fake_ssl_client_socket.h

Issue 10702139: Remove #pragma once from jingle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « jingle/notifier/base/fake_base_task.h ('k') | jingle/notifier/base/mock_task.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) 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 // This StreamSocket implementation is to be used with servers that 5 // This StreamSocket implementation is to be used with servers that
6 // accept connections on port 443 but don't really use SSL. For 6 // accept connections on port 443 but don't really use SSL. For
7 // example, the Google Talk servers do this to bypass proxies. (The 7 // example, the Google Talk servers do this to bypass proxies. (The
8 // connection is upgraded to TLS as part of the XMPP negotiation, so 8 // connection is upgraded to TLS as part of the XMPP negotiation, so
9 // security is preserved.) A "fake" SSL handshake is done immediately 9 // security is preserved.) A "fake" SSL handshake is done immediately
10 // after connection to fool proxies into thinking that this is a real 10 // after connection to fool proxies into thinking that this is a real
11 // SSL connection. 11 // SSL connection.
12 // 12 //
13 // NOTE: This StreamSocket implementation does *not* do a real SSL 13 // NOTE: This StreamSocket implementation does *not* do a real SSL
14 // handshake nor does it do any encryption! 14 // handshake nor does it do any encryption!
15 15
16 #ifndef JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_ 16 #ifndef JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_
17 #define JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_ 17 #define JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_
18 #pragma once
19 18
20 #include <cstddef> 19 #include <cstddef>
21 20
22 #include "base/basictypes.h" 21 #include "base/basictypes.h"
23 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
24 #include "base/memory/ref_counted.h" 23 #include "base/memory/ref_counted.h"
25 #include "base/memory/scoped_ptr.h" 24 #include "base/memory/scoped_ptr.h"
26 #include "base/string_piece.h" 25 #include "base/string_piece.h"
27 #include "net/base/completion_callback.h" 26 #include "net/base/completion_callback.h"
28 #include "net/base/net_errors.h" 27 #include "net/base/net_errors.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // The callback passed to Connect(). 102 // The callback passed to Connect().
104 net::CompletionCallback user_connect_callback_; 103 net::CompletionCallback user_connect_callback_;
105 104
106 scoped_refptr<net::DrainableIOBuffer> write_buf_; 105 scoped_refptr<net::DrainableIOBuffer> write_buf_;
107 scoped_refptr<net::DrainableIOBuffer> read_buf_; 106 scoped_refptr<net::DrainableIOBuffer> read_buf_;
108 }; 107 };
109 108
110 } // namespace notifier 109 } // namespace notifier
111 110
112 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_ 111 #endif // JINGLE_NOTIFIER_BASE_FAKE_SSL_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/fake_base_task.h ('k') | jingle/notifier/base/mock_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698