| 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>
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "net/http/http_byte_range.h"
|
| +#include "net/url_request/url_request.h"
|
| +#include "net/url_request/url_request_job.h"
|
| +
|
| +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_
|
|
|