Chromium Code Reviews| 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/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" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 is_intercept(false), | 42 is_intercept(false), |
| 43 is_fallback(false), | 43 is_fallback(false), |
| 44 is_foreign(false), | 44 is_foreign(false), |
| 45 is_explicit(false), | 45 is_explicit(false), |
| 46 response_id(kNoResponseId) { | 46 response_id(kNoResponseId) { |
| 47 } | 47 } |
| 48 | 48 |
| 49 AppCacheResourceInfo::~AppCacheResourceInfo() { | 49 AppCacheResourceInfo::~AppCacheResourceInfo() { |
| 50 } | 50 } |
| 51 | 51 |
| 52 ErrorDetails::ErrorDetails() | |
| 53 : message(), | |
| 54 reason(UNKNOWN_ERROR), | |
| 55 url(), | |
| 56 status(0), | |
| 57 is_cross_origin(false) {} | |
| 58 | |
| 59 ErrorDetails::ErrorDetails(std::string in_message, | |
| 60 ErrorReason in_reason, | |
| 61 GURL in_url, | |
| 62 int in_status, | |
| 63 bool in_is_cross_origin) | |
|
michaeln
2014/03/27 01:05:37
nit: indent looks funky, maybe back the arglist up
jsbell
2014/03/27 19:23:23
Done. I blame clang format.
| |
| 64 : message(in_message), | |
| 65 reason(in_reason), | |
| 66 url(in_url), | |
| 67 status(in_status), | |
| 68 is_cross_origin(in_is_cross_origin) {} | |
| 69 | |
| 70 ErrorDetails::~ErrorDetails() {} | |
| 71 | |
| 52 Namespace::Namespace() | 72 Namespace::Namespace() |
| 53 : type(FALLBACK_NAMESPACE), | 73 : type(FALLBACK_NAMESPACE), |
| 54 is_pattern(false), | 74 is_pattern(false), |
| 55 is_executable(false) { | 75 is_executable(false) { |
| 56 } | 76 } |
| 57 | 77 |
| 58 Namespace::Namespace( | 78 Namespace::Namespace( |
| 59 NamespaceType type, const GURL& url, const GURL& target, bool is_pattern) | 79 NamespaceType type, const GURL& url, const GURL& target, bool is_pattern) |
| 60 : type(type), | 80 : type(type), |
| 61 namespace_url(url), | 81 namespace_url(url), |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 bool IsMethodSupported(const std::string& method) { | 128 bool IsMethodSupported(const std::string& method) { |
| 109 return (method == kHttpGETMethod) || (method == kHttpHEADMethod); | 129 return (method == kHttpGETMethod) || (method == kHttpHEADMethod); |
| 110 } | 130 } |
| 111 | 131 |
| 112 bool IsSchemeAndMethodSupported(const net::URLRequest* request) { | 132 bool IsSchemeAndMethodSupported(const net::URLRequest* request) { |
| 113 return IsSchemeSupported(request->url()) && | 133 return IsSchemeSupported(request->url()) && |
| 114 IsMethodSupported(request->method()); | 134 IsMethodSupported(request->method()); |
| 115 } | 135 } |
| 116 | 136 |
| 117 } // namespace appcache | 137 } // namespace appcache |
| OLD | NEW |