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

Unified Diff: chrome/browser/android/android_protocol_adapter.h

Issue 10832034: Upstreaming AndroidProtocolAdapter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
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..3cf11e801fdb5d48da38246fcc553d7b6b658bcd
--- /dev/null
+++ b/chrome/browser/android/android_protocol_adapter.h
@@ -0,0 +1,24 @@
+// 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 <jni.h>
+
+#include "net/url_request/url_request.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_

Powered by Google App Engine
This is Rietveld 408576698