OLD | NEW |
---|---|
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" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 void OnInputStreamOpened( | 109 void OnInputStreamOpened( |
110 scoped_ptr<Delegate> delegate, | 110 scoped_ptr<Delegate> delegate, |
111 scoped_ptr<android_webview::InputStream> input_stream); | 111 scoped_ptr<android_webview::InputStream> input_stream); |
112 void OnReaderSeekCompleted(int content_size); | 112 void OnReaderSeekCompleted(int content_size); |
113 void OnReaderReadCompleted(int bytes_read); | 113 void OnReaderReadCompleted(int bytes_read); |
114 | 114 |
115 net::HttpByteRange byte_range_; | 115 net::HttpByteRange byte_range_; |
116 scoped_ptr<net::HttpResponseInfo> response_info_; | 116 scoped_ptr<net::HttpResponseInfo> response_info_; |
117 scoped_ptr<Delegate> delegate_; | 117 scoped_ptr<Delegate> delegate_; |
118 scoped_refptr<InputStreamReaderWrapper> input_stream_reader_wrapper_; | 118 scoped_refptr<InputStreamReaderWrapper> input_stream_reader_wrapper_; |
119 base::ThreadChecker thread_checker_; | |
120 | |
119 base::WeakPtrFactory<AndroidStreamReaderURLRequestJob> weak_factory_; | 121 base::WeakPtrFactory<AndroidStreamReaderURLRequestJob> weak_factory_; |
mkosiba (inactive)
2014/09/01 08:59:37
maybe add a commend saying that the WeakPtrFactory
mkosiba (inactive)
2014/09/01 09:00:24
ah, just looked at the bug - are you going to add
| |
120 base::ThreadChecker thread_checker_; | |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(AndroidStreamReaderURLRequestJob); | 123 DISALLOW_COPY_AND_ASSIGN(AndroidStreamReaderURLRequestJob); |
123 }; | 124 }; |
124 | 125 |
125 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_ | 126 #endif // ANDROID_WEBVIEW_NATIVE_ANDROID_STREAM_READER_URL_REQUEST_JOB_H_ |
OLD | NEW |