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

Side by Side Diff: sync/internal_api/js_mutation_event_observer.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_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_ 5 #ifndef SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
6 #define SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_ 6 #define SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 base::WeakPtr<JsMutationEventObserver> AsWeakPtr(); 39 base::WeakPtr<JsMutationEventObserver> AsWeakPtr();
40 40
41 void InvalidateWeakPtrs(); 41 void InvalidateWeakPtrs();
42 42
43 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); 43 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
44 44
45 // SyncManager::ChangeObserver implementation. 45 // SyncManager::ChangeObserver implementation.
46 virtual void OnChangesApplied( 46 virtual void OnChangesApplied(
47 ModelType model_type, 47 ModelType model_type,
48 int64 write_transaction_id, 48 int64 write_transaction_id,
49 const ImmutableChangeRecordList& changes) OVERRIDE; 49 const ImmutableChangeRecordList& changes) override;
50 virtual void OnChangesComplete(ModelType model_type) OVERRIDE; 50 virtual void OnChangesComplete(ModelType model_type) override;
51 51
52 // syncable::TransactionObserver implementation. 52 // syncable::TransactionObserver implementation.
53 virtual void OnTransactionWrite( 53 virtual void OnTransactionWrite(
54 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 54 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
55 ModelTypeSet models_with_changes) OVERRIDE; 55 ModelTypeSet models_with_changes) override;
56 56
57 private: 57 private:
58 WeakHandle<JsEventHandler> event_handler_; 58 WeakHandle<JsEventHandler> event_handler_;
59 59
60 void HandleJsEvent( 60 void HandleJsEvent(
61 const tracked_objects::Location& from_here, 61 const tracked_objects::Location& from_here,
62 const std::string& name, const JsEventDetails& details); 62 const std::string& name, const JsEventDetails& details);
63 63
64 base::WeakPtrFactory<JsMutationEventObserver> weak_ptr_factory_; 64 base::WeakPtrFactory<JsMutationEventObserver> weak_ptr_factory_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(JsMutationEventObserver); 66 DISALLOW_COPY_AND_ASSIGN(JsMutationEventObserver);
67 }; 67 };
68 68
69 } // namespace syncer 69 } // namespace syncer
70 70
71 #endif // SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_ 71 #endif // SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/http_bridge_unittest.cc ('k') | sync/internal_api/js_sync_encryption_handler_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698