Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / sync / test / fake_server / entity_builder_factory.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_TEST_FAKE_SERVER_ENTITY_BUILDER_FACTORY_H_
6 #define SYNC_TEST_FAKE_SERVER_ENTITY_BUILDER_FACTORY_H_
7
8 #include <string>
9
10 #include "sync/test/fake_server/bookmark_entity_builder.h"
11 #include "url/gurl.h"
12
13 namespace fake_server {
14
15 // Creates various types of EntityBuilders.
16 //
17 // add comment of why this class exists
18 class EntityBuilderFactory {
19  public:
20   EntityBuilderFactory();
21   EntityBuilderFactory(const std::string& cache_guid);
22   virtual ~EntityBuilderFactory();
23
24   BookmarkEntityBuilder NewBookmarkEntityBuilder(const std::string& title,
25                                                  const GURL& url);
26  private:
27   // An identifier used when creating entities. This value is used similarly to
28   // the value in the Sync directory code.
29   std::string cache_guid_;
30
31   // The latest client item id assigned to an entity.
32   int64 latest_client_item_id_;
33 };
34
35 }  // namespace fake_server
36
37 #endif  // SYNC_TEST_FAKE_SERVER_ENTITY_BUILDER_FACTORY_H_