OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/gcm_driver/crypto/gcm_key_store.h" | 5 #include "components/gcm_driver/crypto/gcm_key_store.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
| 15 #include "base/sequenced_task_runner.h" |
15 #include "components/gcm_driver/crypto/p256_key_util.h" | 16 #include "components/gcm_driver/crypto/p256_key_util.h" |
16 #include "components/leveldb_proto/proto_database_impl.h" | 17 #include "components/leveldb_proto/proto_database_impl.h" |
17 #include "crypto/random.h" | 18 #include "crypto/random.h" |
18 | 19 |
19 namespace gcm { | 20 namespace gcm { |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
23 // Statistics are logged to UMA with this string as part of histogram name. They | 24 // Statistics are logged to UMA with this string as part of histogram name. They |
24 // can all be found under LevelDB.*.GCMKeyStore. Changing this needs to | 25 // can all be found under LevelDB.*.GCMKeyStore. Changing this needs to |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 key_data_[entry.app_id()][authorized_entity] = {entry.keys(0), | 322 key_data_[entry.app_id()][authorized_entity] = {entry.keys(0), |
322 entry.auth_secret()}; | 323 entry.auth_secret()}; |
323 } | 324 } |
324 | 325 |
325 state_ = State::INITIALIZED; | 326 state_ = State::INITIALIZED; |
326 | 327 |
327 delayed_task_controller_.SetReady(); | 328 delayed_task_controller_.SetReady(); |
328 } | 329 } |
329 | 330 |
330 } // namespace gcm | 331 } // namespace gcm |
OLD | NEW |