Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2745)

Unified Diff: components/content_settings/core/common/embedder_variables.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @vabr's comments addressed Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698