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

Side by Side 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, 9 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.net.test;
6
7 interface IAwEmbeddedTestServerImpl {
8
9 /** Initialize the native object. */
10 boolean initializeNative();
11
12 /** Start the server.
13 *
14 * @return Whether the server was successfully started.
15 */
16 boolean start();
17
18 /** Add the default handlers and serve files from the provided directory rel ative to the
19 * external storage directory.
20 *
21 * @param directoryPath The path of the directory from which files should b e served, relative
22 * to the external storage directory.
23 */
24 void addDefaultHandlers(String directoryPath);
25
26 /** Register multiple request handlers.
27 * Handlers must be registered before starting the server.
28 *
29 * @param handlers The pointers of handlers to be registered.
30 */
31 void registerRequestHandlers(inout long[] handlers);
32
33 /** Serve files from the provided directory.
34 *
35 * @param directoryPath The path of the directory from which files should b e served.
36 */
37 void serveFilesFromDirectory(String directoryPath);
38
39 /** Get array of custom handler methods pointers.
40 *
41 * @return The handler pointers as a long array.
42 */
43 long[] getCustomHandlers();
44
45 /** Get the full URL for the given relative URL.
46 *
47 * @param relativeUrl The relative URL for which a full URL should be retur ned.
48 * @return The URL as a String.
49 */
50 String getURL(String relativeUrl);
51
52 /** Shut down the server.
53 *
54 * @return Whether the server was successfully shut down.
55 */
56 boolean shutdownAndWaitUntilComplete();
57
58 /** Destroy the native object. */
59 void destroy();
60
61 }
62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698