diff options
author | sungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-07 15:31:19 +0000 |
---|---|---|
committer | sungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-07 15:31:19 +0000 |
commit | e8ca69c873f105a8c7778476e12f0a24ee3ba4d7 (patch) | |
tree | 00c728d6dde60d70e4b63aaadf3b6763b3d0e6ec /url | |
parent | af45603ceec5270899b4f7518a219715c58fbcd7 (diff) | |
download | chromium_src-e8ca69c873f105a8c7778476e12f0a24ee3ba4d7.zip chromium_src-e8ca69c873f105a8c7778476e12f0a24ee3ba4d7.tar.gz chromium_src-e8ca69c873f105a8c7778476e12f0a24ee3ba4d7.tar.bz2 |
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
Diffstat (limited to 'url')
-rw-r--r-- | url/BUILD.gn | 2 | ||||
-rw-r--r-- | url/url_constants.cc | 12 | ||||
-rw-r--r-- | url/url_constants.h | 17 | ||||
-rw-r--r-- | url/url_srcs.gypi | 2 |
4 files changed, 33 insertions, 0 deletions
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', |