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

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

Issue 8589003: Add OVERRIDE to jingle/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes 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 | « jingle/notifier/base/weak_xmpp_client.h ('k') | jingle/notifier/communicator/login.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 JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 5 #ifndef JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 6 #define JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "jingle/notifier/base/resolving_client_socket_factory.h" 12 #include "jingle/notifier/base/resolving_client_socket_factory.h"
12 #include "net/base/ssl_config_service.h" 13 #include "net/base/ssl_config_service.h"
13 14
14 namespace net { 15 namespace net {
15 class ClientSocketFactory; 16 class ClientSocketFactory;
16 class ClientSocketHandle; 17 class ClientSocketHandle;
17 class HostPortPair; 18 class HostPortPair;
18 class SSLClientSocket; 19 class SSLClientSocket;
19 class StreamSocket; 20 class StreamSocket;
20 class URLRequestContextGetter; 21 class URLRequestContextGetter;
21 } 22 }
22 23
23 namespace notifier { 24 namespace notifier {
24 25
25 class XmppClientSocketFactory : public ResolvingClientSocketFactory { 26 class XmppClientSocketFactory : public ResolvingClientSocketFactory {
26 public: 27 public:
27 // Does not take ownership of |client_socket_factory|. 28 // Does not take ownership of |client_socket_factory|.
28 XmppClientSocketFactory( 29 XmppClientSocketFactory(
29 net::ClientSocketFactory* client_socket_factory, 30 net::ClientSocketFactory* client_socket_factory,
30 const net::SSLConfig& ssl_config, 31 const net::SSLConfig& ssl_config,
31 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, 32 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter,
32 bool use_fake_ssl_client_socket); 33 bool use_fake_ssl_client_socket);
33 34
34 virtual ~XmppClientSocketFactory(); 35 virtual ~XmppClientSocketFactory();
35 36
36 // ResolvingClientSocketFactory implementation. 37 // ResolvingClientSocketFactory implementation.
37 virtual net::StreamSocket* CreateTransportClientSocket( 38 virtual net::StreamSocket* CreateTransportClientSocket(
38 const net::HostPortPair& host_and_port); 39 const net::HostPortPair& host_and_port) OVERRIDE;
39 40
40 virtual net::SSLClientSocket* CreateSSLClientSocket( 41 virtual net::SSLClientSocket* CreateSSLClientSocket(
41 net::ClientSocketHandle* transport_socket, 42 net::ClientSocketHandle* transport_socket,
42 const net::HostPortPair& host_and_port); 43 const net::HostPortPair& host_and_port) OVERRIDE;
43 44
44 private: 45 private:
45 net::ClientSocketFactory* const client_socket_factory_; 46 net::ClientSocketFactory* const client_socket_factory_;
46 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 47 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
47 const net::SSLConfig ssl_config_; 48 const net::SSLConfig ssl_config_;
48 const bool use_fake_ssl_client_socket_; 49 const bool use_fake_ssl_client_socket_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory); 51 DISALLOW_COPY_AND_ASSIGN(XmppClientSocketFactory);
51 }; 52 };
52 53
53 } // namespace notifier 54 } // namespace notifier
54 55
55 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_ 56 #endif // JINGLE_NOTIFIER_BASE_XMPP_CLIENT_SOCKET_FACTORY_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/weak_xmpp_client.h ('k') | jingle/notifier/communicator/login.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698