Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / sync_file_system / sync_event_observer.h
blobb6e801041ba6e8b141e527bded69323f53444392
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_
8 #include <string>
10 #include "chrome/browser/sync_file_system/file_status_observer.h"
11 #include "chrome/browser/sync_file_system/sync_service_state.h"
13 class GURL;
15 namespace storage {
16 class FileSystemURL;
19 namespace sync_file_system {
21 class SyncEventObserver {
22 public:
23 SyncEventObserver() {}
24 virtual ~SyncEventObserver() {}
26 // Reports there was a state change in the sync file system backend.
27 // If |app_origin| is empty, then broadcast to all registered apps.
28 virtual void OnSyncStateUpdated(const GURL& app_origin,
29 SyncServiceState state,
30 const std::string& description) = 0;
32 // Reports the file |url| was updated and resulted in |result|
33 // by the sync file system backend.
34 virtual void OnFileSynced(const storage::FileSystemURL& url,
35 SyncFileType file_type,
36 SyncFileStatus status,
37 SyncAction action,
38 SyncDirection direction) = 0;
40 private:
41 DISALLOW_COPY_AND_ASSIGN(SyncEventObserver);
44 } // namespace sync_file_system
46 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_EVENT_OBSERVER_H_