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

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

Issue 7003150: Merge 88759 - CrOS - Fix crash when pressing Enter in file browser dialog (Closed) Base URL: svn://svn.chromium.org/chrome/branches/782/src/
Patch Set: '' 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void GetLocalPathsOnFileThread(const UrlList& file_urls, 119 void GetLocalPathsOnFileThread(const UrlList& file_urls,
120 const std::string& internal_task_id); 120 const std::string& internal_task_id);
121 121
122 // Callback with converted local paths. 122 // Callback with converted local paths.
123 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files, 123 virtual void GetLocalPathsResponseOnUIThread(const FilePathList& files,
124 const std::string& internal_task_id) {} 124 const std::string& internal_task_id) {}
125 125
126 // Get the callback for the hosting tab. 126 // Get the callback for the hosting tab.
127 const Callback& GetCallback() const; 127 const Callback& GetCallback() const;
128 128
129 // Remove the callback for the hosting tab.
130 void RemoveCallback();
131
129 private: 132 private:
130 // Figure out the tab_id of the hosting tab. 133 // Figure out the tab_id of the hosting tab.
131 int32 GetTabId() const; 134 int32 GetTabId() const;
132 }; 135 };
133 136
134 // Select a single file. Closes the dialog window. 137 // Select a single file. Closes the dialog window.
135 class SelectFileFunction 138 class SelectFileFunction
136 : public FileDialogFunction { 139 : public FileDialogFunction {
137 public: 140 public:
138 SelectFileFunction() {} 141 SelectFileFunction() {}
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 virtual ~FileDialogStringsFunction() {} 219 virtual ~FileDialogStringsFunction() {}
217 220
218 // SyncExtensionFunction overrides. 221 // SyncExtensionFunction overrides.
219 virtual bool RunImpl() OVERRIDE; 222 virtual bool RunImpl() OVERRIDE;
220 223
221 private: 224 private:
222 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings"); 225 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.getStrings");
223 }; 226 };
224 227
225 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FILE_BROWSER_PRIVATE_API_H_ 228 #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