| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
| 16 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" | 16 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h" |
| 17 #include "chrome/browser/chromeos/gdata/gdata_cache.h" | 17 #include "chrome/browser/chromeos/gdata/gdata_cache.h" |
| 18 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 18 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
| 19 #include "chrome/browser/extensions/extension_function.h" | 19 #include "chrome/browser/extensions/extension_function.h" |
| 20 #include "chrome/browser/prefs/pref_service.h" | 20 #include "chrome/browser/prefs/pref_service.h" |
| 21 #include "googleurl/src/url_util.h" | 21 #include "googleurl/src/url_util.h" |
| 22 | 22 |
| 23 class GURL; | 23 class GURL; |
| 24 | 24 |
| 25 namespace fileapi { | 25 namespace fileapi { |
| 26 class FileSystemContext; | 26 class FileSystemContext; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gdata { |
| 30 struct SearchResultInfo; |
| 31 } |
| 32 |
| 29 namespace ui { | 33 namespace ui { |
| 30 struct SelectedFileInfo; | 34 struct SelectedFileInfo; |
| 31 } | 35 } |
| 32 | 36 |
| 33 namespace gdata { | |
| 34 struct SearchResultInfo; | |
| 35 } | |
| 36 | |
| 37 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. | 37 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. |
| 38 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { | 38 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { |
| 39 public: | 39 public: |
| 40 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem"); | 40 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem"); |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 virtual ~RequestLocalFileSystemFunction() {} | 43 virtual ~RequestLocalFileSystemFunction() {} |
| 44 | 44 |
| 45 // AsyncExtensionFunction overrides. | 45 // AsyncExtensionFunction overrides. |
| 46 virtual bool RunImpl() OVERRIDE; | 46 virtual bool RunImpl() OVERRIDE; |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 DECLARE_EXTENSION_FUNCTION_NAME( | 693 DECLARE_EXTENSION_FUNCTION_NAME( |
| 694 "fileBrowserPrivate.requestDirectoryRefresh"); | 694 "fileBrowserPrivate.requestDirectoryRefresh"); |
| 695 | 695 |
| 696 protected: | 696 protected: |
| 697 virtual ~RequestDirectoryRefreshFunction() {} | 697 virtual ~RequestDirectoryRefreshFunction() {} |
| 698 | 698 |
| 699 virtual bool RunImpl() OVERRIDE; | 699 virtual bool RunImpl() OVERRIDE; |
| 700 }; | 700 }; |
| 701 | 701 |
| 702 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 702 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
| OLD | NEW |