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

Side by Side Diff: chrome/browser/file_select_helper.h

Issue 2450543002: Directory upload: remember the last directory chosen, not its parent (Closed)
Patch Set: Tweak test file paths Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/file_select_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FILE_SELECT_HELPER_H_ 5 #ifndef CHROME_BROWSER_FILE_SELECT_HELPER_H_
6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_ 6 #define CHROME_BROWSER_FILE_SELECT_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 private: 59 private:
60 friend class base::RefCountedThreadSafe<FileSelectHelper>; 60 friend class base::RefCountedThreadSafe<FileSelectHelper>;
61 friend class base::DeleteHelper<FileSelectHelper>; 61 friend class base::DeleteHelper<FileSelectHelper>;
62 friend struct content::BrowserThread::DeleteOnThread< 62 friend struct content::BrowserThread::DeleteOnThread<
63 content::BrowserThread::UI>; 63 content::BrowserThread::UI>;
64 64
65 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, IsAcceptTypeValid); 65 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, IsAcceptTypeValid);
66 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, ZipPackage); 66 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, ZipPackage);
67 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, GetSanitizedFileName); 67 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, GetSanitizedFileName);
68 FRIEND_TEST_ALL_PREFIXES(FileSelectHelperTest, LastSelectedDirectory);
68 explicit FileSelectHelper(Profile* profile); 69 explicit FileSelectHelper(Profile* profile);
69 ~FileSelectHelper() override; 70 ~FileSelectHelper() override;
70 71
71 // Utility class which can listen for directory lister events and relay 72 // Utility class which can listen for directory lister events and relay
72 // them to the main object with the correct tracking id. 73 // them to the main object with the correct tracking id.
73 class DirectoryListerDispatchDelegate 74 class DirectoryListerDispatchDelegate
74 : public net::DirectoryLister::DirectoryListerDelegate { 75 : public net::DirectoryLister::DirectoryListerDelegate {
75 public: 76 public:
76 DirectoryListerDispatchDelegate(FileSelectHelper* parent, int id) 77 DirectoryListerDispatchDelegate(FileSelectHelper* parent, int id)
77 : parent_(parent), 78 : parent_(parent),
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 content::NotificationRegistrar notification_registrar_; 247 content::NotificationRegistrar notification_registrar_;
247 248
248 // Temporary files only used on OSX. This class is responsible for deleting 249 // Temporary files only used on OSX. This class is responsible for deleting
249 // these files when they are no longer needed. 250 // these files when they are no longer needed.
250 std::vector<base::FilePath> temporary_files_; 251 std::vector<base::FilePath> temporary_files_;
251 252
252 DISALLOW_COPY_AND_ASSIGN(FileSelectHelper); 253 DISALLOW_COPY_AND_ASSIGN(FileSelectHelper);
253 }; 254 };
254 255
255 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_ 256 #endif // CHROME_BROWSER_FILE_SELECT_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/file_select_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698