OLD | NEW |
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 #ifndef EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ |
6 #define EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <algorithm> | 10 #include <algorithm> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
15 #include "extensions/browser/updater/request_queue.h" | 17 #include "extensions/browser/updater/request_queue.h" |
16 | 18 |
17 namespace extensions { | 19 namespace extensions { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 147 |
146 // static | 148 // static |
147 template <typename T> | 149 template <typename T> |
148 bool RequestQueue<T>::CompareRequests(const Request& a, const Request& b) { | 150 bool RequestQueue<T>::CompareRequests(const Request& a, const Request& b) { |
149 return a.backoff_entry->GetReleaseTime() > b.backoff_entry->GetReleaseTime(); | 151 return a.backoff_entry->GetReleaseTime() > b.backoff_entry->GetReleaseTime(); |
150 } | 152 } |
151 | 153 |
152 } // namespace extensions | 154 } // namespace extensions |
153 | 155 |
154 #endif // EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ | 156 #endif // EXTENSIONS_BROWSER_UPDATER_REQUEST_QUEUE_IMPL_H_ |
OLD | NEW |