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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
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 // File contains the fileBrowserHandlerInternal.selectFile extension function. 5 // File contains the fileBrowserHandlerInternal.selectFile extension function.
6 // The function prompts user to select a file path to be used by the caller. It 6 // The function prompts user to select a file path to be used by the caller. It
7 // will fail if it isn't invoked by a user gesture (e.g. a mouse click or a 7 // will fail if it isn't invoked by a user gesture (e.g. a mouse click or a
8 // keyboard key press). 8 // keyboard key press).
9 // Note that the target file is never actually created by this function, even 9 // Note that the target file is never actually created by this function, even
10 // if the selected path doesn't exist. 10 // if the selected path doesn't exist.
11 11
12 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_API _H_ 12 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_API _H_
13 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_API _H_ 13 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_API _H_
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
19 #include "chrome/browser/extensions/chrome_extension_function.h" 19 #include "chrome/browser/extensions/chrome_extension_function.h"
20 20
21 class Browser; 21 class Browser;
22 class FileBrowserHandlerInternalSelectFileFunction; 22 class FileBrowserHandlerInternalSelectFileFunction;
23 23
24 namespace file_manager { 24 namespace file_manager {
25 25
26 namespace util { 26 namespace util {
27 struct EntryDefinition; 27 struct EntryDefinition;
28 struct FileDefinition;
29 } 28 }
30 29
31 // Interface that is used by FileBrowserHandlerInternalSelectFileFunction to 30 // Interface that is used by FileBrowserHandlerInternalSelectFileFunction to
32 // select the file path that should be reported back to the extension function 31 // select the file path that should be reported back to the extension function
33 // caller. Nobody will take the ownership of the interface implementation, so 32 // caller. Nobody will take the ownership of the interface implementation, so
34 // it should delete itself once it's done. 33 // it should delete itself once it's done.
35 class FileSelector { 34 class FileSelector {
36 public: 35 public:
37 virtual ~FileSelector() {} 36 virtual ~FileSelector() {}
38 37
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 136
138 // List of permissions and paths that have to be granted for the selected 137 // List of permissions and paths that have to be granted for the selected
139 // files. 138 // files.
140 std::vector<std::pair<base::FilePath, int> > permissions_to_grant_; 139 std::vector<std::pair<base::FilePath, int> > permissions_to_grant_;
141 140
142 DECLARE_EXTENSION_FUNCTION("fileBrowserHandlerInternal.selectFile", 141 DECLARE_EXTENSION_FUNCTION("fileBrowserHandlerInternal.selectFile",
143 FILEBROWSERHANDLERINTERNAL_SELECTFILE) 142 FILEBROWSERHANDLERINTERNAL_SELECTFILE)
144 }; 143 };
145 144
146 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_ API_H_ 145 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_HANDLER_ API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698