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

Side by Side Diff: android_webview/browser/net/android_stream_reader_url_request_job.h

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 | « no previous file | android_webview/browser/net/android_stream_reader_url_request_job.cc » ('j') | 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 #ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_
6 #define ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_ 6 #define ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "net/http/http_byte_range.h" 16 #include "net/http/http_byte_range.h"
17 #include "net/url_request/url_request_job.h" 17 #include "net/url_request/url_request_job.h"
18 18
19 namespace android_webview {
20 class InputStream;
21 class InputStreamReader;
22 }
23
24 namespace base { 19 namespace base {
25 class TaskRunner; 20 class TaskRunner;
26 } 21 }
27 22
28 namespace net { 23 namespace net {
29 class HttpResponseHeaders; 24 class HttpResponseHeaders;
30 class HttpResponseInfo; 25 class HttpResponseInfo;
31 class URLRequest; 26 class URLRequest;
32 } 27 }
33 28
29 namespace android_webview {
30
31 class InputStream;
32 class InputStreamReader;
34 class InputStreamReaderWrapper; 33 class InputStreamReaderWrapper;
35 34
36 // A request job that reads data from a Java InputStream. 35 // A request job that reads data from a Java InputStream.
37 class AndroidStreamReaderURLRequestJob : public net::URLRequestJob { 36 class AndroidStreamReaderURLRequestJob : public net::URLRequestJob {
38 public: 37 public:
39 /* 38 /*
40 * We use a delegate so that we can share code for this job in slightly 39 * We use a delegate so that we can share code for this job in slightly
41 * different contexts. 40 * different contexts.
42 */ 41 */
43 class Delegate { 42 class Delegate {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 scoped_ptr<net::HttpResponseInfo> response_info_; 112 scoped_ptr<net::HttpResponseInfo> response_info_;
114 scoped_ptr<Delegate> delegate_; 113 scoped_ptr<Delegate> delegate_;
115 scoped_refptr<InputStreamReaderWrapper> input_stream_reader_wrapper_; 114 scoped_refptr<InputStreamReaderWrapper> input_stream_reader_wrapper_;
116 base::ThreadChecker thread_checker_; 115 base::ThreadChecker thread_checker_;
117 116
118 base::WeakPtrFactory<AndroidStreamReaderURLRequestJob> weak_factory_; 117 base::WeakPtrFactory<AndroidStreamReaderURLRequestJob> weak_factory_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(AndroidStreamReaderURLRequestJob); 119 DISALLOW_COPY_AND_ASSIGN(AndroidStreamReaderURLRequestJob);
121 }; 120 };
122 121
122 } // namespace android_webview
123
123 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_ 124 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/net/android_stream_reader_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698