Refactor WebsiteSettings to operate on a SecurityInfo
[chromium-blink-merge.git] / chrome / browser / sync_file_system / sync_callbacks.h
blob6a747681e131fed2ceb6fdb712f33ca76af00d89
1 // Copyright 2013 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_CALLBACKS_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_CALLBACKS_H_
8 #include "base/callback_forward.h"
9 #include "chrome/browser/sync_file_system/sync_file_status.h"
10 #include "chrome/browser/sync_file_system/sync_status_code.h"
11 #include "storage/browser/fileapi/file_system_url.h"
13 namespace storage {
14 class FileSystemURL;
17 namespace sync_file_system {
19 class SyncFileMetadata;
21 typedef base::Callback<void(SyncStatusCode status)>
22 SyncStatusCallback;
24 typedef base::Callback<
25 void(SyncStatusCode status, const storage::FileSystemURL& url)>
26 SyncFileCallback;
28 typedef base::Callback<void(SyncStatusCode status,
29 const SyncFileMetadata& metadata)>
30 SyncFileMetadataCallback;
32 typedef base::Callback<
33 void(SyncStatusCode status, const storage::FileSystemURLSet& urls)>
34 SyncFileSetCallback;
36 typedef base::Callback<void(SyncStatusCode status,
37 SyncFileStatus sync_file_status)>
38 SyncFileStatusCallback;
40 } // namespace sync_file_system
42 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_CALLBACKS_H_