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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 10008100: gdata: Support mouting archive file in GData cache (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gdata: Support mounting archive files under GData cache Created 8 years, 8 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
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_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 private: 237 private:
238 // Sends gdata mount event to renderers. 238 // Sends gdata mount event to renderers.
239 void RaiseGDataMountEvent(gdata::GDataErrorCode error); 239 void RaiseGDataMountEvent(gdata::GDataErrorCode error);
240 // A callback method to handle the result of GData authentication request. 240 // A callback method to handle the result of GData authentication request.
241 void OnGDataAuthentication(gdata::GDataErrorCode error, 241 void OnGDataAuthentication(gdata::GDataErrorCode error,
242 const std::string& token); 242 const std::string& token);
243 // A callback method to handle the result of 243 // A callback method to handle the result of
244 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. 244 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread.
245 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str, 245 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str,
246 const SelectedFileInfoList& files); 246 const SelectedFileInfoList& files);
247 // Callback for SetMountedState.
Ben Chan 2012/04/17 20:57:53 nit: to be consistent with other comments, maybe:
248 void OnMountedStateSet(base::PlatformFileError error,
249 const FilePath& file_path,
250 const std::string& file_name,
Ben Chan 2012/04/17 20:57:53 const FilePath::StringType& instead of const std::
251 const std::string& mount_type);
247 252
248 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount"); 253 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount");
249 }; 254 };
250 255
251 // Unmounts selected device. Expects mount point path as an argument. 256 // Unmounts selected device. Expects mount point path as an argument.
252 class RemoveMountFunction 257 class RemoveMountFunction
253 : public FileBrowserFunction { 258 : public FileBrowserFunction {
254 public: 259 public:
255 RemoveMountFunction(); 260 RemoveMountFunction();
256 261
257 protected: 262 protected:
258 virtual ~RemoveMountFunction(); 263 virtual ~RemoveMountFunction();
259 264
260 // AsyncExtensionFunction overrides. 265 // AsyncExtensionFunction overrides.
261 virtual bool RunImpl() OVERRIDE; 266 virtual bool RunImpl() OVERRIDE;
262 267
263 private: 268 private:
264 // A callback method to handle the result of 269 // A callback method to handle the result of
265 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. 270 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread.
266 void GetLocalPathsResponseOnUIThread(const SelectedFileInfoList& files); 271 void GetLocalPathsResponseOnUIThread(const SelectedFileInfoList& files);
267 272
273 // Callback for ClearMountedState.
Ben Chan 2012/04/17 20:57:53 nit: to be consistent with other comments, maybe:
274 void OnMountedStateCleared(base::PlatformFileError error);
275
268 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.removeMount"); 276 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.removeMount");
269 }; 277 };
270 278
271 class GetMountPointsFunction 279 class GetMountPointsFunction
272 : public AsyncExtensionFunction { 280 : public AsyncExtensionFunction {
273 public: 281 public:
274 GetMountPointsFunction(); 282 GetMountPointsFunction();
275 283
276 protected: 284 protected:
277 virtual ~GetMountPointsFunction(); 285 virtual ~GetMountPointsFunction();
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 586
579 // Write setting value. 587 // Write setting value.
580 class SetGDataPreferencesFunction : public SyncExtensionFunction { 588 class SetGDataPreferencesFunction : public SyncExtensionFunction {
581 protected: 589 protected:
582 virtual bool RunImpl() OVERRIDE; 590 virtual bool RunImpl() OVERRIDE;
583 private: 591 private:
584 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences"); 592 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences");
585 }; 593 };
586 594
587 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 595 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698