| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/webcrypto/status.h" | 5 #include "components/webcrypto/status.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace components { |
| 11 | 11 |
| 12 namespace webcrypto { | 12 namespace webcrypto { |
| 13 | 13 |
| 14 bool Status::IsError() const { | 14 bool Status::IsError() const { |
| 15 return type_ == TYPE_ERROR; | 15 return type_ == TYPE_ERROR; |
| 16 } | 16 } |
| 17 | 17 |
| 18 bool Status::IsSuccess() const { | 18 bool Status::IsSuccess() const { |
| 19 return type_ == TYPE_SUCCESS; | 19 return type_ == TYPE_SUCCESS; |
| 20 } | 20 } |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 : type_(TYPE_ERROR), | 358 : type_(TYPE_ERROR), |
| 359 error_type_(error_type), | 359 error_type_(error_type), |
| 360 error_details_(error_details_utf8) { | 360 error_details_(error_details_utf8) { |
| 361 } | 361 } |
| 362 | 362 |
| 363 Status::Status(Type type) : type_(type) { | 363 Status::Status(Type type) : type_(type) { |
| 364 } | 364 } |
| 365 | 365 |
| 366 } // namespace webcrypto | 366 } // namespace webcrypto |
| 367 | 367 |
| 368 } // namespace content | 368 } // namespace components |
| OLD | NEW |