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

Unified Diff: android_webview/browser/net/aw_request_interceptor.h

Issue 1350553005: [Android WebView] Call shouldInterceptRequest on a background thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed indent in AwStreamReaderJobDelegateImpl Created 5 years, 3 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/net/aw_request_interceptor.h
diff --git a/android_webview/browser/aw_request_interceptor.h b/android_webview/browser/net/aw_request_interceptor.h
similarity index 73%
rename from android_webview/browser/aw_request_interceptor.h
rename to android_webview/browser/net/aw_request_interceptor.h
index a3c54b3a26dd692988c9fb1d412c7f033134cbd6..6f34b7193128e6bf3f5f7743a584d72c4dd2f5bc 100644
--- a/android_webview/browser/aw_request_interceptor.h
+++ b/android_webview/browser/net/aw_request_interceptor.h
@@ -2,25 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
-#define ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
+#ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_REQUEST_INTERCEPTOR_H_
+#define ANDROID_WEBVIEW_BROWSER_NET_AW_REQUEST_INTERCEPTOR_H_
#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_interceptor.h"
-class GURL;
-
namespace net {
class URLRequest;
-class URLRequestContextGetter;
class URLRequestJob;
class NetworkDelegate;
}
namespace android_webview {
-class AwWebResourceResponse;
-
// This class allows the Java-side embedder to substitute the default
// URLRequest of a given request for an alternative job that will read data
// from a Java stream.
@@ -35,12 +30,9 @@ class AwRequestInterceptor : public net::URLRequestInterceptor {
net::NetworkDelegate* network_delegate) const override;
private:
- scoped_ptr<AwWebResourceResponse> QueryForAwWebResourceResponse(
- net::URLRequest* request) const;
-
DISALLOW_COPY_AND_ASSIGN(AwRequestInterceptor);
};
} // namespace android_webview
-#endif // ANDROID_WEBVIEW_BROWSER_AW_REQUEST_INTERCEPTOR_H_
+#endif // ANDROID_WEBVIEW_BROWSER_NET_AW_REQUEST_INTERCEPTOR_H_

Powered by Google App Engine
This is Rietveld 408576698