Index: chrome/browser/android/android_protocol_adapter.h |
diff --git a/chrome/browser/android/android_protocol_adapter.h b/chrome/browser/android/android_protocol_adapter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3549256b1cac24856b997e413705588b15f6e28b |
--- /dev/null |
+++ b/chrome/browser/android/android_protocol_adapter.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
+#define CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |
+ |
+#include <memory> |
Nico
2012/07/27 14:22:23
Not needed
felipeg
2012/07/30 16:48:54
Done.
|
+ |
+#include "base/android/scoped_java_ref.h" |
+#include "net/http/http_byte_range.h" |
Nico
2012/07/27 14:22:23
Not needed
felipeg
2012/07/30 16:48:54
Done.
|
+#include "net/url_request/url_request.h" |
+#include "net/url_request/url_request_job.h" |
Nico
2012/07/27 14:22:23
Not needed
felipeg
2012/07/30 16:48:54
Done.
|
+ |
+class AndroidProtocolAdapter { |
+ public: |
+ static net::URLRequest::ProtocolFactory Factory; |
+ |
+ // Register the protocol factories for all supported Android protocol |
+ // schemes. |
+ static bool RegisterProtocols(JNIEnv* env); |
+ |
+ private: |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(AndroidProtocolAdapter); |
+}; |
+ |
+#endif // CHROME_BROWSER_ANDROID_ANDROID_PROTOCOL_ADAPTER_H_ |