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

Side by Side Diff: android_webview/common/aw_utils.cc

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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "android_webview/common/aw_utils.h"
6
7 #include "content/public/common/url_constants.h"
8 #include "googleurl/src/gurl.h"
9
10 namespace android_webview {
11
12 bool isLocalScheme(const GURL& url) {
mnaganov (inactive) 2012/09/25 09:55:53 I think this may not work in case of GMail, becaus
boliu 2012/09/25 16:55:12 I thought I could reuse this for BlockNetworkLoads
13 return url.SchemeIs(chrome::kFileScheme) ||
14 url.SchemeIs(chrome::kDataScheme) ||
15 url.SchemeIs(chrome::kContentScheme);
16 }
17
18 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698