1 // Copyright 2013 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.
5 #include "content/public/common/url_utils.h"
7 #include "build/build_config.h"
8 #include "content/common/savable_url_schemes.h"
9 #include "content/public/common/url_constants.h"
10 #include "googleurl/src/gurl.h"
14 const char* const* GetSavableSchemes() {
15 return GetSavableSchemesInternal();
18 bool HasWebUIScheme(const GURL
& url
) {
21 url
.SchemeIs(chrome::kChromeDevToolsScheme
) ||
22 url
.SchemeIs(chrome::kChromeInternalScheme
) ||
24 url
.SchemeIs(chrome::kChromeUIScheme
);
27 bool IsSavableURL(const GURL
& url
) {
28 for (int i
= 0; GetSavableSchemes()[i
] != NULL
; ++i
) {
29 if (url
.SchemeIs(GetSavableSchemes()[i
]))
35 } // namespace content