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

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

Issue 9692049: Gave native File Browser file handlers higher priority than 3rd party handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698