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

Unified Diff: android_webview/browser/intercepted_request_data.h

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix accidentally broken test Created 6 years, 6 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/browser/intercepted_request_data.h
diff --git a/android_webview/browser/intercepted_request_data.h b/android_webview/browser/intercepted_request_data.h
deleted file mode 100644
index acf031d338c788eef6583ccd393d90aaf6779a31..0000000000000000000000000000000000000000
--- a/android_webview/browser/intercepted_request_data.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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.
-
-#ifndef ANDROID_WEBVIEW_BROWSER_INTERCEPTED_REQUEST_DATA_H_
-#define ANDROID_WEBVIEW_BROWSER_INTERCEPTED_REQUEST_DATA_H_
-
-#include <string>
-
-#include "base/android/jni_android.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace net {
-class URLRequest;
-class URLRequestJob;
-class NetworkDelegate;
-}
-
-namespace android_webview {
-
-class InputStream;
-
-// This class represents the Java-side data that is to be used to complete a
-// particular URLRequest.
-class InterceptedRequestData {
- public:
- virtual ~InterceptedRequestData() {}
-
- virtual scoped_ptr<InputStream> GetInputStream(JNIEnv* env) const = 0;
- virtual bool GetMimeType(JNIEnv* env, std::string* mime_type) const = 0;
- virtual bool GetCharset(JNIEnv* env, std::string* charset) const = 0;
-
- // This creates a URLRequestJob for the |request| wich will read data from
- // the |intercepted_request_data| structure (instead of going to the network
- // or to the cache).
- // The newly created job takes ownership of |intercepted_request_data|.
- static net::URLRequestJob* CreateJobFor(
- scoped_ptr<InterceptedRequestData> intercepted_request_data,
- net::URLRequest* request,
- net::NetworkDelegate* network_delegate);
-
- protected:
- InterceptedRequestData() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InterceptedRequestData);
-};
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_BROWSER_INTERCEPTED_REQUEST_DATA_H_
« no previous file with comments | « android_webview/browser/aw_web_resource_response.cc ('k') | android_webview/browser/intercepted_request_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698