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 #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 (that is, | |
| 15 // extensions::kExtensionScheme). | |
|
Bernhard Bauer
2014/08/18 15:55:13
It's a bit weird to assume there is only ever goin
vasilii
2014/08/20 08:44:06
We don't need this complexity now. The implementat
vabr (Chromium)
2014/08/20 09:52:22
I support the API accepting a single scheme as not
vasilii
2014/08/21 14:58:02
Done.
| |
| 16 // Should be called by the embedder before using ContentSettingsPattern. The | |
| 17 // caller is responsible for the lifetime of |scheme|. | |
| 18 void SetNonPortScheme(const char* scheme); | |
| 19 | |
| 20 // Compares |scheme| against embedder's extension scheme. | |
| 21 bool IsNonPortScheme(const std::string& scheme); | |
| 22 | |
| 23 } // namespace content_settings | |
| 24 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_EMBEDDER_VARIABLES_H_ | |
| OLD | NEW |