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/sync/notifier/chrome_invalidation_client.h" | 5 #include "chrome/browser/sync/notifier/chrome_invalidation_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/tracked_objects.h" | 12 #include "base/tracked_objects.h" |
13 #include "chrome/browser/sync/notifier/cache_invalidation_packet_handler.h" | 13 #include "chrome/browser/sync/notifier/cache_invalidation_packet_handler.h" |
14 #include "chrome/browser/sync/notifier/invalidation_util.h" | 14 #include "chrome/browser/sync/notifier/invalidation_util.h" |
15 #include "chrome/browser/sync/notifier/registration_manager.h" | 15 #include "chrome/browser/sync/notifier/registration_manager.h" |
16 #include "chrome/browser/sync/syncable/model_type.h" | |
17 #include "google/cacheinvalidation/include/invalidation-client-factory.h" | 16 #include "google/cacheinvalidation/include/invalidation-client-factory.h" |
18 #include "google/cacheinvalidation/include/invalidation-client.h" | 17 #include "google/cacheinvalidation/include/invalidation-client.h" |
19 #include "google/cacheinvalidation/include/types.h" | 18 #include "google/cacheinvalidation/include/types.h" |
20 #include "google/cacheinvalidation/v2/types.pb.h" | 19 #include "google/cacheinvalidation/v2/types.pb.h" |
| 20 #include "sync/syncable/model_type.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kApplicationName[] = "chrome-sync"; | 24 const char kApplicationName[] = "chrome-sync"; |
25 | 25 |
26 } // anonymous namespace | 26 } // anonymous namespace |
27 | 27 |
28 namespace sync_notifier { | 28 namespace sync_notifier { |
29 | 29 |
30 ChromeInvalidationClient::Listener::~Listener() {} | 30 ChromeInvalidationClient::Listener::~Listener() {} |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // TODO(ghc): handle the error. | 304 // TODO(ghc): handle the error. |
305 } | 305 } |
306 | 306 |
307 void ChromeInvalidationClient::WriteState(const std::string& state) { | 307 void ChromeInvalidationClient::WriteState(const std::string& state) { |
308 DCHECK(non_thread_safe_.CalledOnValidThread()); | 308 DCHECK(non_thread_safe_.CalledOnValidThread()); |
309 CHECK(state_writer_); | 309 CHECK(state_writer_); |
310 state_writer_->WriteState(state); | 310 state_writer_->WriteState(state); |
311 } | 311 } |
312 | 312 |
313 } // namespace sync_notifier | 313 } // namespace sync_notifier |
OLD | NEW |