summaryrefslogtreecommitdiffstats
path: root/android_webview/common
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 18:36:26 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-27 18:36:26 +0000
commite7bee399b0d064cdd281bc567a2736852079e87a (patch)
treee9c1b83b4d70a1d8bc52021db2d96a91f33eb8e7 /android_webview/common
parent0d2cb888776e6a8e0dd4939390a2b9c220ff40fa (diff)
downloadchromium_src-e7bee399b0d064cdd281bc567a2736852079e87a.zip
chromium_src-e7bee399b0d064cdd281bc567a2736852079e87a.tar.gz
chromium_src-e7bee399b0d064cdd281bc567a2736852079e87a.tar.bz2
Move AndroidProtocolAdaptor into android_webview
Also move Android-specific URL constants into android_webview R=benm@chromium.org,joth@chromium.org Review URL: https://chromiumcodereview.appspot.com/10985044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/common')
-rw-r--r--android_webview/common/url_constants.cc20
-rw-r--r--android_webview/common/url_constants.h19
2 files changed, 39 insertions, 0 deletions
diff --git a/android_webview/common/url_constants.cc b/android_webview/common/url_constants.cc
new file mode 100644
index 0000000..e56bf0f
--- /dev/null
+++ b/android_webview/common/url_constants.cc
@@ -0,0 +1,20 @@
+// 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.
+
+#include "android_webview/common/url_constants.h"
+
+namespace android_webview {
+
+// The content: scheme is used in Android for interacting with content
+// provides.
+// See http://developer.android.com/reference/android/content/ContentUris.html
+const char kContentScheme[] = "content";
+
+// These are special paths used with the file: scheme to access application
+// assets and resources.
+// See http://developer.android.com/reference/android/webkit/WebSettings.html
+const char kAndroidAssetPath[] = "/android_asset/";
+const char kAndroidResourcePath[] = "/android_res/";
+
+} // namespace android_webview
diff --git a/android_webview/common/url_constants.h b/android_webview/common/url_constants.h
new file mode 100644
index 0000000..c340ca7
--- /dev/null
+++ b/android_webview/common/url_constants.h
@@ -0,0 +1,19 @@
+// 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.
+
+// Contains constants for known URLs and portions thereof.
+
+#ifndef ANDROID_WEBVIEW_COMMON_URL_CONSTANTS_H_
+#define ANDROID_WEBVIEW_COMMON_URL_CONSTANTS_H_
+
+namespace android_webview {
+
+extern const char kContentScheme[];
+// Special Android file paths.
+extern const char kAndroidAssetPath[];
+extern const char kAndroidResourcePath[];
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_COMMON_URL_CONSTANTS_H_