Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DB_FACTORY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DB_FACTORY_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 | |
| 11 class FilePath; | |
| 12 | |
| 13 namespace gdata { | |
| 14 | |
| 15 class GDataDB; | |
| 16 | |
| 17 // Factory class to create a GDataDB instance at |db_path|. | |
| 18 class GDataDBFactory { | |
|
satorux1
2012/04/24 18:26:44
If all functions are static, we don't need a class
achuithb
2012/04/24 19:43:58
Done.
| |
| 19 public: | |
| 20 static scoped_ptr<GDataDB> CreateGDataDB(const FilePath& db_path); | |
| 21 }; | |
|
satorux1
2012/04/24 18:26:44
if we are to use the class, we should have private
achuithb
2012/04/24 19:43:58
Done.
| |
| 22 | |
| 23 } // namespace gdata | |
| 24 | |
| 25 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DB_FACTORY_H_ | |
| OLD | NEW |