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

Side by Side Diff: components/webcrypto/status.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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
« no previous file with comments | « components/webcrypto/status.h ('k') | components/webcrypto/test/aes_cbc_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11
12 namespace webcrypto { 10 namespace webcrypto {
13 11
14 bool Status::IsError() const { 12 bool Status::IsError() const {
15 return type_ == TYPE_ERROR; 13 return type_ == TYPE_ERROR;
16 } 14 }
17 15
18 bool Status::IsSuccess() const { 16 bool Status::IsSuccess() const {
19 return type_ == TYPE_SUCCESS; 17 return type_ == TYPE_SUCCESS;
20 } 18 }
21 19
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 const std::string& error_details_utf8) 355 const std::string& error_details_utf8)
358 : type_(TYPE_ERROR), 356 : type_(TYPE_ERROR),
359 error_type_(error_type), 357 error_type_(error_type),
360 error_details_(error_details_utf8) { 358 error_details_(error_details_utf8) {
361 } 359 }
362 360
363 Status::Status(Type type) : type_(type) { 361 Status::Status(Type type) : type_(type) {
364 } 362 }
365 363
366 } // namespace webcrypto 364 } // namespace webcrypto
367
368 } // namespace content
OLDNEW
« no previous file with comments | « components/webcrypto/status.h ('k') | components/webcrypto/test/aes_cbc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698