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_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/files/file.h" |
9 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" | 9 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" |
10 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 10 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
11 #include "chrome/browser/extensions/chrome_extension_function.h" | 11 #include "chrome/browser/extensions/chrome_extension_function.h" |
12 #include "chrome/browser/extensions/extension_install_prompt.h" | 12 #include "chrome/browser/extensions/extension_install_prompt.h" |
13 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 13 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
14 #include "chrome/browser/extensions/pack_extension_job.h" | 14 #include "chrome/browser/extensions/pack_extension_job.h" |
15 #include "chrome/browser/extensions/requirements_checker.h" | 15 #include "chrome/browser/extensions/requirements_checker.h" |
16 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 16 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 virtual bool RunImpl() OVERRIDE; | 381 virtual bool RunImpl() OVERRIDE; |
382 | 382 |
383 void ClearExistingDirectoryContent(const base::FilePath& project_path); | 383 void ClearExistingDirectoryContent(const base::FilePath& project_path); |
384 | 384 |
385 void ReadSyncFileSystemDirectory(const base::FilePath& project_path, | 385 void ReadSyncFileSystemDirectory(const base::FilePath& project_path, |
386 const base::FilePath& destination_path); | 386 const base::FilePath& destination_path); |
387 | 387 |
388 void ReadSyncFileSystemDirectoryCb( | 388 void ReadSyncFileSystemDirectoryCb( |
389 const base::FilePath& project_path, | 389 const base::FilePath& project_path, |
390 const base::FilePath& destination_path, | 390 const base::FilePath& destination_path, |
391 base::PlatformFileError result, | 391 base::File::Error result, |
392 const fileapi::FileSystemOperation::FileEntryList& file_list, | 392 const fileapi::FileSystemOperation::FileEntryList& file_list, |
393 bool has_more); | 393 bool has_more); |
394 | 394 |
395 void SnapshotFileCallback( | 395 void SnapshotFileCallback( |
396 const base::FilePath& target_path, | 396 const base::FilePath& target_path, |
397 base::PlatformFileError result, | 397 base::File::Error result, |
398 const base::PlatformFileInfo& file_info, | 398 const base::File::Info& file_info, |
399 const base::FilePath& platform_path, | 399 const base::FilePath& platform_path, |
400 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); | 400 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); |
401 | 401 |
402 void CopyFile(const base::FilePath& src_path, | 402 void CopyFile(const base::FilePath& src_path, |
403 const base::FilePath& dest_path); | 403 const base::FilePath& dest_path); |
404 | 404 |
405 void Load(); | 405 void Load(); |
406 | 406 |
407 scoped_refptr<fileapi::FileSystemContext> context_; | 407 scoped_refptr<fileapi::FileSystemContext> context_; |
408 | 408 |
(...skipping 13 matching lines...) Expand all Loading... |
422 // call of the API. It is returned as a response of the API call. | 422 // call of the API. It is returned as a response of the API call. |
423 bool success_; | 423 bool success_; |
424 | 424 |
425 }; | 425 }; |
426 | 426 |
427 } // namespace api | 427 } // namespace api |
428 | 428 |
429 } // namespace extensions | 429 } // namespace extensions |
430 | 430 |
431 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 431 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
OLD | NEW |