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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.h

Issue 10834383: Chrome OS "open with" picker allowing Web Intents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed mime matching code, asserts that the mime-pattern "*" matches a blank mime-type (i.e. "*" mat… Created 8 years, 4 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
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_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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <queue> 10 #include <queue>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 protected: 119 protected:
120 virtual ~GetFileTasksFileBrowserFunction() {} 120 virtual ~GetFileTasksFileBrowserFunction() {}
121 121
122 // AsyncExtensionFunction overrides. 122 // AsyncExtensionFunction overrides.
123 virtual bool RunImpl() OVERRIDE; 123 virtual bool RunImpl() OVERRIDE;
124 124
125 private: 125 private:
126 bool FindDriveAppTasks(const std::vector<GURL>& file_urls, 126 bool FindDriveAppTasks(const std::vector<GURL>& file_urls,
127 ListValue* result_list); 127 ListValue* result_list);
128 bool FindWebIntentTasks(const std::vector<GURL>& file_urls,
129 ListValue* result_list);
128 }; 130 };
129 131
130 // Implements the chrome.fileBrowserPrivate.executeTask method. 132 // Implements the chrome.fileBrowserPrivate.executeTask method.
131 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction { 133 class ExecuteTasksFileBrowserFunction : public AsyncExtensionFunction {
132 public: 134 public:
133 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask"); 135 DECLARE_EXTENSION_FUNCTION_NAME("fileBrowserPrivate.executeTask");
134 136
135 ExecuteTasksFileBrowserFunction(); 137 ExecuteTasksFileBrowserFunction();
136 138
137 void OnTaskExecuted(bool success); 139 void OnTaskExecuted(bool success);
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 DECLARE_EXTENSION_FUNCTION_NAME( 704 DECLARE_EXTENSION_FUNCTION_NAME(
703 "fileBrowserPrivate.requestDirectoryRefresh"); 705 "fileBrowserPrivate.requestDirectoryRefresh");
704 706
705 protected: 707 protected:
706 virtual ~RequestDirectoryRefreshFunction() {} 708 virtual ~RequestDirectoryRefreshFunction() {}
707 709
708 virtual bool RunImpl() OVERRIDE; 710 virtual bool RunImpl() OVERRIDE;
709 }; 711 };
710 712
711 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_ 713 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698