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

Side by Side Diff: components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 // the required information on demand. 35 // the required information on demand.
36 class DirectoryTypeDebugInfoEmitter { 36 class DirectoryTypeDebugInfoEmitter {
37 public: 37 public:
38 // Standard constructor for non-tests. 38 // Standard constructor for non-tests.
39 // 39 //
40 // The |directory| and |observers| arguments are not owned. Both may be 40 // The |directory| and |observers| arguments are not owned. Both may be
41 // modified outside of this object and both are expected to outlive this 41 // modified outside of this object and both are expected to outlive this
42 // object. 42 // object.
43 DirectoryTypeDebugInfoEmitter( 43 DirectoryTypeDebugInfoEmitter(
44 syncable::Directory* directory, 44 syncable::Directory* directory,
45 ModelType type, 45 syncer::ModelType type,
46 base::ObserverList<TypeDebugInfoObserver>* observers); 46 base::ObserverList<TypeDebugInfoObserver>* observers);
47 47
48 // A simple constructor for tests. Should not be used in real code. 48 // A simple constructor for tests. Should not be used in real code.
49 DirectoryTypeDebugInfoEmitter( 49 DirectoryTypeDebugInfoEmitter(
50 ModelType type, 50 ModelType type,
51 base::ObserverList<TypeDebugInfoObserver>* observers); 51 base::ObserverList<TypeDebugInfoObserver>* observers);
52 52
53 virtual ~DirectoryTypeDebugInfoEmitter(); 53 virtual ~DirectoryTypeDebugInfoEmitter();
54 54
55 // Returns a ListValue representation of all known nodes of this type. 55 // Returns a ListValue representation of all known nodes of this type.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // share one observer list that is provided by their owner and which is 89 // share one observer list that is provided by their owner and which is
90 // guaranteed to outlive them. 90 // guaranteed to outlive them.
91 base::ObserverList<TypeDebugInfoObserver>* type_debug_info_observers_; 91 base::ObserverList<TypeDebugInfoObserver>* type_debug_info_observers_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(DirectoryTypeDebugInfoEmitter); 93 DISALLOW_COPY_AND_ASSIGN(DirectoryTypeDebugInfoEmitter);
94 }; 94 };
95 95
96 } // namespace syncer 96 } // namespace syncer
97 97
98 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H _ 98 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_DIRECTORY_TYPE_DEBUG_INFO_EMITTER_H _
OLDNEW
« no previous file with comments | « components/sync/engine_impl/commit_util.cc ('k') | components/sync/engine_impl/cycle/directory_type_debug_info_emitter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698