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

Unified Diff: android_webview/embeddedtestserver/java/src/org/chromium/net/test/IAwEmbeddedTestServerImpl.aidl

Issue 2687573002: [Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler (Closed)
Patch Set: discussing patch Created 3 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/embeddedtestserver/java/src/org/chromium/net/test/IAwEmbeddedTestServerImpl.aidl
diff --git a/android_webview/embeddedtestserver/java/src/org/chromium/net/test/IAwEmbeddedTestServerImpl.aidl b/android_webview/embeddedtestserver/java/src/org/chromium/net/test/IAwEmbeddedTestServerImpl.aidl
new file mode 100644
index 0000000000000000000000000000000000000000..57ae1da68b289c0383268da7fdecf503f8012624
--- /dev/null
+++ b/android_webview/embeddedtestserver/java/src/org/chromium/net/test/IAwEmbeddedTestServerImpl.aidl
@@ -0,0 +1,62 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net.test;
+
+interface IAwEmbeddedTestServerImpl {
+
+ /** Initialize the native object. */
+ boolean initializeNative();
+
+ /** Start the server.
+ *
+ * @return Whether the server was successfully started.
+ */
+ boolean start();
+
+ /** Add the default handlers and serve files from the provided directory relative to the
+ * external storage directory.
+ *
+ * @param directoryPath The path of the directory from which files should be served, relative
+ * to the external storage directory.
+ */
+ void addDefaultHandlers(String directoryPath);
+
+ /** Register multiple request handlers.
+ * Handlers must be registered before starting the server.
+ *
+ * @param handlers The pointers of handlers to be registered.
+ */
+ void registerRequestHandlers(inout long[] handlers);
+
+ /** Serve files from the provided directory.
+ *
+ * @param directoryPath The path of the directory from which files should be served.
+ */
+ void serveFilesFromDirectory(String directoryPath);
+
+ /** Get array of custom handler methods pointers.
+ *
+ * @return The handler pointers as a long array.
+ */
+ long[] getCustomHandlers();
+
+ /** Get the full URL for the given relative URL.
+ *
+ * @param relativeUrl The relative URL for which a full URL should be returned.
+ * @return The URL as a String.
+ */
+ String getURL(String relativeUrl);
+
+ /** Shut down the server.
+ *
+ * @return Whether the server was successfully shut down.
+ */
+ boolean shutdownAndWaitUntilComplete();
+
+ /** Destroy the native object. */
+ void destroy();
+
+}
+

Powered by Google App Engine
This is Rietveld 408576698