Chromium Code Reviews| Index: components/content_settings/core/common/embedder_variables.cc |
| diff --git a/components/content_settings/core/common/embedder_variables.cc b/components/content_settings/core/common/embedder_variables.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da7258e98b4bd13e76f79fb32d7b302446106557 |
| --- /dev/null |
| +++ b/components/content_settings/core/common/embedder_variables.cc |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "components/content_settings/core/common/embedder_variables.h" |
| + |
| +#include "base/logging.h" |
| + |
| +namespace content_settings { |
| + |
| +// 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.
|
| +const char* non_port_non_domain_wildcard_scheme = NULL; |
| + |
| +void SetNonWildcardDomainNonPortScheme(const char* scheme) { |
| + non_port_non_domain_wildcard_scheme = scheme; |
| +} |
| + |
| +bool IsNonWildcardDomainNonPortScheme(const std::string& scheme) { |
| + DCHECK(non_port_non_domain_wildcard_scheme); |
| + return scheme == non_port_non_domain_wildcard_scheme; |
| +} |
| + |
| +} // namespace content_settings |