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 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler.h" | 5 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/string_split.h" | |
11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_split.h" |
12 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler_delegate.h" | 12 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati
on_handler_delegate.h" |
13 #include "chrome/browser/sync/invalidation_frontend.h" | 13 #include "chrome/browser/sync/invalidation_frontend.h" |
14 #include "chrome/common/extensions/extension.h" | 14 #include "chrome/common/extensions/extension.h" |
15 #include "google/cacheinvalidation/types.pb.h" | 15 #include "google/cacheinvalidation/types.pb.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const int kNumberOfSubchannels = 4; | 21 const int kNumberOfSubchannels = 4; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 for (std::set<std::string>::const_iterator it = | 133 for (std::set<std::string>::const_iterator it = |
134 registered_extensions_.begin(); it != registered_extensions_.end(); | 134 registered_extensions_.begin(); it != registered_extensions_.end(); |
135 ++it) { | 135 ++it) { |
136 const syncer::ObjectIdSet& object_ids = ExtensionIdToObjectIds(*it); | 136 const syncer::ObjectIdSet& object_ids = ExtensionIdToObjectIds(*it); |
137 ids.insert(object_ids.begin(), object_ids.end()); | 137 ids.insert(object_ids.begin(), object_ids.end()); |
138 } | 138 } |
139 service_->UpdateRegisteredInvalidationIds(this, ids); | 139 service_->UpdateRegisteredInvalidationIds(this, ids); |
140 } | 140 } |
141 | 141 |
142 } // namespace extensions | 142 } // namespace extensions |
OLD | NEW |