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

Side by Side Diff: sync/internal_api/js_sync_manager_observer.h

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 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_JS_SYNC_MANAGER_OBSERVER_H_ 5 #ifndef SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
6 #define SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ 6 #define SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/sync_manager.h" 13 #include "sync/internal_api/public/sync_manager.h"
13 #include "sync/internal_api/public/util/weak_handle.h" 14 #include "sync/internal_api/public/util/weak_handle.h"
14 #include "sync/protocol/sync_protocol_error.h" 15 #include "sync/protocol/sync_protocol_error.h"
15 16
16 namespace tracked_objects { 17 namespace tracked_objects {
17 class Location; 18 class Location;
18 } // namespace tracked_objects 19 } // namespace tracked_objects
19 20
20 namespace syncer { 21 namespace syncer {
21 22
22 class JsEventDetails; 23 class JsEventDetails;
23 class JsEventHandler; 24 class JsEventHandler;
24 25
25 // Routes SyncManager events to a JsEventHandler. 26 // Routes SyncManager events to a JsEventHandler.
26 class JsSyncManagerObserver : public SyncManager::Observer { 27 class SYNC_EXPORT_PRIVATE JsSyncManagerObserver : public SyncManager::Observer {
27 public: 28 public:
28 JsSyncManagerObserver(); 29 JsSyncManagerObserver();
29 virtual ~JsSyncManagerObserver(); 30 virtual ~JsSyncManagerObserver();
30 31
31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); 32 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
32 33
33 // SyncManager::Observer implementation. 34 // SyncManager::Observer implementation.
34 virtual void OnSyncCycleCompleted( 35 virtual void OnSyncCycleCompleted(
35 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; 36 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
36 virtual void OnConnectionStatusChange(ConnectionStatus status) OVERRIDE; 37 virtual void OnConnectionStatusChange(ConnectionStatus status) OVERRIDE;
(...skipping 12 matching lines...) Expand all
49 const std::string& name, const JsEventDetails& details); 50 const std::string& name, const JsEventDetails& details);
50 51
51 WeakHandle<JsEventHandler> event_handler_; 52 WeakHandle<JsEventHandler> event_handler_;
52 53
53 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 54 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
54 }; 55 };
55 56
56 } // namespace syncer 57 } // namespace syncer
57 58
58 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ 59 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_encryption_handler_observer.h ('k') | sync/internal_api/public/base/invalidation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698