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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual void OnRemoteChangeQueueUpdated(int64 pending_changes) OVERRIDE; | 114 virtual void OnRemoteChangeQueueUpdated(int64 pending_changes) OVERRIDE; |
115 virtual void OnRemoteServiceStateUpdated( | 115 virtual void OnRemoteServiceStateUpdated( |
116 RemoteServiceState state, | 116 RemoteServiceState state, |
117 const std::string& description) OVERRIDE; | 117 const std::string& description) OVERRIDE; |
118 | 118 |
119 // content::NotificationObserver implementation. | 119 // content::NotificationObserver implementation. |
120 virtual void Observe(int type, | 120 virtual void Observe(int type, |
121 const content::NotificationSource& source, | 121 const content::NotificationSource& source, |
122 const content::NotificationDetails& details) OVERRIDE; | 122 const content::NotificationDetails& details) OVERRIDE; |
123 | 123 |
| 124 void HandleExtensionUnloaded(int type, |
| 125 const content::NotificationDetails& details); |
| 126 void HandleExtensionEnabled(int type, |
| 127 const content::NotificationDetails& details); |
| 128 |
124 // ProfileSyncServiceObserver: | 129 // ProfileSyncServiceObserver: |
125 virtual void OnStateChanged() OVERRIDE; | 130 virtual void OnStateChanged() OVERRIDE; |
126 | 131 |
127 // SyncFileStatusObserver: | 132 // SyncFileStatusObserver: |
128 virtual void OnFileStatusChanged( | 133 virtual void OnFileStatusChanged( |
129 const fileapi::FileSystemURL& url, | 134 const fileapi::FileSystemURL& url, |
130 SyncFileStatus sync_status, | 135 SyncFileStatus sync_status, |
131 SyncAction action_taken, | 136 SyncAction action_taken, |
132 SyncDirection direction) OVERRIDE; | 137 SyncDirection direction) OVERRIDE; |
133 | 138 |
(...skipping 24 matching lines...) Expand all Loading... |
158 bool sync_enabled_; | 163 bool sync_enabled_; |
159 | 164 |
160 ObserverList<SyncEventObserver> observers_; | 165 ObserverList<SyncEventObserver> observers_; |
161 | 166 |
162 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 167 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
163 }; | 168 }; |
164 | 169 |
165 } // namespace sync_file_system | 170 } // namespace sync_file_system |
166 | 171 |
167 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 172 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
OLD | NEW |