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" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 120 |
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 AppCacheExecutableHandlerInterfaces::Response::Response() : |
| 131 status_code(0) { |
| 132 } |
| 133 |
| 134 AppCacheExecutableHandlerInterfaces::Response::~Response() { |
| 135 } |
| 136 |
| 137 AppCacheExecutableHandlerInterfaces::Request::Request() : |
| 138 is_main_resource_load(false) { |
| 139 } |
| 140 |
| 141 AppCacheExecutableHandlerInterfaces::Request::~Request() { |
| 142 } |
| 143 |
130 } // namespace appcache | 144 } // namespace appcache |
OLD | NEW |