| Index: android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java b/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2a5460e4a1f43d8bfcf944cacd929931382c3343
|
| --- /dev/null
|
| +++ b/android_webview/java/src/org/chromium/android_webview/InterceptedRequestData.java
|
| @@ -0,0 +1,39 @@
|
| +// 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.
|
| +
|
| +package org.chromium.android_webview;
|
| +
|
| +import org.chromium.base.CalledByNative;
|
| +
|
| +import java.io.InputStream;
|
| +
|
| +/**
|
| + * The response information that is to be returned for a particular resource fetch.
|
| + */
|
| +public 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;
|
| + }
|
| +}
|
|
|