| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" | 10 #include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Initializes the object. This function should be called before any | 53 // Initializes the object. This function should be called before any |
| 54 // other functions. | 54 // other functions. |
| 55 void Initialize(); | 55 void Initialize(); |
| 56 | 56 |
| 57 friend class GDataSystemServiceFactory; | 57 friend class GDataSystemServiceFactory; |
| 58 | 58 |
| 59 Profile* profile_; | 59 Profile* profile_; |
| 60 const base::SequencedWorkerPool::SequenceToken sequence_token_; | 60 const base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 61 GDataCache* cache_; | 61 GDataCache* cache_; |
| 62 scoped_ptr<DocumentsServiceInterface> documents_service_; | 62 scoped_ptr<DocumentsServiceInterface> documents_service_; |
| 63 scoped_ptr<GDataUploader> uploader_; |
| 63 scoped_ptr<GDataFileSystem> file_system_; | 64 scoped_ptr<GDataFileSystem> file_system_; |
| 64 scoped_ptr<GDataUploader> uploader_; | |
| 65 scoped_ptr<GDataDownloadObserver> download_observer_; | 65 scoped_ptr<GDataDownloadObserver> download_observer_; |
| 66 scoped_ptr<GDataSyncClient> sync_client_; | 66 scoped_ptr<GDataSyncClient> sync_client_; |
| 67 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; | 67 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(GDataSystemService); | 69 DISALLOW_COPY_AND_ASSIGN(GDataSystemService); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 // Singleton that owns all GDataSystemServices and associates them with | 72 // Singleton that owns all GDataSystemServices and associates them with |
| 73 // Profiles. | 73 // Profiles. |
| 74 class GDataSystemServiceFactory : public ProfileKeyedServiceFactory { | 74 class GDataSystemServiceFactory : public ProfileKeyedServiceFactory { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 90 virtual ~GDataSystemServiceFactory(); | 90 virtual ~GDataSystemServiceFactory(); |
| 91 | 91 |
| 92 // ProfileKeyedServiceFactory: | 92 // ProfileKeyedServiceFactory: |
| 93 virtual ProfileKeyedService* BuildServiceInstanceFor( | 93 virtual ProfileKeyedService* BuildServiceInstanceFor( |
| 94 Profile* profile) const OVERRIDE; | 94 Profile* profile) const OVERRIDE; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace gdata | 97 } // namespace gdata |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ |
| OLD | NEW |