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

Side by Side Diff: extensions/common/manifest_handlers/mime_types_handler.h

Issue 797183005: Add a mimeHandler extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@streams-lifetime
Patch Set: rebase Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_ 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_
6 #define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_ 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "extensions/common/extension.h" 13 #include "extensions/common/extension.h"
14 #include "extensions/common/manifest_handler.h" 14 #include "extensions/common/manifest_handler.h"
15 15
16 class MimeTypesHandler { 16 class MimeTypesHandler {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 public: 58 public:
59 MimeTypesHandlerParser(); 59 MimeTypesHandlerParser();
60 ~MimeTypesHandlerParser() override; 60 ~MimeTypesHandlerParser() override;
61 61
62 bool Parse(extensions::Extension* extension, base::string16* error) override; 62 bool Parse(extensions::Extension* extension, base::string16* error) override;
63 63
64 private: 64 private:
65 const std::vector<std::string> Keys() const override; 65 const std::vector<std::string> Keys() const override;
66 }; 66 };
67 67
68 #endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_ 68 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_MIME_TYPES_HANDLER_H_
OLDNEW
« no previous file with comments | « extensions/common/constants.cc ('k') | extensions/common/manifest_handlers/mime_types_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698