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

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.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_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "webkit/fileapi/syncable/sync_file_status.h" 10 #include "webkit/fileapi/syncable/sync_file_status.h"
(...skipping 25 matching lines...) Expand all
36 : public AsyncExtensionFunction { 36 : public AsyncExtensionFunction {
37 public: 37 public:
38 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getFileStatus", 38 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getFileStatus",
39 SYNCFILESYSTEM_GETFILESYNCSTATUS) 39 SYNCFILESYSTEM_GETFILESYNCSTATUS)
40 40
41 protected: 41 protected:
42 virtual ~SyncFileSystemGetFileStatusFunction() {} 42 virtual ~SyncFileSystemGetFileStatusFunction() {}
43 virtual bool RunImpl() OVERRIDE; 43 virtual bool RunImpl() OVERRIDE;
44 44
45 private: 45 private:
46 void DidGetFileStatus(const fileapi::SyncStatusCode sync_service_status, 46 void DidGetFileStatus(
47 const fileapi::SyncFileStatus sync_file_status); 47 const fileapi::SyncStatusCode sync_service_status,
48 const sync_file_system::SyncFileStatus sync_file_status);
48 }; 49 };
49 50
50 class SyncFileSystemGetUsageAndQuotaFunction 51 class SyncFileSystemGetUsageAndQuotaFunction
51 : public AsyncExtensionFunction { 52 : public AsyncExtensionFunction {
52 public: 53 public:
53 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getUsageAndQuota", 54 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getUsageAndQuota",
54 SYNCFILESYSTEM_GETUSAGEANDQUOTA) 55 SYNCFILESYSTEM_GETUSAGEANDQUOTA)
55 56
56 protected: 57 protected:
57 virtual ~SyncFileSystemGetUsageAndQuotaFunction() {} 58 virtual ~SyncFileSystemGetUsageAndQuotaFunction() {}
(...skipping 24 matching lines...) Expand all
82 void DidInitializeFileSystemContext(const std::string& service_name, 83 void DidInitializeFileSystemContext(const std::string& service_name,
83 fileapi::SyncStatusCode status); 84 fileapi::SyncStatusCode status);
84 void DidOpenFileSystem(base::PlatformFileError error, 85 void DidOpenFileSystem(base::PlatformFileError error,
85 const std::string& file_system_name, 86 const std::string& file_system_name,
86 const GURL& root_url); 87 const GURL& root_url);
87 }; 88 };
88 89
89 } // namespace extensions 90 } // namespace extensions
90 91
91 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _ 92 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698