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

Unified Diff: ui/base/resource/resource_bundle_android.h

Issue 1187433006: Load language .pak files directly from the apk when using splits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locale-res-or-file
Patch Set: was totally broken. Created 5 years, 6 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle_android.h
diff --git a/ui/base/resource/resource_bundle_android.h b/ui/base/resource/resource_bundle_android.h
index b9c704e2b3314b5a405b5c0655fc9cfed076a1ab..fa03ea9518b892a5a591c543e95c54cac0ce0120 100644
--- a/ui/base/resource/resource_bundle_android.h
+++ b/ui/base/resource/resource_bundle_android.h
@@ -21,14 +21,21 @@ UI_BASE_EXPORT void LoadMainAndroidPackFile();
UI_BASE_EXPORT int GetMainAndroidPackFd(
base::MemoryMappedFile::Region* out_region);
-// Returns the file descriptor and region for chrome_100_percent.pak
+// Returns the file descriptor and region for chrome_100_percent.pak.
UI_BASE_EXPORT int GetCommonResourcesPackFd(
base::MemoryMappedFile::Region* out_region);
+// Returns the file descriptor and region for the locale .pak file.
+UI_BASE_EXPORT int GetLocalePackFd(
+ base::MemoryMappedFile::Region* out_region);
+
// Tell ResourceBundle to locate locale pak files via
// GetPathForAndroidLocalePakWithinApk rather than looking for them on disk.
UI_BASE_EXPORT void SetLocalePaksStoredInApk(bool value);
+// Returns whether ResourceBundle will look for locale paks within the apk.
+UI_BASE_EXPORT bool GetLocalePaksStoredInApk();
sadrul 2015/06/23 08:34:06 This doesn't seem to be actually used?
agrieve 2015/06/23 15:33:57 Good eye. Deleted.
+
// Returns the path within the apk for the given locale's .pak file, or an
// empty string if it doesn't exist.
// Only locale paks for the active Android language can be retrieved.
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/resource/resource_bundle_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698