From e8ca69c873f105a8c7778476e12f0a24ee3ba4d7 Mon Sep 17 00:00:00 2001 From: "sungmann.cho@navercorp.com" Date: Wed, 7 May 2014 15:31:19 +0000 Subject: Move some content url constants to /url. This CL moves the content::kHttpScheme and content::kHttpsScheme to /url. This is a follow up to https://codereview.chromium.org/25533005. BUG=306258 TEST=compile Review URL: https://codereview.chromium.org/254763005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268782 0039d316-1c4b-4281-b951-d872f2087c98 --- url/BUILD.gn | 2 ++ url/url_constants.cc | 12 ++++++++++++ url/url_constants.h | 17 +++++++++++++++++ url/url_srcs.gypi | 2 ++ 4 files changed, 33 insertions(+) create mode 100644 url/url_constants.cc create mode 100644 url/url_constants.h (limited to 'url') diff --git a/url/BUILD.gn b/url/BUILD.gn index faf8dd8..df7da69 100644 --- a/url/BUILD.gn +++ b/url/BUILD.gn @@ -46,6 +46,8 @@ component("url") { "url_canon_stdstring.cc", "url_canon_stdstring.h", "url_canon_stdurl.cc", + "url_constants.cc", + "url_constants.h", "url_export.h", "url_file.h", "url_parse_file.cc", diff --git a/url/url_constants.cc b/url/url_constants.cc new file mode 100644 index 0000000..7df30da --- /dev/null +++ b/url/url_constants.cc @@ -0,0 +1,12 @@ +// Copyright 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 "url/url_constants.h" + +namespace url { + +const char kHttpScheme[] = "http"; +const char kHttpsScheme[] = "https"; + +} // namespace url diff --git a/url/url_constants.h b/url/url_constants.h new file mode 100644 index 0000000..9d184d9 --- /dev/null +++ b/url/url_constants.h @@ -0,0 +1,17 @@ +// Copyright 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 URL_URL_CONSTANTS_H_ +#define URL_URL_CONSTANTS_H_ + +#include "url/url_export.h" + +namespace url { + +URL_EXPORT extern const char kHttpScheme[]; +URL_EXPORT extern const char kHttpsScheme[]; + +} // namespace url + +#endif // URL_URL_CONSTANTS_H_ diff --git a/url/url_srcs.gypi b/url/url_srcs.gypi index e8fa82e..61db15d 100644 --- a/url/url_srcs.gypi +++ b/url/url_srcs.gypi @@ -32,6 +32,8 @@ 'url_canon_relative.cc', 'url_canon_stdstring.cc', 'url_canon_stdurl.cc', + 'url_constants.cc', + 'url_constants.h', 'url_file.h', 'url_parse_file.cc', 'url_parse_internal.h', -- cgit v1.1