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_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 namespace fileapi { | 31 namespace fileapi { |
32 class FileSystemContext; | 32 class FileSystemContext; |
33 } | 33 } |
34 | 34 |
35 namespace sync_file_system { | 35 namespace sync_file_system { |
36 | 36 |
37 class SyncEventObserver; | 37 class SyncEventObserver; |
38 | 38 |
39 class SyncFileSystemService | 39 class SyncFileSystemService |
40 : public ProfileKeyedService, | 40 : public BrowserContextKeyedService, |
41 public ProfileSyncServiceObserver, | 41 public ProfileSyncServiceObserver, |
42 public LocalFileSyncService::Observer, | 42 public LocalFileSyncService::Observer, |
43 public RemoteFileSyncService::Observer, | 43 public RemoteFileSyncService::Observer, |
44 public FileStatusObserver, | 44 public FileStatusObserver, |
45 public content::NotificationObserver, | 45 public content::NotificationObserver, |
46 public base::SupportsWeakPtr<SyncFileSystemService> { | 46 public base::SupportsWeakPtr<SyncFileSystemService> { |
47 public: | 47 public: |
48 // ProfileKeyedService overrides. | 48 // BrowserContextKeyedService overrides. |
49 virtual void Shutdown() OVERRIDE; | 49 virtual void Shutdown() OVERRIDE; |
50 | 50 |
51 void InitializeForApp( | 51 void InitializeForApp( |
52 fileapi::FileSystemContext* file_system_context, | 52 fileapi::FileSystemContext* file_system_context, |
53 const std::string& service_name, | 53 const std::string& service_name, |
54 const GURL& app_origin, | 54 const GURL& app_origin, |
55 const SyncStatusCallback& callback); | 55 const SyncStatusCallback& callback); |
56 | 56 |
57 SyncServiceState GetSyncServiceState(); | 57 SyncServiceState GetSyncServiceState(); |
58 | 58 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; | 170 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; |
171 | 171 |
172 ObserverList<SyncEventObserver> observers_; | 172 ObserverList<SyncEventObserver> observers_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 174 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
175 }; | 175 }; |
176 | 176 |
177 } // namespace sync_file_system | 177 } // namespace sync_file_system |
178 | 178 |
179 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 179 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
OLD | NEW |