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

Side by Side Diff: content/common/appcache_interfaces.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/common/appcache/appcache_interfaces.h" 5 #include "content/public/common/appcache_interfaces.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace appcache { 13 namespace content {
14 14
15 const char kHttpScheme[] = "http"; 15 const char kHttpScheme[] = "http";
16 const char kHttpsScheme[] = "https"; 16 const char kHttpsScheme[] = "https";
17 const char kDevToolsScheme[] = "chrome-devtools"; 17 const char kDevToolsScheme[] = "chrome-devtools";
18 const char kHttpGETMethod[] = "GET"; 18 const char kHttpGETMethod[] = "GET";
19 const char kHttpHEADMethod[] = "HEAD"; 19 const char kHttpHEADMethod[] = "HEAD";
20 20
21 const char kEnableExecutableHandlers[] = "enable-appcache-executable-handlers"; 21 const char kEnableExecutableHandlers[] = "enable-appcache-executable-handlers";
22 22
23 const base::FilePath::CharType kAppCacheDatabaseName[] = 23 const base::FilePath::CharType kAppCacheDatabaseName[] =
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 bool IsMethodSupported(const std::string& method) { 130 bool IsMethodSupported(const std::string& method) {
131 return (method == kHttpGETMethod) || (method == kHttpHEADMethod); 131 return (method == kHttpGETMethod) || (method == kHttpHEADMethod);
132 } 132 }
133 133
134 bool IsSchemeAndMethodSupported(const net::URLRequest* request) { 134 bool IsSchemeAndMethodSupported(const net::URLRequest* request) {
135 return IsSchemeSupported(request->url()) && 135 return IsSchemeSupported(request->url()) &&
136 IsMethodSupported(request->method()); 136 IsMethodSupported(request->method());
137 } 137 }
138 138
139 } // namespace appcache 139 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698