Chromium Code Reviews| Index: components/content_settings/core/common/embedder_variables.h |
| diff --git a/components/content_settings/core/common/embedder_variables.h b/components/content_settings/core/common/embedder_variables.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8dc56e5eac6a9141aa476fc0264f264a825c0771 |
| --- /dev/null |
| +++ b/components/content_settings/core/common/embedder_variables.h |
| @@ -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. |
| + |
| +#ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ |
| +#define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| + |
| +namespace content_settings { |
| + |
| +// Sets the scheme that doesn't support domain wildcard and port. |
| +// Needs to be called by the embedder before using ContentSettingsPattern. |
| +// |scheme| can't be NULL. The caller is responsible for its lifetime. |
|
vabr (Chromium)
2014/08/21 15:31:41
nit: Please join the last two sentences into:
"|sc
vasilii
2014/08/22 13:02:45
Done.
|
| +void SetNonWildcardDomainNonPortScheme(const char* scheme); |
| + |
| +// Compares |scheme| against the scheme set by the embedder. |
| +bool IsNonWildcardDomainNonPortScheme(const std::string& scheme); |
| + |
| +} // namespace content_settings |
| +#endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ |