OLD | NEW |
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 EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ | 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ |
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ | 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Parses the "launcher_page" manifest key. | 22 // Parses the "launcher_page" manifest key. |
23 class LauncherPageHandler : public ManifestHandler { | 23 class LauncherPageHandler : public ManifestHandler { |
24 public: | 24 public: |
25 LauncherPageHandler(); | 25 LauncherPageHandler(); |
26 virtual ~LauncherPageHandler(); | 26 virtual ~LauncherPageHandler(); |
27 | 27 |
28 // Gets the LauncherPageInfo for a given |extension|. | 28 // Gets the LauncherPageInfo for a given |extension|. |
29 static LauncherPageInfo* GetInfo(const Extension* extension); | 29 static LauncherPageInfo* GetInfo(const Extension* extension); |
30 | 30 |
31 // ManifestHandler overrides: | 31 // ManifestHandler overrides: |
32 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 32 virtual bool Parse(Extension* extension, base::string16* error) override; |
33 virtual bool Validate(const Extension* extension, | 33 virtual bool Validate(const Extension* extension, |
34 std::string* error, | 34 std::string* error, |
35 std::vector<InstallWarning>* warnings) const OVERRIDE; | 35 std::vector<InstallWarning>* warnings) const override; |
36 | 36 |
37 private: | 37 private: |
38 virtual const std::vector<std::string> Keys() const OVERRIDE; | 38 virtual const std::vector<std::string> Keys() const override; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(LauncherPageHandler); | 40 DISALLOW_COPY_AND_ASSIGN(LauncherPageHandler); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace extensions | 43 } // namespace extensions |
44 | 44 |
45 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ | 45 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_LAUNCHER_PAGE_INFO_H_ |
OLD | NEW |