| 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 CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_HAN
DLER_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_HAN
DLER_H_ |
| 6 #define CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_HAN
DLER_H_ | 6 #define CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_HAN
DLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // A file containing a list of sites for a supervised user. | 26 // A file containing a list of sites for a supervised user. |
| 27 base::FilePath site_list; | 27 base::FilePath site_list; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Parses the "content_pack" manifest key for a supervised user. | 30 // Parses the "content_pack" manifest key for a supervised user. |
| 31 class SupervisedUserHandler : public ManifestHandler { | 31 class SupervisedUserHandler : public ManifestHandler { |
| 32 public: | 32 public: |
| 33 SupervisedUserHandler(); | 33 SupervisedUserHandler(); |
| 34 virtual ~SupervisedUserHandler(); | 34 virtual ~SupervisedUserHandler(); |
| 35 | 35 |
| 36 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE; | 36 virtual bool Parse(Extension* extension, base::string16* error) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 virtual const std::vector<std::string> Keys() const OVERRIDE; | 39 virtual const std::vector<std::string> Keys() const override; |
| 40 | 40 |
| 41 bool LoadSites(SupervisedUserInfo* info, | 41 bool LoadSites(SupervisedUserInfo* info, |
| 42 const base::DictionaryValue* content_pack_value, | 42 const base::DictionaryValue* content_pack_value, |
| 43 base::string16* error); | 43 base::string16* error); |
| 44 bool LoadConfigurations(SupervisedUserInfo* info, | 44 bool LoadConfigurations(SupervisedUserInfo* info, |
| 45 const base::DictionaryValue* content_pack_value, | 45 const base::DictionaryValue* content_pack_value, |
| 46 base::string16* error); | 46 base::string16* error); |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(SupervisedUserHandler); | 48 DISALLOW_COPY_AND_ASSIGN(SupervisedUserHandler); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace extensions | 51 } // namespace extensions |
| 52 | 52 |
| 53 #endif // CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_
HANDLER_H_ | 53 #endif // CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_
HANDLER_H_ |
| OLD | NEW |