OLD | NEW |
---|---|
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_HANDLER_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 24 matching lines...) Expand all Loading... | |
35 | 35 |
36 int timestamp; | 36 int timestamp; |
37 const FileBrowserHandler* handler; | 37 const FileBrowserHandler* handler; |
38 URLPatternSet patterns; | 38 URLPatternSet patterns; |
39 }; | 39 }; |
40 | 40 |
41 typedef std::vector<LastUsedHandler> LastUsedHandlerList; | 41 typedef std::vector<LastUsedHandler> LastUsedHandlerList; |
42 | 42 |
43 bool FindCommonTasks(Profile* profile, | 43 bool FindCommonTasks(Profile* profile, |
44 const std::vector<GURL>& files_list, | 44 const std::vector<GURL>& files_list, |
45 const std::string& privileged_extension_id, | |
SeRya
2012/03/14 11:44:57
Could this parameter different from kFileBrowserDo
Vladislav Kaznacheev
2012/03/14 12:01:05
It is not about flexibility but about dependencies
SeRya
2012/03/14 12:19:22
Could we resolve the dependency issue not touching
Vladislav Kaznacheev
2012/03/14 12:28:07
Checking for component extensions is not enough. T
dgozman
2012/03/14 13:31:11
AFAIK, Picasa Uploader is not a component extensio
| |
45 LastUsedHandlerList* named_action_list); | 46 LastUsedHandlerList* named_action_list); |
46 | 47 |
47 bool GetDefaultTask(Profile* profile, | 48 bool GetDefaultTask(Profile* profile, |
48 const GURL& url, | 49 const GURL& url, |
50 const std::string& privileged_extension_id, | |
49 const FileBrowserHandler** handler); | 51 const FileBrowserHandler** handler); |
50 | 52 |
51 class FileTaskExecutor : public base::RefCountedThreadSafe<FileTaskExecutor> { | 53 class FileTaskExecutor : public base::RefCountedThreadSafe<FileTaskExecutor> { |
52 public: | 54 public: |
53 | 55 |
54 FileTaskExecutor(Profile* profile, | 56 FileTaskExecutor(Profile* profile, |
55 const GURL source_url, | 57 const GURL source_url, |
56 const std::string& extension_id, | 58 const std::string& extension_id, |
57 const std::string& action_id); | 59 const std::string& action_id); |
58 | 60 |
(...skipping 29 matching lines...) Expand all Loading... | |
88 | 90 |
89 Profile* profile_; | 91 Profile* profile_; |
90 const GURL source_url_; | 92 const GURL source_url_; |
91 const std::string extension_id_; | 93 const std::string extension_id_; |
92 const std::string action_id_; | 94 const std::string action_id_; |
93 }; | 95 }; |
94 | 96 |
95 } // namespace file_handler_util | 97 } // namespace file_handler_util |
96 | 98 |
97 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_HANDLER_UTIL_H_ |
OLD | NEW |