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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. | 26 // Implements the chrome.fileBrowserPrivate.requestLocalFileSystem method. |
27 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { | 27 class RequestLocalFileSystemFunction : public AsyncExtensionFunction { |
28 protected: | 28 protected: |
29 // AsyncExtensionFunction overrides. | 29 // AsyncExtensionFunction overrides. |
30 virtual bool RunImpl() OVERRIDE; | 30 virtual bool RunImpl() OVERRIDE; |
31 | 31 |
32 private: | 32 private: |
33 class LocalFileSystemCallbackDispatcher; | 33 class LocalFileSystemCallbackDispatcher; |
34 | 34 |
35 // Adds gdata mount point. | |
36 void AddGDataMountPoint(); | |
37 | |
38 void RespondSuccessOnUIThread(const std::string& name, | 35 void RespondSuccessOnUIThread(const std::string& name, |
39 const GURL& root_path); | 36 const GURL& root_path); |
40 void RespondFailedOnUIThread(base::PlatformFileError error_code); | 37 void RespondFailedOnUIThread(base::PlatformFileError error_code); |
41 void RequestOnFileThread(const GURL& source_url, int child_id); | 38 void RequestOnFileThread(const GURL& source_url, int child_id); |
42 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem"); | 39 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.requestLocalFileSystem"); |
43 }; | 40 }; |
44 | 41 |
45 // Implements the chrome.fileBrowserPrivate.addFileWatch method. | 42 // Implements the chrome.fileBrowserPrivate.addFileWatch method. |
46 class FileWatchBrowserFunctionBase : public AsyncExtensionFunction { | 43 class FileWatchBrowserFunctionBase : public AsyncExtensionFunction { |
47 protected: | 44 protected: |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. | 604 // Implements the chrome.fileBrowserPrivate.getNetworkConnectionState method. |
608 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { | 605 class GetNetworkConnectionStateFunction : public SyncExtensionFunction { |
609 protected: | 606 protected: |
610 virtual bool RunImpl() OVERRIDE; | 607 virtual bool RunImpl() OVERRIDE; |
611 private: | 608 private: |
612 DECLARE_EXTENSION_FUNCTION_NAME( | 609 DECLARE_EXTENSION_FUNCTION_NAME( |
613 "fileBrowserPrivate.getNetworkConnectionState"); | 610 "fileBrowserPrivate.getNetworkConnectionState"); |
614 }; | 611 }; |
615 | 612 |
616 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ | 613 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ |
OLD | NEW |