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

Side by Side Diff: net/cert/crl_set.cc

Issue 15662008: Make net and ipc explicitly use the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/base/net_util.cc ('k') | net/disk_cache/mem_entry_impl.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 (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 "base/base64.h" 5 #include "base/base64.h"
6 #include "base/format_macros.h" 6 #include "base/format_macros.h"
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return false; 171 return false;
172 std::string serial(data->data(), serial_length); 172 std::string serial(data->data(), serial_length);
173 data->remove_prefix(serial_length); 173 data->remove_prefix(serial_length);
174 out_serials->push_back(serial); 174 out_serials->push_back(serial);
175 } 175 }
176 176
177 return true; 177 return true;
178 } 178 }
179 179
180 bool CRLSet::CopyBlockedSPKIsFromHeader(base::DictionaryValue* header_dict) { 180 bool CRLSet::CopyBlockedSPKIsFromHeader(base::DictionaryValue* header_dict) {
181 ListValue* blocked_spkis_list = NULL; 181 base::ListValue* blocked_spkis_list = NULL;
182 if (!header_dict->GetList("BlockedSPKIs", &blocked_spkis_list)) { 182 if (!header_dict->GetList("BlockedSPKIs", &blocked_spkis_list)) {
183 // BlockedSPKIs is optional, so it's fine if we don't find it. 183 // BlockedSPKIs is optional, so it's fine if we don't find it.
184 return true; 184 return true;
185 } 185 }
186 186
187 blocked_spkis_.clear(); 187 blocked_spkis_.clear();
188 188
189 for (size_t i = 0; i < blocked_spkis_list->GetSize(); ++i) { 189 for (size_t i = 0; i < blocked_spkis_list->GetSize(); ++i) {
190 std::string spki_sha256_base64, spki_sha256; 190 std::string spki_sha256_base64, spki_sha256;
191 if (!blocked_spkis_list->GetString(i, &spki_sha256_base64)) 191 if (!blocked_spkis_list->GetString(i, &spki_sha256_base64))
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 return new CRLSet; 584 return new CRLSet;
585 } 585 }
586 586
587 CRLSet* CRLSet::ExpiredCRLSetForTesting() { 587 CRLSet* CRLSet::ExpiredCRLSetForTesting() {
588 CRLSet* crl_set = new CRLSet; 588 CRLSet* crl_set = new CRLSet;
589 crl_set->not_after_ = 1; 589 crl_set->not_after_ = 1;
590 return crl_set; 590 return crl_set;
591 } 591 }
592 592
593 } // namespace net 593 } // namespace net
OLDNEW
« no previous file with comments | « net/base/net_util.cc ('k') | net/disk_cache/mem_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698