Index: third_party/grpc/src/core/tsi/fake_transport_security.h |
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystem.h b/third_party/grpc/src/core/tsi/fake_transport_security.h |
similarity index 62% |
copy from third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystem.h |
copy to third_party/grpc/src/core/tsi/fake_transport_security.h |
index 830580d11e840aa921c865737cc326edb976f551..fe295aa53607ca63c8d2f060d5dfb8bb0a3da613 100644 |
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystem.h |
+++ b/third_party/grpc/src/core/tsi/fake_transport_security.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2009 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015, Google Inc. |
+ * All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,39 +28,34 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * |
*/ |
-#ifndef SQLiteFileSystem_h |
-#define SQLiteFileSystem_h |
- |
-#include "wtf/Allocator.h" |
-#include "wtf/Threading.h" |
-#include "wtf/text/WTFString.h" |
+#ifndef GRPC_INTERNAL_CORE_TSI_FAKE_TRANSPORT_SECURITY_H |
+#define GRPC_INTERNAL_CORE_TSI_FAKE_TRANSPORT_SECURITY_H |
-struct sqlite3; |
+#include "src/core/tsi/transport_security_interface.h" |
-namespace blink { |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
-// A class that abstracts the file system related operations required |
-// by the WebKit database code. |
-class SQLiteFileSystem { |
- DISALLOW_NEW(); |
-public: |
- // Registers a user-defined SQLite VFS. |
- static void registerSQLiteVFS(); |
+/* Value for the TSI_CERTIFICATE_TYPE_PEER_PROPERTY property for FAKE certs. */ |
+#define TSI_FAKE_CERTIFICATE_TYPE "FAKE" |
- // Opens a database file. |
- // |
- // filemame - The name of the database file. |
- // database - The SQLite structure that represents the database stored |
- // in the given file. |
- static int openDatabase(const String& filename, sqlite3** database); |
+/* Creates a fake handshaker that will create a fake frame protector. |
-private: |
- // do not instantiate this class |
- SQLiteFileSystem(); |
-}; // class SQLiteFileSystem |
+ No cryptography is performed in these objects. They just simulate handshake |
+ messages going back and forth for the handshaker and do some framing on |
+ cleartext data for the protector. */ |
+tsi_handshaker *tsi_create_fake_handshaker(int is_client); |
-} // namespace blink |
+/* Creates a protector directly without going through the handshake phase. */ |
+tsi_frame_protector *tsi_create_fake_protector( |
+ size_t *max_protected_frame_size); |
+#ifdef __cplusplus |
+} |
#endif |
+ |
+#endif /* GRPC_INTERNAL_CORE_TSI_FAKE_TRANSPORT_SECURITY_H */ |