OLD | NEW |
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 Loading... |
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 |
OLD | NEW |