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

Side by Side Diff: sync/js/sync_js_controller.h

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 years 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
« no previous file with comments | « sync/js/js_event_handler.h ('k') | sync/notifier/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_JS_SYNC_JS_CONTROLLER_H_ 5 #ifndef SYNC_JS_SYNC_JS_CONTROLLER_H_
6 #define SYNC_JS_SYNC_JS_CONTROLLER_H_ 6 #define SYNC_JS_SYNC_JS_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "sync/base/sync_export.h"
15 #include "sync/internal_api/public/util/weak_handle.h" 16 #include "sync/internal_api/public/util/weak_handle.h"
16 #include "sync/js/js_arg_list.h" 17 #include "sync/js/js_arg_list.h"
17 #include "sync/js/js_controller.h" 18 #include "sync/js/js_controller.h"
18 #include "sync/js/js_event_handler.h" 19 #include "sync/js/js_event_handler.h"
19 20
20 namespace syncer { 21 namespace syncer {
21 22
22 class JsBackend; 23 class JsBackend;
23 24
24 // A class that mediates between the sync JsEventHandlers and the sync 25 // A class that mediates between the sync JsEventHandlers and the sync
25 // JsBackend. 26 // JsBackend.
26 class SyncJsController 27 class SYNC_EXPORT SyncJsController
27 : public JsController, public JsEventHandler, 28 : public JsController, public JsEventHandler,
28 public base::SupportsWeakPtr<SyncJsController> { 29 public base::SupportsWeakPtr<SyncJsController> {
29 public: 30 public:
30 SyncJsController(); 31 SyncJsController();
31 32
32 virtual ~SyncJsController(); 33 virtual ~SyncJsController();
33 34
34 // Sets the backend to route all messages to (if initialized). 35 // Sets the backend to route all messages to (if initialized).
35 // Sends any queued-up messages if |backend| is initialized. 36 // Sends any queued-up messages if |backend| is initialized.
36 void AttachJsBackend(const WeakHandle<JsBackend>& js_backend); 37 void AttachJsBackend(const WeakHandle<JsBackend>& js_backend);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 WeakHandle<JsBackend> js_backend_; 72 WeakHandle<JsBackend> js_backend_;
72 ObserverList<JsEventHandler> js_event_handlers_; 73 ObserverList<JsEventHandler> js_event_handlers_;
73 PendingJsMessageList pending_js_messages_; 74 PendingJsMessageList pending_js_messages_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(SyncJsController); 76 DISALLOW_COPY_AND_ASSIGN(SyncJsController);
76 }; 77 };
77 78
78 } // namespace syncer 79 } // namespace syncer
79 80
80 #endif // SYNC_JS_SYNC_JS_CONTROLLER_H_ 81 #endif // SYNC_JS_SYNC_JS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sync/js/js_event_handler.h ('k') | sync/notifier/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698