| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 protected: | 227 protected: |
| 228 virtual ~AddMountFunction(); | 228 virtual ~AddMountFunction(); |
| 229 | 229 |
| 230 // AsyncExtensionFunction overrides. | 230 // AsyncExtensionFunction overrides. |
| 231 virtual bool RunImpl() OVERRIDE; | 231 virtual bool RunImpl() OVERRIDE; |
| 232 | 232 |
| 233 private: | 233 private: |
| 234 // Sends gdata mount event to renderers. | 234 // Sends gdata mount event to renderers. |
| 235 void RaiseGDataMountEvent(gdata::GDataErrorCode error); | 235 void RaiseGDataMountEvent(gdata::GDataErrorCode error); |
| 236 // Gives the extension renderer file permissions for the given path. |
| 237 void GrantFilePermissionsToHost(const FilePath& path, int permissions); |
| 236 // Adds gdata mount point. | 238 // Adds gdata mount point. |
| 237 void AddGDataMountPoint(); | 239 void AddGDataMountPoint(); |
| 238 // A callback method to handle the result of GData authentication request. | 240 // A callback method to handle the result of GData authentication request. |
| 239 void OnGDataAuthentication(gdata::GDataErrorCode error, | 241 void OnGDataAuthentication(gdata::GDataErrorCode error, |
| 240 const std::string& token); | 242 const std::string& token); |
| 241 // A callback method to handle the result of | 243 // A callback method to handle the result of |
| 242 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. | 244 // GetLocalPathsOnFileThreadAndRunCallbackOnUIThread. |
| 243 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str, | 245 void GetLocalPathsResponseOnUIThread(const std::string& mount_type_str, |
| 244 const SelectedFileInfoList& files); | 246 const SelectedFileInfoList& files); |
| 245 | 247 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 protected: | 514 protected: |
| 513 // AsyncExtensionFunction overrides. | 515 // AsyncExtensionFunction overrides. |
| 514 virtual bool RunImpl() OVERRIDE; | 516 virtual bool RunImpl() OVERRIDE; |
| 515 | 517 |
| 516 void GetLocalPathsResponseOnUIThread(const SelectedFileInfoList& files); | 518 void GetLocalPathsResponseOnUIThread(const SelectedFileInfoList& files); |
| 517 private: | 519 private: |
| 518 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.cancelTransfers"); | 520 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.cancelTransfers"); |
| 519 }; | 521 }; |
| 520 | 522 |
| 521 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 523 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |