| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 std::vector<UrlHandlerInfo> handlers; | 51 std::vector<UrlHandlerInfo> handlers; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 // Parses the "url_handlers" manifest key. | 54 // Parses the "url_handlers" manifest key. |
| 55 class UrlHandlersParser : public ManifestHandler { | 55 class UrlHandlersParser : public ManifestHandler { |
| 56 public: | 56 public: |
| 57 UrlHandlersParser(); | 57 UrlHandlersParser(); |
| 58 virtual ~UrlHandlersParser(); | 58 virtual ~UrlHandlersParser(); |
| 59 | 59 |
| 60 // ManifestHandler API | 60 // ManifestHandler API |
| 61 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 61 virtual bool Parse(Extension* extension, base::string16* error) override; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 virtual const std::vector<std::string> Keys() const OVERRIDE; | 64 virtual const std::vector<std::string> Keys() const override; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(UrlHandlersParser); | 66 DISALLOW_COPY_AND_ASSIGN(UrlHandlersParser); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace extensions | 69 } // namespace extensions |
| 70 | 70 |
| 71 #endif // CHROME_COMMON_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ | 71 #endif // CHROME_COMMON_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_PARSER_H_ |
| OLD | NEW |