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 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 12 #include "base/threading/sequenced_worker_pool.h" |
11 #include "chrome/browser/profiles/profile_keyed_service.h" | 13 #include "chrome/browser/profiles/profile_keyed_service.h" |
12 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | 14 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
13 | 15 |
14 class FilePath; | 16 class FilePath; |
15 | 17 |
16 namespace gdata { | 18 namespace gdata { |
17 | 19 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const FilePath& cache_root); | 61 const FilePath& cache_root); |
60 | 62 |
61 // Registers remote file system proxy for drive mount point. | 63 // Registers remote file system proxy for drive mount point. |
62 void AddDriveMountPoint(); | 64 void AddDriveMountPoint(); |
63 // Unregisters drive mount point from File API. | 65 // Unregisters drive mount point from File API. |
64 void RemoveDriveMountPoint(); | 66 void RemoveDriveMountPoint(); |
65 | 67 |
66 friend class GDataSystemServiceFactory; | 68 friend class GDataSystemServiceFactory; |
67 | 69 |
68 Profile* profile_; | 70 Profile* profile_; |
69 const base::SequencedWorkerPool::SequenceToken sequence_token_; | 71 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; |
70 GDataCache* cache_; | 72 GDataCache* cache_; |
71 scoped_ptr<DocumentsServiceInterface> documents_service_; | 73 scoped_ptr<DocumentsServiceInterface> documents_service_; |
72 scoped_ptr<GDataUploader> uploader_; | 74 scoped_ptr<GDataUploader> uploader_; |
73 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; | 75 scoped_ptr<DriveWebAppsRegistry> webapps_registry_; |
74 scoped_ptr<GDataFileSystemInterface> file_system_; | 76 scoped_ptr<GDataFileSystemInterface> file_system_; |
75 scoped_ptr<GDataDownloadObserver> download_observer_; | 77 scoped_ptr<GDataDownloadObserver> download_observer_; |
76 scoped_ptr<GDataSyncClient> sync_client_; | 78 scoped_ptr<GDataSyncClient> sync_client_; |
77 | 79 |
78 DISALLOW_COPY_AND_ASSIGN(GDataSystemService); | 80 DISALLOW_COPY_AND_ASSIGN(GDataSystemService); |
79 }; | 81 }; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual ~GDataSystemServiceFactory(); | 115 virtual ~GDataSystemServiceFactory(); |
114 | 116 |
115 // ProfileKeyedServiceFactory: | 117 // ProfileKeyedServiceFactory: |
116 virtual ProfileKeyedService* BuildServiceInstanceFor( | 118 virtual ProfileKeyedService* BuildServiceInstanceFor( |
117 Profile* profile) const OVERRIDE; | 119 Profile* profile) const OVERRIDE; |
118 }; | 120 }; |
119 | 121 |
120 } // namespace gdata | 122 } // namespace gdata |
121 | 123 |
122 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ | 124 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYSTEM_SERVICE_H_ |
OLD | NEW |