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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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_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 <set> 8 #include <set>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/scoped_observer.h" 11 #include "base/scoped_observer.h"
12 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" 12 #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
13 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 13 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
14 #include "chrome/browser/extensions/chrome_extension_function.h" 14 #include "chrome/browser/extensions/chrome_extension_function.h"
15 #include "chrome/browser/extensions/error_console/error_console.h" 15 #include "chrome/browser/extensions/error_console/error_console.h"
16 #include "chrome/browser/extensions/extension_install_prompt.h" 16 #include "chrome/browser/extensions/extension_install_prompt.h"
17 #include "chrome/browser/extensions/extension_uninstall_dialog.h" 17 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
18 #include "chrome/browser/extensions/pack_extension_job.h" 18 #include "chrome/browser/extensions/pack_extension_job.h"
19 #include "chrome/browser/extensions/requirements_checker.h" 19 #include "chrome/browser/extensions/requirements_checker.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "content/public/browser/render_view_host.h" 22 #include "content/public/browser/render_view_host.h"
23 #include "extensions/browser/browser_context_keyed_api_factory.h" 23 #include "extensions/browser/browser_context_keyed_api_factory.h"
24 #include "extensions/browser/event_router.h" 24 #include "extensions/browser/event_router.h"
25 #include "extensions/browser/extension_registry_observer.h" 25 #include "extensions/browser/extension_registry_observer.h"
26 #include "ui/shell_dialogs/select_file_dialog.h" 26 #include "ui/shell_dialogs/select_file_dialog.h"
27 #include "webkit/browser/fileapi/file_system_context.h" 27 #include "storage/browser/fileapi/file_system_context.h"
28 #include "webkit/browser/fileapi/file_system_operation.h" 28 #include "storage/browser/fileapi/file_system_operation.h"
29 29
30 class Profile; 30 class Profile;
31 31
32 namespace extensions { 32 namespace extensions {
33 33
34 class ExtensionError; 34 class ExtensionError;
35 class ExtensionRegistry; 35 class ExtensionRegistry;
36 class ExtensionSystem; 36 class ExtensionSystem;
37 class ManagementPolicy; 37 class ManagementPolicy;
38 38
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 DEVELOPERPRIVATE_LOADUNPACKEDCROS); 405 DEVELOPERPRIVATE_LOADUNPACKEDCROS);
406 406
407 DeveloperPrivateLoadDirectoryFunction(); 407 DeveloperPrivateLoadDirectoryFunction();
408 408
409 protected: 409 protected:
410 virtual ~DeveloperPrivateLoadDirectoryFunction(); 410 virtual ~DeveloperPrivateLoadDirectoryFunction();
411 411
412 // ExtensionFunction: 412 // ExtensionFunction:
413 virtual bool RunAsync() OVERRIDE; 413 virtual bool RunAsync() OVERRIDE;
414 414
415 bool LoadByFileSystemAPI(const fileapi::FileSystemURL& directory_url); 415 bool LoadByFileSystemAPI(const storage::FileSystemURL& directory_url);
416 416
417 void ClearExistingDirectoryContent(const base::FilePath& project_path); 417 void ClearExistingDirectoryContent(const base::FilePath& project_path);
418 418
419 void ReadDirectoryByFileSystemAPI(const base::FilePath& project_path, 419 void ReadDirectoryByFileSystemAPI(const base::FilePath& project_path,
420 const base::FilePath& destination_path); 420 const base::FilePath& destination_path);
421 421
422 void ReadDirectoryByFileSystemAPICb( 422 void ReadDirectoryByFileSystemAPICb(
423 const base::FilePath& project_path, 423 const base::FilePath& project_path,
424 const base::FilePath& destination_path, 424 const base::FilePath& destination_path,
425 base::File::Error result, 425 base::File::Error result,
426 const fileapi::FileSystemOperation::FileEntryList& file_list, 426 const storage::FileSystemOperation::FileEntryList& file_list,
427 bool has_more); 427 bool has_more);
428 428
429 void SnapshotFileCallback( 429 void SnapshotFileCallback(
430 const base::FilePath& target_path, 430 const base::FilePath& target_path,
431 base::File::Error result, 431 base::File::Error result,
432 const base::File::Info& file_info, 432 const base::File::Info& file_info,
433 const base::FilePath& platform_path, 433 const base::FilePath& platform_path,
434 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); 434 const scoped_refptr<storage::ShareableFileReference>& file_ref);
435 435
436 void CopyFile(const base::FilePath& src_path, 436 void CopyFile(const base::FilePath& src_path,
437 const base::FilePath& dest_path); 437 const base::FilePath& dest_path);
438 438
439 void Load(); 439 void Load();
440 440
441 scoped_refptr<fileapi::FileSystemContext> context_; 441 scoped_refptr<storage::FileSystemContext> context_;
442 442
443 // syncfs url representing the root of the folder to be copied. 443 // syncfs url representing the root of the folder to be copied.
444 std::string project_base_url_; 444 std::string project_base_url_;
445 445
446 // physical path on disc of the folder to be copied. 446 // physical path on disc of the folder to be copied.
447 base::FilePath project_base_path_; 447 base::FilePath project_base_path_;
448 448
449 private: 449 private:
450 int pending_copy_operations_count_; 450 int pending_copy_operations_count_;
451 451
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 485
486 // ExtensionFunction: 486 // ExtensionFunction:
487 virtual bool RunAsync() OVERRIDE; 487 virtual bool RunAsync() OVERRIDE;
488 }; 488 };
489 489
490 } // namespace api 490 } // namespace api
491 491
492 } // namespace extensions 492 } // namespace extensions
493 493
494 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 494 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698