diff options
author | benm@google.com <benm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 19:15:48 +0000 |
---|---|---|
committer | benm@google.com <benm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 19:15:48 +0000 |
commit | dd81d183d4691b7941bfd7db7dfeb819754fd512 (patch) | |
tree | 70c41d793241680647f1ec4adcbe7ab092cd9c2a /android_webview/common | |
parent | 4b80aecb29f25ee1f5929dbd71f310b8096d2e14 (diff) | |
download | chromium_src-dd81d183d4691b7941bfd7db7dfeb819754fd512.zip chromium_src-dd81d183d4691b7941bfd7db7dfeb819754fd512.tar.gz chromium_src-dd81d183d4691b7941bfd7db7dfeb819754fd512.tar.bz2 |
[Android WebView] Support for fetching Android Java resources.
Add AwResource.java, a class that defines a set of resource IDs and
functionality to resolve those IDs to concrete resources.
Initially, we add three resources - two raw resources to represent
error pags and a string resource for default text encoding.
The embedder should set up the IDs before starting to use Chromium.
Review URL: https://codereview.chromium.org/11145026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/common')
-rw-r--r-- | android_webview/common/aw_resource.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/android_webview/common/aw_resource.h b/android_webview/common/aw_resource.h new file mode 100644 index 0000000..1ed5e3a --- /dev/null +++ b/android_webview/common/aw_resource.h @@ -0,0 +1,22 @@ +// 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 ANDROID_WEBVIEW_COMMON_AW_RESOURCE_H_ +#define ANDROID_WEBVIEW_COMMON_AW_RESOURCE_H_ + +#include <string> + +// android_webview implements these with a JNI call to the +// AwResource Java class. +namespace android_webview { +namespace AwResource { + +std::string GetLoadErrorPageContent(); +std::string GetNoDomainPageContent(); +std::string GetDefaultTextEncoding(); + +} // namespace AwResource +} // namsespace android_webview + +#endif // ANDROID_WEBVIEW_COMMON_AW_RESOURCE_H_ |