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

Side by Side Diff: android_webview/native/android_protocol_handler.cc

Issue 1356213003: [Android WebView] Put AndroidStreamReaderURLRequestJob into a namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/android_protocol_handler.h" 5 #include "android_webview/native/android_protocol_handler.h"
6 6
7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h" 7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h"
8 #include "android_webview/browser/net/aw_url_request_job_factory.h" 8 #include "android_webview/browser/net/aw_url_request_job_factory.h"
9 #include "android_webview/common/url_constants.h" 9 #include "android_webview/common/url_constants.h"
10 #include "android_webview/native/input_stream_impl.h" 10 #include "android_webview/native/input_stream_impl.h"
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/jni_string.h" 12 #include "base/android/jni_string.h"
13 #include "base/android/jni_weak_ref.h" 13 #include "base/android/jni_weak_ref.h"
14 #include "content/public/common/url_constants.h" 14 #include "content/public/common/url_constants.h"
15 #include "jni/AndroidProtocolHandler_jni.h" 15 #include "jni/AndroidProtocolHandler_jni.h"
16 #include "net/base/io_buffer.h" 16 #include "net/base/io_buffer.h"
17 #include "net/base/mime_util.h" 17 #include "net/base/mime_util.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
20 #include "net/http/http_util.h" 20 #include "net/http/http_util.h"
21 #include "net/url_request/url_request.h" 21 #include "net/url_request/url_request.h"
22 #include "net/url_request/url_request_interceptor.h" 22 #include "net/url_request/url_request_interceptor.h"
23 #include "url/gurl.h" 23 #include "url/gurl.h"
24 #include "url/url_constants.h" 24 #include "url/url_constants.h"
25 25
26 using android_webview::AndroidStreamReaderURLRequestJob;
26 using android_webview::InputStream; 27 using android_webview::InputStream;
27 using android_webview::InputStreamImpl; 28 using android_webview::InputStreamImpl;
28 using base::android::AttachCurrentThread; 29 using base::android::AttachCurrentThread;
29 using base::android::ClearException; 30 using base::android::ClearException;
30 using base::android::ConvertUTF8ToJavaString; 31 using base::android::ConvertUTF8ToJavaString;
31 using base::android::ScopedJavaGlobalRef; 32 using base::android::ScopedJavaGlobalRef;
32 using base::android::ScopedJavaLocalRef; 33 using base::android::ScopedJavaLocalRef;
33 34
34 namespace { 35 namespace {
35 36
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath); 289 return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath);
289 } 290 }
290 291
291 static ScopedJavaLocalRef<jstring> GetAndroidResourcePath( 292 static ScopedJavaLocalRef<jstring> GetAndroidResourcePath(
292 JNIEnv* env, 293 JNIEnv* env,
293 const JavaParamRef<jclass>& /*clazz*/) { 294 const JavaParamRef<jclass>& /*clazz*/) {
294 return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath); 295 return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath);
295 } 296 }
296 297
297 } // namespace android_webview 298 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698