| OLD | NEW |
| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 private: | 239 private: |
| 240 // Sends gdata mount event to renderers. | 240 // Sends gdata mount event to renderers. |
| 241 void RaiseGDataMountEvent(gdata::GDataErrorCode error); | 241 void RaiseGDataMountEvent(gdata::GDataErrorCode error); |
| 242 // A callback method to handle the result of GData authentication request. | 242 // A callback method to handle the result of GData authentication request. |
| 243 void OnGDataAuthentication(gdata::GDataErrorCode error, | 243 void OnGDataAuthentication(gdata::GDataErrorCode error, |
| 244 const std::string& token); | 244 const std::string& token); |
| 245 // A callback method to handle the result of | 245 // A callback method to handle the result of |
| 246 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. | 246 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. |
| 247 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str, | 247 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str, |
| 248 const SelectedFileInfoList& files); | 248 const SelectedFileInfoList& files); |
| 249 // A callback method to handle the result of SetMountedState. |
| 250 void OnMountedStateSet(const std::string& mount_type, |
| 251 const FilePath::StringType& file_name, |
| 252 base::PlatformFileError error, |
| 253 const FilePath& file_path); |
| 249 | 254 |
| 250 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount"); | 255 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.addMount"); |
| 251 }; | 256 }; |
| 252 | 257 |
| 253 // Unmounts selected device. Expects mount point path as an argument. | 258 // Unmounts selected device. Expects mount point path as an argument. |
| 254 class RemoveMountFunction | 259 class RemoveMountFunction |
| 255 : public FileBrowserFunction { | 260 : public FileBrowserFunction { |
| 256 public: | 261 public: |
| 257 RemoveMountFunction(); | 262 RemoveMountFunction(); |
| 258 | 263 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 | 585 |
| 581 // Write setting value. | 586 // Write setting value. |
| 582 class SetGDataPreferencesFunction : public SyncExtensionFunction { | 587 class SetGDataPreferencesFunction : public SyncExtensionFunction { |
| 583 protected: | 588 protected: |
| 584 virtual bool RunImpl() OVERRIDE; | 589 virtual bool RunImpl() OVERRIDE; |
| 585 private: | 590 private: |
| 586 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences"); | 591 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.setGDataPreferences"); |
| 587 }; | 592 }; |
| 588 | 593 |
| 589 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 594 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |