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 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ | |
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/macros.h" | |
11 | |
12 namespace content_settings { | |
13 | |
14 // Sets the scheme that doesn't support domain wildcard and port. | |
15 // Needs to be called by the embedder before using ContentSettingsPattern. | |
16 // |scheme| can't be NULL, and the pointed string must remain alive until the | |
blundell
2014/08/26 09:16:57
Is there a reason not to have a global variable in
vasilii
2014/08/26 12:18:19
The reason for that is we dislike global objects w
Bernhard Bauer
2014/08/26 12:32:08
FWIW, you could still leak the string at shutdown
| |
17 // Chrome terminates. | |
18 void SetNonWildcardDomainNonPortScheme(const char* scheme); | |
19 | |
20 // Compares |scheme| against the scheme set by the embedder. | |
21 bool IsNonWildcardDomainNonPortScheme(const std::string& scheme); | |
blundell
2014/08/26 09:16:57
is this function used outside of ContentSettingsPa
vasilii
2014/08/26 12:18:18
In content_settings_pattern_parser.cc. I see that
blundell
2014/08/26 12:21:38
Hmm, is the usage in the latter two files the same
vasilii
2014/08/27 11:39:32
Removed the files.
| |
22 | |
23 } // namespace content_settings | |
24 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ | |
OLD | NEW |