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

Unified Diff: sync/internal_api/js_mutation_event_observer.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/js_mutation_event_observer.h
diff --git a/sync/internal_api/js_mutation_event_observer.h b/sync/internal_api/js_mutation_event_observer.h
deleted file mode 100644
index da8529d1e75391834bfc4cc89eca74fd88487ce2..0000000000000000000000000000000000000000
--- a/sync/internal_api/js_mutation_event_observer.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
-#define SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
-
-#include <stdint.h>
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
-#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/sync_manager.h"
-#include "sync/internal_api/public/util/weak_handle.h"
-#include "sync/syncable/transaction_observer.h"
-
-namespace tracked_objects {
-class Location;
-} // namespace tracked_objects
-
-namespace syncer {
-
-class JsEventDetails;
-class JsEventHandler;
-
-// Observes all change- and transaction-related events and routes a
-// summarized version to a JsEventHandler.
-class SYNC_EXPORT JsMutationEventObserver
- : public SyncManager::ChangeObserver,
- public syncable::TransactionObserver,
- public base::NonThreadSafe {
- public:
- JsMutationEventObserver();
-
- ~JsMutationEventObserver() override;
-
- base::WeakPtr<JsMutationEventObserver> AsWeakPtr();
-
- void InvalidateWeakPtrs();
-
- void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
-
- // SyncManager::ChangeObserver implementation.
- void OnChangesApplied(ModelType model_type,
- int64_t write_transaction_id,
- const ImmutableChangeRecordList& changes) override;
- void OnChangesComplete(ModelType model_type) override;
-
- // syncable::TransactionObserver implementation.
- void OnTransactionWrite(
- const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
- ModelTypeSet models_with_changes) override;
-
- private:
- WeakHandle<JsEventHandler> event_handler_;
-
- void HandleJsEvent(
- const tracked_objects::Location& from_here,
- const std::string& name, const JsEventDetails& details);
-
- base::WeakPtrFactory<JsMutationEventObserver> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(JsMutationEventObserver);
-};
-
-} // namespace syncer
-
-#endif // SYNC_INTERNAL_API_JS_MUTATION_EVENT_OBSERVER_H_
« no previous file with comments | « sync/internal_api/internal_components_factory_impl.cc ('k') | sync/internal_api/js_mutation_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698