Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: chrome/browser/sync_file_system/sync_event_observer.h

Issue 12304015: Migrated sync_file_status, sync_action and sync_direction from fileapi:: namespace to sync_file_sys… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_EVENT_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/sync_file_system/file_status_observer.h" 10 #include "chrome/browser/sync_file_system/file_status_observer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Reports there was a state change in the sync file system backend. 44 // Reports there was a state change in the sync file system backend.
45 // If |app_origin| is empty, then broadcast to all registered apps. 45 // If |app_origin| is empty, then broadcast to all registered apps.
46 virtual void OnSyncStateUpdated(const GURL& app_origin, 46 virtual void OnSyncStateUpdated(const GURL& app_origin,
47 SyncServiceState state, 47 SyncServiceState state,
48 const std::string& description) = 0; 48 const std::string& description) = 0;
49 49
50 // Reports the file |url| was updated and resulted in |result| 50 // Reports the file |url| was updated and resulted in |result|
51 // by the sync file system backend. 51 // by the sync file system backend.
52 virtual void OnFileSynced(const fileapi::FileSystemURL& url, 52 virtual void OnFileSynced(const fileapi::FileSystemURL& url,
53 fileapi::SyncFileStatus status, 53 SyncFileStatus status,
54 fileapi::SyncAction action, 54 SyncAction action,
55 fileapi::SyncDirection direction) = 0; 55 SyncDirection direction) = 0;
56 56
57 private: 57 private:
58 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); 58 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver);
59 }; 59 };
60 60
61 } // namespace sync_file_system 61 } // namespace sync_file_system
62 62
63 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ 63 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698