OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "net/http/http_byte_range.h" |
| 12 #include "net/url_request/url_request.h" |
| 13 #include "net/url_request/url_request_job.h" |
| 14 |
| 15 class AndroidProtocolAdapter { |
| 16 public: |
| 17 static net::URLRequest::ProtocolFactory Factory; |
| 18 |
| 19 // Register the protocol factories for all supported Android protocol |
| 20 // schemes. |
| 21 static bool RegisterProtocols(JNIEnv* env); |
| 22 |
| 23 private: |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(AndroidProtocolAdapter); |
| 25 }; |
| 26 |
| 27 #endif // CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
OLD | NEW |