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

Unified Diff: chrome/browser/sync/js/js_mutation_event_observer.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
« no previous file with comments | « chrome/browser/sync/js/js_event_handler.h ('k') | chrome/browser/sync/js/js_mutation_event_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/js/js_mutation_event_observer.h
diff --git a/chrome/browser/sync/js/js_mutation_event_observer.h b/chrome/browser/sync/js/js_mutation_event_observer.h
deleted file mode 100644
index a0e347bb28638904b13c274f881f4c445b4e4ca6..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/js/js_mutation_event_observer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2011 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 CHROME_BROWSER_SYNC_JS_JS_MUTATION_EVENT_OBSERVER_H_
-#define CHROME_BROWSER_SYNC_JS_JS_MUTATION_EVENT_OBSERVER_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/sync/internal_api/sync_manager.h"
-#include "chrome/browser/sync/syncable/transaction_observer.h"
-#include "chrome/browser/sync/util/weak_handle.h"
-
-namespace tracked_objects {
-class Location;
-} // namespace tracked_objects
-
-namespace browser_sync {
-
-class JsEventDetails;
-class JsEventHandler;
-
-// Observes all change- and transaction-related events and routes a
-// summarized version to a JsEventHandler.
-class JsMutationEventObserver
- : public sync_api::SyncManager::ChangeObserver,
- public syncable::TransactionObserver {
- public:
- JsMutationEventObserver();
-
- virtual ~JsMutationEventObserver();
-
- base::WeakPtr<JsMutationEventObserver> AsWeakPtr();
-
- void InvalidateWeakPtrs();
-
- void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
-
- // sync_api::SyncManager::ChangeObserver implementation.
- virtual void OnChangesApplied(
- syncable::ModelType model_type,
- int64 write_transaction_id,
- const sync_api::ImmutableChangeRecordList& changes) OVERRIDE;
- virtual void OnChangesComplete(syncable::ModelType model_type) OVERRIDE;
-
- // syncable::TransactionObserver implementation.
- virtual void OnTransactionWrite(
- const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
- syncable::ModelTypeSet models_with_changes) OVERRIDE;
-
- private:
- base::NonThreadSafe non_thread_safe_;
- base::WeakPtrFactory<JsMutationEventObserver> weak_ptr_factory_;
- WeakHandle<JsEventHandler> event_handler_;
-
- void HandleJsEvent(
- const tracked_objects::Location& from_here,
- const std::string& name, const JsEventDetails& details);
-
- DISALLOW_COPY_AND_ASSIGN(JsMutationEventObserver);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_JS_JS_MUTATION_EVENT_OBSERVER_H_
« no previous file with comments | « chrome/browser/sync/js/js_event_handler.h ('k') | chrome/browser/sync/js/js_mutation_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698