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

Unified Diff: content/common/appcache_interfaces.cc

Issue 874073002: content: Change appcache_interfaces.* to use contants from url/ component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « content/common/appcache_interfaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/appcache_interfaces.cc
diff --git a/content/common/appcache_interfaces.cc b/content/common/appcache_interfaces.cc
index f9f9a05b3a78de163b4696a116d349c2ce32a97f..7f3f547139d920cedbc738c1999d764ba5cbe6c6 100644
--- a/content/common/appcache_interfaces.cc
+++ b/content/common/appcache_interfaces.cc
@@ -7,14 +7,13 @@
#include <set>
#include "base/strings/string_util.h"
+#include "content/public/common/url_constants.h"
#include "net/url_request/url_request.h"
#include "url/gurl.h"
+#include "url/url_constants.h"
namespace content {
-const char kHttpScheme[] = "http";
-const char kHttpsScheme[] = "https";
-const char kDevToolsScheme[] = "chrome-devtools";
const char kHttpGETMethod[] = "GET";
const char kHttpHEADMethod[] = "HEAD";
@@ -112,8 +111,9 @@ bool AppCacheNamespace::IsMatch(const GURL& url) const {
}
bool IsSchemeSupportedForAppCache(const GURL& url) {
- bool supported = url.SchemeIs(kHttpScheme) || url.SchemeIs(kHttpsScheme) ||
- url.SchemeIs(kDevToolsScheme);
+ bool supported = url.SchemeIs(url::kHttpScheme) ||
+ url.SchemeIs(url::kHttpsScheme) ||
+ url.SchemeIs(kChromeDevToolsScheme);
#ifndef NDEBUG
// TODO(michaeln): It would be really nice if this could optionally work for
« no previous file with comments | « content/common/appcache_interfaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698