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

Unified Diff: android_webview/native/aw_assets.h

Issue 957423002: Revert of Revert of Add AwAssets into android_webview/native/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/native/aw_assets.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_assets.h
diff --git a/android_webview/native/aw_assets.h b/android_webview/native/aw_assets.h
deleted file mode 100644
index 16fcafb4c633d3b4af960fc4e005a42b09e7bc6c..0000000000000000000000000000000000000000
--- a/android_webview/native/aw_assets.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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_NATIVE_AW_ASSETS_H_
-#define ANDROID_WEBVIEW_NATIVE_AW_ASSETS_H_
-
-#include <string>
-
-#include "base/android/jni_android.h"
-#include "base/posix/global_descriptors.h"
-
-namespace android_webview {
-namespace AwAssets {
-
-// Called by native to retrieve an asset (e.g. a .pak file) from the apk.
-// Returns: true in case of success, false otherwise.
-// Output arguments:
-// - |fd|: file descriptor to the apk. The caller takes the ownership.
-// - |offset|: offset in bytes from the start of the file
-// - |size|: size in bytes of the asset / resource.
-bool OpenAsset(const std::string& filename,
- int* fd,
- int64* offset,
- int64* size);
-
-bool RegisterAssetWithGlobalDescriptors(base::GlobalDescriptors::Key key,
- const std::string& asset_filename);
-
-} // namespace AwAssets
-
-bool RegisterAwAssets(JNIEnv* env);
-
-} // namsespace android_webview
-
-#endif // ANDROID_WEBVIEW_NATIVE_AW_ASSETS_H_
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/native/aw_assets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698