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

Side by Side Diff: webrtc/rtc_base/base64.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 5 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 | « webrtc/rtc_base/atomicops_unittest.cc ('k') | webrtc/rtc_base/base64.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 1
2 //********************************************************************* 2 //*********************************************************************
3 //* C_Base64 - a simple base64 encoder and decoder. 3 //* C_Base64 - a simple base64 encoder and decoder.
4 //* 4 //*
5 //* Copyright (c) 1999, Bob Withers - bwit@pobox.com 5 //* Copyright (c) 1999, Bob Withers - bwit@pobox.com
6 //* 6 //*
7 //* This code may be freely used for any purpose, either personal 7 //* This code may be freely used for any purpose, either personal
8 //* or commercial, provided the authors copyright notice remains 8 //* or commercial, provided the authors copyright notice remains
9 //* intact. 9 //* intact.
10 //********************************************************************* 10 //*********************************************************************
11 11
12 #ifndef WEBRTC_BASE_BASE64_H__ 12 #ifndef WEBRTC_RTC_BASE_BASE64_H_
13 #define WEBRTC_BASE_BASE64_H__ 13 #define WEBRTC_RTC_BASE_BASE64_H_
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 namespace rtc { 18 namespace rtc {
19 19
20 class Base64 { 20 class Base64 {
21 public: 21 public:
22 enum DecodeOption { 22 enum DecodeOption {
23 DO_PARSE_STRICT = 1, // Parse only base64 characters 23 DO_PARSE_STRICT = 1, // Parse only base64 characters
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 template <typename T> 113 template <typename T>
114 static bool DecodeFromArrayTemplate(const char* data, 114 static bool DecodeFromArrayTemplate(const char* data,
115 size_t len, 115 size_t len,
116 DecodeFlags flags, 116 DecodeFlags flags,
117 T* result, 117 T* result,
118 size_t* data_used); 118 size_t* data_used);
119 }; 119 };
120 120
121 } // namespace rtc 121 } // namespace rtc
122 122
123 #endif // WEBRTC_BASE_BASE64_H__ 123 #endif // WEBRTC_RTC_BASE_BASE64_H_
OLDNEW
« no previous file with comments | « webrtc/rtc_base/atomicops_unittest.cc ('k') | webrtc/rtc_base/base64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698