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

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

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 SyncJsController(); 30 SyncJsController();
31 31
32 virtual ~SyncJsController(); 32 virtual ~SyncJsController();
33 33
34 // Sets the backend to route all messages to (if initialized). 34 // Sets the backend to route all messages to (if initialized).
35 // Sends any queued-up messages if |backend| is initialized. 35 // Sends any queued-up messages if |backend| is initialized.
36 void AttachJsBackend(const WeakHandle<JsBackend>& js_backend); 36 void AttachJsBackend(const WeakHandle<JsBackend>& js_backend);
37 37
38 // JsController implementation. 38 // JsController implementation.
39 virtual void AddJsEventHandler(JsEventHandler* event_handler) OVERRIDE; 39 virtual void AddJsEventHandler(JsEventHandler* event_handler) override;
40 virtual void RemoveJsEventHandler(JsEventHandler* event_handler) OVERRIDE; 40 virtual void RemoveJsEventHandler(JsEventHandler* event_handler) override;
41 41
42 // JsEventHandler implementation. 42 // JsEventHandler implementation.
43 virtual void HandleJsEvent(const std::string& name, 43 virtual void HandleJsEvent(const std::string& name,
44 const JsEventDetails& details) OVERRIDE; 44 const JsEventDetails& details) override;
45 45
46 private: 46 private:
47 // Sets |js_backend_|'s event handler depending on how many 47 // Sets |js_backend_|'s event handler depending on how many
48 // underlying event handlers we have. 48 // underlying event handlers we have.
49 void UpdateBackendEventHandler(); 49 void UpdateBackendEventHandler();
50 50
51 WeakHandle<JsBackend> js_backend_; 51 WeakHandle<JsBackend> js_backend_;
52 ObserverList<JsEventHandler> js_event_handlers_; 52 ObserverList<JsEventHandler> js_event_handlers_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(SyncJsController); 54 DISALLOW_COPY_AND_ASSIGN(SyncJsController);
55 }; 55 };
56 56
57 } // namespace syncer 57 } // namespace syncer
58 58
59 #endif // SYNC_JS_SYNC_JS_CONTROLLER_H_ 59 #endif // SYNC_JS_SYNC_JS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/test/sync_manager_for_profile_sync_test.h ('k') | sync/sessions/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698