Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 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 "components/content_settings/core/common/embedder_variables.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace content_settings { | |
| 10 | |
| 11 // The component supports only one theme for simplicity. | |
|
Bernhard Bauer
2014/08/21 15:05:54
s/theme/scheme/?
vasilii
2014/08/22 13:02:45
Done.
| |
| 12 const char* non_port_non_domain_wildcard_scheme = NULL; | |
| 13 | |
| 14 void SetNonWildcardDomainNonPortScheme(const char* scheme) { | |
| 15 non_port_non_domain_wildcard_scheme = scheme; | |
| 16 } | |
| 17 | |
| 18 bool IsNonWildcardDomainNonPortScheme(const std::string& scheme) { | |
| 19 DCHECK(non_port_non_domain_wildcard_scheme); | |
| 20 return scheme == non_port_non_domain_wildcard_scheme; | |
| 21 } | |
| 22 | |
| 23 } // namespace content_settings | |
| OLD | NEW |