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

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h

Issue 22810002: SyncFS: Reorder initialization sequence of SyncFileSystemService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 <map> 8 #include <map>
9 9
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 protected: 107 protected:
108 virtual ~SyncFileSystemRequestFileSystemFunction() {} 108 virtual ~SyncFileSystemRequestFileSystemFunction() {}
109 virtual bool RunImpl() OVERRIDE; 109 virtual bool RunImpl() OVERRIDE;
110 110
111 private: 111 private:
112 typedef SyncFileSystemRequestFileSystemFunction self; 112 typedef SyncFileSystemRequestFileSystemFunction self;
113 113
114 // Returns the file system context for this extension. 114 // Returns the file system context for this extension.
115 fileapi::FileSystemContext* GetFileSystemContext(); 115 fileapi::FileSystemContext* GetFileSystemContext();
116 116
117 void DidInitializeFileSystemContext(sync_file_system::SyncStatusCode status);
118 void DidOpenFileSystem(base::PlatformFileError error, 117 void DidOpenFileSystem(base::PlatformFileError error,
119 const std::string& file_system_name, 118 const std::string& file_system_name,
120 const GURL& root_url); 119 const GURL& root_url);
121 }; 120 };
122 121
123 class SyncFileSystemSetConflictResolutionPolicyFunction 122 class SyncFileSystemSetConflictResolutionPolicyFunction
124 : public SyncExtensionFunction { 123 : public SyncExtensionFunction {
125 public: 124 public:
126 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", 125 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy",
127 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) 126 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY)
(...skipping 20 matching lines...) Expand all
148 SYNCFILESYSTEM_GETSERVICESTATUS) 147 SYNCFILESYSTEM_GETSERVICESTATUS)
149 148
150 protected: 149 protected:
151 virtual ~SyncFileSystemGetServiceStatusFunction() {} 150 virtual ~SyncFileSystemGetServiceStatusFunction() {}
152 virtual bool RunImpl() OVERRIDE; 151 virtual bool RunImpl() OVERRIDE;
153 }; 152 };
154 153
155 } // namespace extensions 154 } // namespace extensions
156 155
157 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _ 156 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698