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

Unified Diff: third_party/android_crazy_linker/src/src/crazy_linker_zip.h

Issue 958473003: Asynchronously pre-fault the native library pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace. Created 5 years, 10 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: third_party/android_crazy_linker/src/src/crazy_linker_zip.h
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_zip.h b/third_party/android_crazy_linker/src/src/crazy_linker_zip.h
index cee3efe770ae9797600b487d27ea186bdc27b8d3..b95edce24a27e3c80c244a1ae9ca5945a0dc6dc9 100644
--- a/third_party/android_crazy_linker/src/src/crazy_linker_zip.h
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_zip.h
@@ -9,6 +9,19 @@
namespace crazy {
+struct OffsetSize {
+ int offset;
+ int size;
+
+ OffsetSize(int offset, int size) : offset(offset), size(size) {}
+};
+
+
+// Find "filename" in the specified "zip_file" and return its (offset, size).
+// The offset is CRAZY_OFFSET_FAILED on error or if the file is compressed.
+OffsetSize FindStartOffsetAndLengthOfFileInZipFile(const char* zip_file,
+ const char* filename);
+
// Find "filename" in the specified "zip_file" and return the offset
// in the file of the start of the data for the file. Return
// CRAZY_OFFSET_FAILED on error or if the file is compressed. This routine

Powered by Google App Engine
This is Rietveld 408576698