OLD | NEW |
---|---|
(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 | |
OLD | NEW |