| OLD | NEW |
| 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 Loading... |
| 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 syncer::ModelType type, | 45 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 Loading... |
| 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
_ |
| OLD | NEW |