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

Unified Diff: sync/notifier/sync_notifier_factory.h

Issue 10875064: Rename SyncNotifier->Invalidator and SyncNotifierObserver->InvalidationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to ToT for landing Created 8 years, 4 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/notifier/sync_notifier.h ('k') | sync/notifier/sync_notifier_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/sync_notifier_factory.h
diff --git a/sync/notifier/sync_notifier_factory.h b/sync/notifier/sync_notifier_factory.h
deleted file mode 100644
index 0c8a2d34ed7fb300d3db89ec5b94f4df8741bdda..0000000000000000000000000000000000000000
--- a/sync/notifier/sync_notifier_factory.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 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_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_
-#define SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_
-
-#include <string>
-
-#include "base/memory/weak_ptr.h"
-#include "jingle/notifier/base/notifier_options.h"
-#include "sync/internal_api/public/util/weak_handle.h"
-#include "sync/notifier/invalidation_state_tracker.h"
-
-namespace syncer {
-
-class SyncNotifier;
-
-// Class to instantiate various implementations of the SyncNotifier
-// interface.
-class SyncNotifierFactory {
- public:
- // |client_info| is a string identifying the client, e.g. a user
- // agent string. |invalidation_state_tracker| may be NULL (for
- // tests).
- SyncNotifierFactory(
- const notifier::NotifierOptions& notifier_options,
- const std::string& client_info,
- const base::WeakPtr<InvalidationStateTracker>&
- invalidation_state_tracker);
- ~SyncNotifierFactory();
-
- // Creates a sync notifier. Caller takes ownership of the returned
- // object. However, the returned object must not outlive the
- // factory from which it was created. Can be called on any thread.
- SyncNotifier* CreateSyncNotifier();
-
- private:
- const notifier::NotifierOptions notifier_options_;
- const std::string client_info_;
- const InvalidationVersionMap initial_max_invalidation_versions_;
- const std::string initial_invalidation_state_;
- const WeakHandle<InvalidationStateTracker>
- invalidation_state_tracker_;
-};
-
-} // namespace syncer
-
-#endif // SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_
« no previous file with comments | « sync/notifier/sync_notifier.h ('k') | sync/notifier/sync_notifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698