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

Unified Diff: sync/js/sync_js_controller.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
« no previous file with comments | « sync/js/js_test_util.cc ('k') | sync/js/sync_js_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/js/sync_js_controller.h
diff --git a/sync/js/sync_js_controller.h b/sync/js/sync_js_controller.h
deleted file mode 100644
index cc325f1d70e028580a28becf9d214c4f47da6f77..0000000000000000000000000000000000000000
--- a/sync/js/sync_js_controller.h
+++ /dev/null
@@ -1,59 +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_JS_SYNC_JS_CONTROLLER_H_
-#define SYNC_JS_SYNC_JS_CONTROLLER_H_
-
-#include <string>
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "base/observer_list.h"
-#include "sync/base/sync_export.h"
-#include "sync/internal_api/public/util/weak_handle.h"
-#include "sync/js/js_controller.h"
-#include "sync/js/js_event_handler.h"
-
-namespace syncer {
-
-class JsBackend;
-
-// A class that mediates between the sync JsEventHandlers and the sync
-// JsBackend.
-class SYNC_EXPORT SyncJsController
- : public JsController, public JsEventHandler,
- public base::SupportsWeakPtr<SyncJsController> {
- public:
- SyncJsController();
-
- ~SyncJsController() override;
-
- // Sets the backend to route all messages to (if initialized).
- // Sends any queued-up messages if |backend| is initialized.
- void AttachJsBackend(const WeakHandle<JsBackend>& js_backend);
-
- // JsController implementation.
- void AddJsEventHandler(JsEventHandler* event_handler) override;
- void RemoveJsEventHandler(JsEventHandler* event_handler) override;
-
- // JsEventHandler implementation.
- void HandleJsEvent(const std::string& name,
- const JsEventDetails& details) override;
-
- private:
- // Sets |js_backend_|'s event handler depending on how many
- // underlying event handlers we have.
- void UpdateBackendEventHandler();
-
- WeakHandle<JsBackend> js_backend_;
- base::ObserverList<JsEventHandler> js_event_handlers_;
-
- DISALLOW_COPY_AND_ASSIGN(SyncJsController);
-};
-
-} // namespace syncer
-
-#endif // SYNC_JS_SYNC_JS_CONTROLLER_H_
« no previous file with comments | « sync/js/js_test_util.cc ('k') | sync/js/sync_js_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698