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

Side by Side Diff: chrome/browser/extensions/extension_file_browser_private_api.h

Issue 7108066: CrOS - Fix crash when pressing Enter in file browser dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, address comments Created 9 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_file_browser_private_api.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void GetLocalPathsOnFileThread(const UrlList& file_urls, 160 void GetLocalPathsOnFileThread(const UrlList& file_urls,
161 const std::string& internal_task_id); 161 const std::string& internal_task_id);
162 162
163 // Callback with converted local paths. 163 // Callback with converted local paths.
164 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, 164 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
165 const std::string& internal_task_id) {} 165 const std::string& internal_task_id) {}
166 166
167 // Get the callback for the hosting tab. 167 // Get the callback for the hosting tab.
168 const Callback& GetCallback() const; 168 const Callback& GetCallback() const;
169 169
170 // Remove the callback for the hosting tab.
171 void RemoveCallback();
172
170 private: 173 private:
171 // Figure out the tab_id of the hosting tab. 174 // Figure out the tab_id of the hosting tab.
172 int32 GetTabId() const; 175 int32 GetTabId() const;
173 }; 176 };
174 177
175 // Select a single file. Closes the dialog window. 178 // Select a single file. Closes the dialog window.
176 class SelectFileFunction 179 class SelectFileFunction
177 : public FileDialogFunction { 180 : public FileDialogFunction {
178 public: 181 public:
179 SelectFileFunction() {} 182 SelectFileFunction() {}
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 virtual ~FileDialogStringsFunction() {} 260 virtual ~FileDialogStringsFunction() {}
258 261
259 // SyncExtensionFunction overrides. 262 // SyncExtensionFunction overrides.
260 virtual bool RunImpl() OVERRIDE; 263 virtual bool RunImpl() OVERRIDE;
261 264
262 private: 265 private:
263 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); 266 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings");
264 }; 267 };
265 268
266 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 269 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698