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

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

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. 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 COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ 5 #ifndef COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_
6 #define COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ 6 #define COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/sync/base/sync_export.h"
13 #include "components/sync/base/weak_handle.h" 12 #include "components/sync/base/weak_handle.h"
14 #include "components/sync/core/sync_manager.h" 13 #include "components/sync/core/sync_manager.h"
15 #include "components/sync/protocol/sync_protocol_error.h" 14 #include "components/sync/protocol/sync_protocol_error.h"
16 15
17 namespace tracked_objects { 16 namespace tracked_objects {
18 class Location; 17 class Location;
19 } // namespace tracked_objects 18 } // namespace tracked_objects
20 19
21 namespace syncer { 20 namespace syncer {
22 21
23 class JsEventDetails; 22 class JsEventDetails;
24 class JsEventHandler; 23 class JsEventHandler;
25 24
26 // Routes SyncManager events to a JsEventHandler. 25 // Routes SyncManager events to a JsEventHandler.
27 class SYNC_EXPORT JsSyncManagerObserver : public SyncManager::Observer { 26 class JsSyncManagerObserver : public SyncManager::Observer {
28 public: 27 public:
29 JsSyncManagerObserver(); 28 JsSyncManagerObserver();
30 ~JsSyncManagerObserver() override; 29 ~JsSyncManagerObserver() override;
31 30
32 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); 31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
33 32
34 // SyncManager::Observer implementation. 33 // SyncManager::Observer implementation.
35 void OnSyncCycleCompleted( 34 void OnSyncCycleCompleted(
36 const sessions::SyncSessionSnapshot& snapshot) override; 35 const sessions::SyncSessionSnapshot& snapshot) override;
37 void OnConnectionStatusChange(ConnectionStatus status) override; 36 void OnConnectionStatusChange(ConnectionStatus status) override;
(...skipping 12 matching lines...) Expand all
50 const JsEventDetails& details); 49 const JsEventDetails& details);
51 50
52 WeakHandle<JsEventHandler> event_handler_; 51 WeakHandle<JsEventHandler> event_handler_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 53 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
55 }; 54 };
56 55
57 } // namespace syncer 56 } // namespace syncer
58 57
59 #endif // COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_ 58 #endif // COMPONENTS_SYNC_CORE_IMPL_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698