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

Unified Diff: chrome/common/extensions/mime_types_handler.h

Issue 254503002: Add mime_type_handler key to extension manifests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the field optional Created 6 years, 8 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
Index: chrome/common/extensions/mime_types_handler.h
diff --git a/chrome/common/extensions/mime_types_handler.h b/chrome/common/extensions/mime_types_handler.h
index 57788b6b1f69841f61b33a6de142960e17ba4e63..90c8f44a9060564979414a74d6f9a018401b78c5 100644
--- a/chrome/common/extensions/mime_types_handler.h
+++ b/chrome/common/extensions/mime_types_handler.h
@@ -34,6 +34,13 @@ class MimeTypesHandler {
// Tests if the handler has registered a filter for the MIME type.
bool CanHandleMIMEType(const std::string& mime_type) const;
+ // Set the URL that will be used to handle MIME type requests.
+ void set_handler_url(const std::string& handler_url) {
+ handler_url_ = handler_url;
+ }
+ // The URL that will be used to handle MIME type requests.
+ const std::string handler_url() const { return handler_url_; }
+
private:
// The id for the extension this action belongs to (as defined in the
// extension manifest).
@@ -41,6 +48,8 @@ class MimeTypesHandler {
// A list of MIME type filters.
std::set<std::string> mime_type_set_;
+
+ std::string handler_url_;
};
class MimeTypesHandlerParser : public extensions::ManifestHandler {
« no previous file with comments | « chrome/common/extensions/api/_manifest_features.json ('k') | chrome/common/extensions/mime_types_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698