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

Side by Side Diff: chrome/common/extensions/api/supervised_user_private/supervised_user_handler.h

Issue 345563008: Rename "managed (mode|user)" to "supervised user" (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_MANAGED_MODE_PRIVATE_MANAGED_MODE_HANDLER_H _ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_HAN DLER_H_
6 #define CHROME_COMMON_EXTENSIONS_API_MANAGED_MODE_PRIVATE_MANAGED_MODE_HANDLER_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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 #include "extensions/common/extension_resource.h" 13 #include "extensions/common/extension_resource.h"
14 #include "extensions/common/manifest.h" 14 #include "extensions/common/manifest.h"
15 #include "extensions/common/manifest_handler.h" 15 #include "extensions/common/manifest_handler.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 struct ManagedModeInfo : public Extension::ManifestData { 19 struct SupervisedUserInfo : public Extension::ManifestData {
20 ManagedModeInfo(); 20 SupervisedUserInfo();
21 virtual ~ManagedModeInfo(); 21 virtual ~SupervisedUserInfo();
22 22
23 static bool IsContentPack(const Extension* extension); 23 static bool IsContentPack(const Extension* extension);
24 static ExtensionResource GetContentPackSiteList(const Extension* extension); 24 static ExtensionResource GetContentPackSiteList(const Extension* extension);
25 25
26 // A file containing a list of sites for Managed Mode. 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 Managed Mode. 30 // Parses the "content_pack" manifest key for a supervised user.
31 class ManagedModeHandler : public ManifestHandler { 31 class SupervisedUserHandler : public ManifestHandler {
32 public: 32 public:
33 ManagedModeHandler(); 33 SupervisedUserHandler();
34 virtual ~ManagedModeHandler(); 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 private: 38 private:
38 virtual const std::vector<std::string> Keys() const OVERRIDE; 39 virtual const std::vector<std::string> Keys() const OVERRIDE;
39 40
40 bool LoadSites(ManagedModeInfo* info, 41 bool LoadSites(SupervisedUserInfo* info,
41 const base::DictionaryValue* content_pack_value, 42 const base::DictionaryValue* content_pack_value,
42 base::string16* error); 43 base::string16* error);
43 bool LoadConfigurations(ManagedModeInfo* info, 44 bool LoadConfigurations(SupervisedUserInfo* info,
44 const base::DictionaryValue* content_pack_value, 45 const base::DictionaryValue* content_pack_value,
45 base::string16* error); 46 base::string16* error);
46 47
47 DISALLOW_COPY_AND_ASSIGN(ManagedModeHandler); 48 DISALLOW_COPY_AND_ASSIGN(SupervisedUserHandler);
48 }; 49 };
49 50
50 } // namespace extensions 51 } // namespace extensions
51 52
52 #endif // CHROME_COMMON_EXTENSIONS_API_MANAGED_MODE_PRIVATE_MANAGED_MODE_HANDLE R_H_ 53 #endif // CHROME_COMMON_EXTENSIONS_API_SUPERVISED_USER_PRIVATE_SUPERVISED_USER_ HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698