forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[Android] Update shouldInterceptLoadRequest to Android L style"
This reverts commit db7728d. Reason: broke almost all tests because it uses android.util.ArrayMap (API Level 19) whereas we need to support API levels >= 14: W/System.err( 5990): java.lang.NoClassDefFoundError: android.util.ArrayMap W/System.err( 5990): at org.xwalk.core.internal.XWalkContentsIoThreadClient.shouldInterceptRequest(XWalkContentsIoThreadClient.java:53) W/System.err( 5990): at dalvik.system.NativeStart.run(Native Method) F/chromium( 5990): [FATAL:jni_android.cc(249)] Check failed: false. Please include Java exception stack in crash report BUG=XWALK-3934
- Loading branch information
Raphael Kubo da Costa
committed
Nov 5, 2015
1 parent
24849c6
commit 58b0f21
Showing
31 changed files
with
369 additions
and
764 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
runtime/android/core_internal/src/org/xwalk/core/internal/InterceptedRequestData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2012 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. | ||
// This file is imported from the upstream. | ||
|
||
package org.xwalk.core.internal; | ||
|
||
import org.chromium.base.CalledByNative; | ||
import org.chromium.base.JNINamespace; | ||
|
||
import java.io.InputStream; | ||
|
||
/** | ||
* The response information that is to be returned for a particular resource fetch. | ||
*/ | ||
@JNINamespace("xwalk") | ||
class InterceptedRequestData { | ||
private String mMimeType; | ||
private String mCharset; | ||
private InputStream mData; | ||
|
||
public InterceptedRequestData(String mimeType, String encoding, InputStream data) { | ||
mMimeType = mimeType; | ||
mCharset = encoding; | ||
mData = data; | ||
} | ||
|
||
@CalledByNative | ||
public String getMimeType() { | ||
return mMimeType; | ||
} | ||
|
||
@CalledByNative | ||
public String getCharset() { | ||
return mCharset; | ||
} | ||
|
||
@CalledByNative | ||
public InputStream getData() { | ||
return mData; | ||
} | ||
} |
49 changes: 0 additions & 49 deletions
49
.../android/core_internal/src/org/xwalk/core/internal/WebResourceRequestHandlerInternal.java
This file was deleted.
Oops, something went wrong.
76 changes: 0 additions & 76 deletions
76
runtime/android/core_internal/src/org/xwalk/core/internal/WebResourceRequestInternal.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.