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

Unified Diff: runtime/bin/tls_socket.h

Issue 10828320: Revert "Start adding TLS (SSL) sockets to dart:io." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | runtime/bin/tls_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/tls_socket.h
diff --git a/runtime/bin/tls_socket.h b/runtime/bin/tls_socket.h
deleted file mode 100644
index 17cb6d8ee78987ea087d1fb7fd1885ce2ea12fb8..0000000000000000000000000000000000000000
--- a/runtime/bin/tls_socket.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-#ifndef BIN_TLS_SOCKET_H_
-#define BIN_TLS_SOCKET_H_
-
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <sys/types.h>
-
-#include "bin/builtin.h"
-#include "bin/dartutils.h"
-#include "platform/globals.h"
-#include "platform/thread.h"
-
-static Dart_Handle HandleError(Dart_Handle handle) {
- if (Dart_IsError(handle)) Dart_PropagateError(handle);
- return handle;
-}
-
-
-class TlsFilterPlatformData;
-
-class TlsFilter {
- public:
- enum BufferIndex { kReadPlaintext,
- kWritePlaintext,
- kReadEncrypted,
- kWriteEncrypted,
- kNumBuffers};
-
- TlsFilter();
- void Init(Dart_Handle dart_this);
- void Connect();
- void Destroy();
- void DestroyPlatformIndependent();
- void RegisterHandshakeCallbacks(Dart_Handle start, Dart_Handle finish);
-
- intptr_t ProcessBuffer(int bufferIndex);
-
- private:
- // static const char* bufferNames_[kNumBuffers];
- static bool library_initialized_; // Should be mutex protected.
-
- uint8_t* buffers_[kNumBuffers];
- int64_t buffer_size_;
- Dart_Handle stringStart_;
- Dart_Handle stringLength_;
- Dart_Handle dart_buffer_objects_[kNumBuffers];
- Dart_Handle handshake_start_;
- Dart_Handle handshake_finish_;
- bool in_handshake_;
- TlsFilterPlatformData* data_;
-
- void InitializeBuffers(Dart_Handle dart_this);
- void InitializePlatformData();
- void InitializeLibrary();
- void LockInitMutex() {}
- void UnlockInitMutex() {}
-
- DISALLOW_COPY_AND_ASSIGN(TlsFilter);
-};
-
-#endif // BIN_TLS_SOCKET_H_
« no previous file with comments | « runtime/bin/io_sources.gypi ('k') | runtime/bin/tls_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698