| OLD | NEW |
| 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 "webkit/common/appcache/appcache_interfaces.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "googleurl/src/gurl.h" | |
| 12 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
| 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 base::LazyInstance<std::set<std::string> >::Leaky g_supported_schemes = | 16 base::LazyInstance<std::set<std::string> >::Leaky g_supported_schemes = |
| 17 LAZY_INSTANCE_INITIALIZER; | 17 LAZY_INSTANCE_INITIALIZER; |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| 21 namespace appcache { | 21 namespace appcache { |
| 22 | 22 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool IsMethodSupported(const std::string& method) { | 121 bool IsMethodSupported(const std::string& method) { |
| 122 return (method == kHttpGETMethod) || (method == kHttpHEADMethod); | 122 return (method == kHttpGETMethod) || (method == kHttpHEADMethod); |
| 123 } | 123 } |
| 124 | 124 |
| 125 bool IsSchemeAndMethodSupported(const net::URLRequest* request) { | 125 bool IsSchemeAndMethodSupported(const net::URLRequest* request) { |
| 126 return IsSchemeSupported(request->url()) && | 126 return IsSchemeSupported(request->url()) && |
| 127 IsMethodSupported(request->method()); | 127 IsMethodSupported(request->method()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace appcache | 130 } // namespace appcache |
| OLD | NEW |