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

Side by Side Diff: components/sync/core_impl/debug_info_event_listener.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 SYNC_INTERNAL_API_DEBUG_INFO_EVENT_LISTENER_H_ 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_DEBUG_INFO_EVENT_LISTENER_H_
6 #define SYNC_INTERNAL_API_DEBUG_INFO_EVENT_LISTENER_H_ 6 #define COMPONENTS_SYNC_CORE_IMPL_DEBUG_INFO_EVENT_LISTENER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "sync/base/sync_export.h" 15 #include "components/sync/base/model_type.h"
16 #include "sync/internal_api/public/base/model_type.h" 16 #include "components/sync/base/sync_export.h"
17 #include "sync/internal_api/public/data_type_debug_info_listener.h" 17 #include "components/sync/base/weak_handle.h"
18 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 18 #include "components/sync/core/data_type_debug_info_listener.h"
19 #include "sync/internal_api/public/sync_encryption_handler.h" 19 #include "components/sync/core/sync_encryption_handler.h"
20 #include "sync/internal_api/public/sync_manager.h" 20 #include "components/sync/core/sync_manager.h"
21 #include "sync/internal_api/public/util/weak_handle.h" 21 #include "components/sync/js/js_backend.h"
22 #include "sync/js/js_backend.h" 22 #include "components/sync/protocol/sync.pb.h"
23 #include "sync/protocol/sync.pb.h" 23 #include "components/sync/sessions/sync_session_snapshot.h"
24 #include "sync/sessions/debug_info_getter.h" 24 #include "components/sync/sessions_impl/debug_info_getter.h"
25 25
26 namespace syncer { 26 namespace syncer {
27 27
28 // In order to track datatype association results, we need at least as many 28 // In order to track datatype association results, we need at least as many
29 // entries as datatypes. Reserve additional space for other kinds of events that 29 // entries as datatypes. Reserve additional space for other kinds of events that
30 // are likely to happen during first sync or startup. 30 // are likely to happen during first sync or startup.
31 const unsigned int kMaxEntries = MODEL_TYPE_COUNT + 10; 31 const unsigned int kMaxEntries = MODEL_TYPE_COUNT + 10;
32 32
33 // Listens to events and records them in a queue. And passes the events to 33 // Listens to events and records them in a queue. And passes the events to
34 // syncer when requested. 34 // syncer when requested.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 base::ThreadChecker thread_checker_; 113 base::ThreadChecker thread_checker_;
114 114
115 base::WeakPtrFactory<DebugInfoEventListener> weak_ptr_factory_; 115 base::WeakPtrFactory<DebugInfoEventListener> weak_ptr_factory_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(DebugInfoEventListener); 117 DISALLOW_COPY_AND_ASSIGN(DebugInfoEventListener);
118 }; 118 };
119 119
120 } // namespace syncer 120 } // namespace syncer
121 121
122 #endif // SYNC_INTERNAL_API_DEBUG_INFO_EVENT_LISTENER_H_ 122 #endif // COMPONENTS_SYNC_CORE_IMPL_DEBUG_INFO_EVENT_LISTENER_H_
OLDNEW
« no previous file with comments | « components/sync/core_impl/change_reorder_buffer.cc ('k') | components/sync/core_impl/debug_info_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698