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

Side by Side Diff: content/renderer/media/crypto/proxy_decryptor.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/media/crypto/proxy_decryptor.h" 5 #include "content/renderer/media/crypto/proxy_decryptor.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 return sessions_.begin()->first; 248 return sessions_.begin()->first;
249 249
250 return INVALID_REFERENCE_ID; 250 return INVALID_REFERENCE_ID;
251 } 251 }
252 252
253 const std::string& ProxyDecryptor::LookupSessionId(uint32 reference_id) { 253 const std::string& ProxyDecryptor::LookupSessionId(uint32 reference_id) {
254 DCHECK_NE(reference_id, INVALID_REFERENCE_ID); 254 DCHECK_NE(reference_id, INVALID_REFERENCE_ID);
255 255
256 // Session may not exist if error happens during GenerateKeyRequest(). 256 // Session may not exist if error happens during GenerateKeyRequest().
257 SessionIdMap::iterator it = sessions_.find(reference_id); 257 SessionIdMap::iterator it = sessions_.find(reference_id);
258 return (it != sessions_.end()) ? it->second : EmptyString(); 258 return (it != sessions_.end()) ? it->second : base::EmptyString();
259 } 259 }
260 260
261 } // namespace content 261 } // namespace content
OLDNEW
« no previous file with comments | « content/common/android/address_parser_unittest.cc ('k') | extensions/browser/file_highlighter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698