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

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

Issue 11316133: Added implementation of SyncEventObserver to route events to Javascript Extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed test to match updated SyncEventObserver interface Created 8 years 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 "googleurl/src/gurl.h"
kinuko 2012/11/28 07:41:13 I think forward decl would work class GURL;
calvinlo 2012/11/28 10:43:46 Done.
10 #include "webkit/fileapi/syncable/sync_operation_type.h" 11 #include "webkit/fileapi/syncable/sync_operation_type.h"
11 12
12 namespace fileapi { 13 namespace fileapi {
13 class FileSystemURL; 14 class FileSystemURL;
14 } 15 }
15 16
16 namespace sync_file_system { 17 namespace sync_file_system {
17 18
18 class SyncEventObserver { 19 class SyncEventObserver {
19 public: 20 public:
(...skipping 22 matching lines...) Expand all
42 }; 43 };
43 44
44 // Reports there was a state change in the sync file system backend. 45 // Reports there was a state change in the sync file system backend.
45 // If |app_origin| is empty, then broadcast to all registered apps. 46 // If |app_origin| is empty, then broadcast to all registered apps.
46 virtual void OnSyncStateUpdated(const GURL& app_origin, 47 virtual void OnSyncStateUpdated(const GURL& app_origin,
47 SyncServiceState state, 48 SyncServiceState state,
48 const std::string& description) = 0; 49 const std::string& description) = 0;
49 50
50 // Reports the file |url| was updated for |operation| 51 // Reports the file |url| was updated for |operation|
51 // by the sync file system backend. 52 // by the sync file system backend.
52 virtual void OnFileSynced(fileapi::SyncStatusCode status, 53 virtual void OnFileSynced(fileapi::SyncOperationType operation,
53 fileapi::SyncOperationType operation,
54 const fileapi::FileSystemURL& url) = 0; 54 const fileapi::FileSystemURL& url) = 0;
55 55
56 private: 56 private:
57 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver); 57 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver);
58 }; 58 };
59 59
60 } // namespace sync_file_system 60 } // namespace sync_file_system
61 61
62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_ 62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698