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

Side by Side Diff: runtime/bin/secure_socket.h

Issue 910183003: Reafctor to use 'const RawAddr&' or 'RawAddr*' in the eventhandler code (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor change Created 5 years, 10 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_SECURE_SOCKET_H_ 5 #ifndef BIN_SECURE_SOCKET_H_
6 #define BIN_SECURE_SOCKET_H_ 6 #define BIN_SECURE_SOCKET_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 string_start_(NULL), 52 string_start_(NULL),
53 string_length_(NULL), 53 string_length_(NULL),
54 handshake_complete_(NULL), 54 handshake_complete_(NULL),
55 bad_certificate_callback_(NULL), 55 bad_certificate_callback_(NULL),
56 in_handshake_(false), 56 in_handshake_(false),
57 client_certificate_name_(NULL), 57 client_certificate_name_(NULL),
58 filter_(NULL) { } 58 filter_(NULL) { }
59 59
60 void Init(Dart_Handle dart_this); 60 void Init(Dart_Handle dart_this);
61 void Connect(const char* host, 61 void Connect(const char* host,
62 RawAddr* raw_addr, 62 const RawAddr& raw_addr,
63 int port, 63 int port,
64 bool is_server, 64 bool is_server,
65 const char* certificate_name, 65 const char* certificate_name,
66 bool request_client_certificate, 66 bool request_client_certificate,
67 bool require_client_certificate, 67 bool require_client_certificate,
68 bool send_client_certificate, 68 bool send_client_certificate,
69 Dart_Handle protocols_handle); 69 Dart_Handle protocols_handle);
70 void Destroy(); 70 void Destroy();
71 void Handshake(); 71 void Handshake();
72 void GetSelectedProtocol(Dart_NativeArguments args); 72 void GetSelectedProtocol(Dart_NativeArguments args);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void InitializeBuffers(Dart_Handle dart_this); 120 void InitializeBuffers(Dart_Handle dart_this);
121 void InitializePlatformData(); 121 void InitializePlatformData();
122 122
123 DISALLOW_COPY_AND_ASSIGN(SSLFilter); 123 DISALLOW_COPY_AND_ASSIGN(SSLFilter);
124 }; 124 };
125 125
126 } // namespace bin 126 } // namespace bin
127 } // namespace dart 127 } // namespace dart
128 128
129 #endif // BIN_SECURE_SOCKET_H_ 129 #endif // BIN_SECURE_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698