Chromium Code Reviews

Unified Diff: android_webview/common/aw_utils.h

Issue 10920033: Implement Android WebView BlockNetworkImages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update ContentSetting to new locking semantics. Add a test that does not require http server. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: android_webview/common/aw_utils.h
diff --git a/android_webview/common/aw_utils.h b/android_webview/common/aw_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd5ab4b579880052df243c0da27c9e13d44dc979
--- /dev/null
+++ b/android_webview/common/aw_utils.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.
+
+#ifndef ANDROID_WEBVIEW_COMMON_AW_UTILS_H_
+#define ANDROID_WEBVIEW_COMMON_AW_UTILS_H_
+
+class GURL;
+
+namespace android_webview {
+
+// Check if scheme of url is in a whitelist of local schemes that are allowed
+// when network loads are blocked. Used in BlockNetworkImage and
+// BlockNetworkLoads.
+bool isLocalScheme(const GURL& url);
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_COMMON_AW_UTILS_H_

Powered by Google App Engine