Chromium Code Reviews| Index: chrome/browser/sync/notifier/sync_notifier_factory.h |
| diff --git a/chrome/browser/sync/notifier/sync_notifier_factory.h b/chrome/browser/sync/notifier/sync_notifier_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1b467a2c524f8814b23c68c993a9fb3c1008fc91 |
| --- /dev/null |
| +++ b/chrome/browser/sync/notifier/sync_notifier_factory.h |
| @@ -0,0 +1,26 @@ |
| +// 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_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |
| +#define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |
| + |
| +class CommandLine; |
| + |
| +namespace sync_notifier { |
| +class SyncNotifier; |
| + |
| +// Class to instantiate various implementations of the SyncNotifier interface. |
| +class SyncNotifierFactory { |
| + public: |
| + SyncNotifierFactory() {} |
|
akalin
2011/03/11 22:27:44
move constructor/destructor bodies to .cc file
Agrawal
2011/03/11 22:54:27
Done.
|
| + ~SyncNotifierFactory() {} |
| + |
| + // Creates the appropriate sync notifier. The caller should take ownership |
| + // of the object returned and delete it when no longer used. |
| + SyncNotifier* CreateSyncNotifier(const CommandLine& command_line); |
| + private: |
|
akalin
2011/03/11 22:27:44
no need for this line
Agrawal
2011/03/11 22:54:27
Done.
|
| +}; |
| +} // namespace sync_notifier |
| + |
| +#endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |