OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015 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 "chrome/common/origin_util.h" |
| 6 |
| 7 #include "content/public/common/origin_util.h" |
| 8 #include "extensions/common/constants.h" |
| 9 #include "url/gurl.h" |
| 10 |
| 11 bool IsOriginSecure(const GURL& url) { |
| 12 if (content::IsOriginSecure(url)) |
| 13 return true; |
| 14 |
| 15 std::string scheme = url.scheme(); |
| 16 if (scheme == extensions::kExtensionScheme || |
| 17 scheme == extensions::kExtensionResourceScheme) { |
| 18 return true; |
| 19 } |
| 20 |
| 21 return false; |
| 22 } |
OLD | NEW |