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

Unified Diff: components/proximity_auth/base64url.h

Issue 1063323002: Move base64url.* to CryptAuth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cryptauth_refactor
Patch Set: rename path in chrome/browser/chromeos 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/proximity_auth/BUILD.gn ('k') | components/proximity_auth/base64url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/base64url.h
diff --git a/components/proximity_auth/base64url.h b/components/proximity_auth/base64url.h
deleted file mode 100644
index 63d4990d2dcd19f0979eb04f770464539dc668fe..0000000000000000000000000000000000000000
--- a/components/proximity_auth/base64url.h
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_PROXIMITY_BASE64URL_H
-#define COMPONENTS_PROXIMITY_BASE64URL_H
-
-#include <string>
-
-namespace proximity_auth {
-
-// An implmentation of the base64url encoding. Escapes the unsafe '+' and '/'
-// characters with the url-safe alternatives '-' and '_', respectively. For more
-// info, see the section on "Base 64 Encoding with URL and Filename Safe
-// Alphabet" in http://www.ietf.org/rfc/rfc4648.txt
-// NOTE: Unlike many common web-safe encodings, this function does not escape
-// the '=' character. This is to match the expectations set by Android.
-// TODO(isherman): There are several (semantically slightly different)
-// implementations of this within the Chromium codebase. Try to unify them.
-void Base64UrlEncode(const std::string& decoded_input,
- std::string* encoded_output);
-
-// The inverse operation for the base64url encoding above.
-bool Base64UrlDecode(const std::string& encoded_input,
- std::string* decoded_output);
-
-} // namespace proximity_auth
-
-#endif // COMPONENTS_PROXIMITY_BASE64URL_H
« no previous file with comments | « components/proximity_auth/BUILD.gn ('k') | components/proximity_auth/base64url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698