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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_handler.h

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_handler.h
diff --git a/chrome/browser/chromeos/extensions/file_browser_handler.h b/chrome/browser/chromeos/extensions/file_browser_handler.h
index c4aa5eb0e42953d2ee5636ee590892c6a5fa6919..aa2b0665b851edd2ff5f11e877cf0e8da3e5144f 100644
--- a/chrome/browser/chromeos/extensions/file_browser_handler.h
+++ b/chrome/browser/chromeos/extensions/file_browser_handler.h
@@ -23,19 +23,6 @@ class FileBrowserHandler {
public:
typedef std::vector<linked_ptr<FileBrowserHandler> > List;
- // Returns true iff the extension with id |extension_id| is allowed to use
- // MIME type filters.
- static bool ExtensionWhitelistedForMIMETypes(const std::string& extension_id);
-
- // Returns list of extensions' ids that are allowed to use MIME type filters.
- static std::vector<std::string> GetMIMETypeWhitelist();
-
- // Whitelists the extension to use MIME type filters for a test.
- // |extension_id| should be owned by the test code.
- static void set_extension_whitelisted_for_test(std::string* extension_id) {
- g_test_extension_id_ = extension_id;
- }
-
FileBrowserHandler();
~FileBrowserHandler();
@@ -61,11 +48,6 @@ class FileBrowserHandler {
bool MatchesURL(const GURL& url) const;
void ClearPatterns();
- // Adds a MIME type filter to the handler.
- void AddMIMEType(const std::string& mime_type);
- // Tests if the handler has registered a filter for the MIME type.
- bool CanHandleMIMEType(const std::string& mime_type) const;
-
// Action icon path.
const std::string icon_path() const { return default_icon_path_; }
void set_icon_path(const std::string& path) {
@@ -91,10 +73,6 @@ class FileBrowserHandler {
static List* GetHandlers(const extensions::Extension* extension);
private:
- // The id of the extension that will be whitelisted to use MIME type filters
- // during tests.
- static std::string* g_test_extension_id_;
-
// The id for the extension this action belongs to (as defined in the
// extension manifest).
std::string extension_id_;
@@ -106,8 +84,6 @@ class FileBrowserHandler {
// A list of file filters.
extensions::URLPatternSet url_set_;
- // A list of MIME type filters.
- std::set<std::string> mime_type_set_;
};
// Parses the "file_browser_handlers" extension manifest key.
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698