OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/extensions/api/identity/identity_mint_queue.h" | 5 #include "chrome/browser/extensions/api/identity/identity_mint_queue.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/trace_event/trace_event.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 IdentityMintRequestQueue::IdentityMintRequestQueue() { | 13 IdentityMintRequestQueue::IdentityMintRequestQueue() { |
14 } | 14 } |
15 | 15 |
16 IdentityMintRequestQueue::~IdentityMintRequestQueue() { | 16 IdentityMintRequestQueue::~IdentityMintRequestQueue() { |
17 for (RequestQueueMap::const_iterator | 17 for (RequestQueueMap::const_iterator |
18 it = interactive_request_queue_map_.begin(); | 18 it = interactive_request_queue_map_.begin(); |
19 it != interactive_request_queue_map_.end(); | 19 it != interactive_request_queue_map_.end(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 void IdentityMintRequestQueue::RunRequest( | 87 void IdentityMintRequestQueue::RunRequest( |
88 IdentityMintRequestQueue::MintType type, | 88 IdentityMintRequestQueue::MintType type, |
89 RequestQueue& request_queue) { | 89 RequestQueue& request_queue) { |
90 TRACE_EVENT_ASYNC_STEP_INTO0( | 90 TRACE_EVENT_ASYNC_STEP_INTO0( |
91 "identity", "IdentityMintRequestQueue", request_queue.front(), "RUNNING"); | 91 "identity", "IdentityMintRequestQueue", request_queue.front(), "RUNNING"); |
92 request_queue.front()->StartMintToken(type); | 92 request_queue.front()->StartMintToken(type); |
93 } | 93 } |
94 | 94 |
95 } // namespace extensions | 95 } // namespace extensions |
OLD | NEW |