Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: components/invalidation/impl/mock_ack_handler.cc

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/invalidation/mock_ack_handler.h" 5 #include "components/invalidation/impl/mock_ack_handler.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "components/invalidation/ack_handle.h" 8 #include "components/invalidation/public/ack_handle.h"
9 #include "components/invalidation/invalidation.h" 9 #include "components/invalidation/public/invalidation.h"
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 namespace { 13 namespace {
14 14
15 struct AckHandleMatcher { 15 struct AckHandleMatcher {
16 AckHandleMatcher(const AckHandle& handle); 16 AckHandleMatcher(const AckHandle& handle);
17 bool operator()(const syncer::Invalidation& invalidation) const; 17 bool operator()(const syncer::Invalidation& invalidation) const;
18 18
19 syncer::AckHandle handle_; 19 syncer::AckHandle handle_;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 matcher); 111 matcher);
112 if (it != unacked_invalidations_.end()) { 112 if (it != unacked_invalidations_.end()) {
113 dropped_invalidations_.push_back(*it); 113 dropped_invalidations_.push_back(*it);
114 unacked_invalidations_.erase(it); 114 unacked_invalidations_.erase(it);
115 } 115 }
116 unrecovered_drop_events_.erase(id); 116 unrecovered_drop_events_.erase(id);
117 unrecovered_drop_events_.insert(std::make_pair(id, handle)); 117 unrecovered_drop_events_.insert(std::make_pair(id, handle));
118 } 118 }
119 119
120 } // namespace syncer 120 } // namespace syncer
OLDNEW
« no previous file with comments | « components/invalidation/impl/mock_ack_handler.h ('k') | components/invalidation/impl/non_blocking_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698