summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/sync_manager_factory.h
blob: 9f566c2ce3032a697dc1c526fba3fd17cd4523ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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_INTERNAL_API_PUBLIC_SYNC_MANAGER_FACTORY_H_
#define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_FACTORY_H_

#include <string>

#include "base/memory/scoped_ptr.h"

namespace syncer {

class SyncManager;

// Helper class to allow dependency injection of the SyncManager.
class SyncManagerFactory {
 public:
  SyncManagerFactory();
  virtual ~SyncManagerFactory();

  virtual scoped_ptr<SyncManager> CreateSyncManager(std::string name);

 private:
  DISALLOW_COPY_AND_ASSIGN(SyncManagerFactory);
};

}  // namespace syncer

#endif  // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_FACTORY_H_