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

Side by Side Diff: remoting/jingle_glue/ssl_socket_adapter.cc

Issue 3300030: Removed use of XmppSocketAdapter by sync. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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 | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | remoting/jingle_glue/xmpp_socket_adapter.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "jingle/notifier/communicator/ssl_socket_adapter.h" 5 #include "remoting/jingle_glue/ssl_socket_adapter.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/base/ssl_config_service.h" 11 #include "net/base/ssl_config_service.h"
12 #include "net/base/sys_addrinfo.h" 12 #include "net/base/sys_addrinfo.h"
13 #include "net/socket/client_socket_factory.h" 13 #include "net/socket/client_socket_factory.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 15
16 namespace notifier { 16 namespace remoting {
17 17
18 namespace { 18 namespace {
19 19
20 // Convert values from <errno.h> to values from "net/base/net_errors.h" 20 // Convert values from <errno.h> to values from "net/base/net_errors.h"
21 int MapPosixError(int err) { 21 int MapPosixError(int err) {
22 // There are numerous posix error codes, but these are the ones we thus far 22 // There are numerous posix error codes, but these are the ones we thus far
23 // find interesting. 23 // find interesting.
24 switch (err) { 24 switch (err) {
25 case EAGAIN: 25 case EAGAIN:
26 #if EWOULDBLOCK != EAGAIN 26 #if EWOULDBLOCK != EAGAIN
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 write_buffer_ = buffer; 376 write_buffer_ = buffer;
377 write_buffer_len_ = buffer_len; 377 write_buffer_len_ = buffer_len;
378 return; 378 return;
379 } 379 }
380 } 380 }
381 was_used_to_convey_data_ = true; 381 was_used_to_convey_data_ = true;
382 callback->RunWithParams(Tuple1<int>(result)); 382 callback->RunWithParams(Tuple1<int>(result));
383 } 383 }
384 } 384 }
385 385
386 } // namespace notifier 386 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/jingle_glue/ssl_socket_adapter.h ('k') | remoting/jingle_glue/xmpp_socket_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698