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

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

Issue 107803004: Add base:: to string16 in extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a using Created 7 years 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 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 EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_ 5 #ifndef EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_
6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_ 6 #define EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "extensions/common/extension.h" 12 #include "extensions/common/extension.h"
13 #include "extensions/common/manifest_handler.h" 13 #include "extensions/common/manifest_handler.h"
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 class SharedModuleInfo : public Extension::ManifestData { 17 class SharedModuleInfo : public Extension::ManifestData {
18 public: 18 public:
19 SharedModuleInfo(); 19 SharedModuleInfo();
20 virtual ~SharedModuleInfo(); 20 virtual ~SharedModuleInfo();
21 21
22 bool Parse(const Extension* extension, string16* error); 22 bool Parse(const Extension* extension, base::string16* error);
23 23
24 struct ImportInfo { 24 struct ImportInfo {
25 std::string extension_id; 25 std::string extension_id;
26 std::string minimum_version; 26 std::string minimum_version;
27 }; 27 };
28 28
29 // Utility functions. 29 // Utility functions.
30 static void ParseImportedPath(const std::string& path, 30 static void ParseImportedPath(const std::string& path,
31 std::string* import_id, 31 std::string* import_id,
32 std::string* import_relative_path); 32 std::string* import_relative_path);
(...skipping 17 matching lines...) Expand all
50 // Optional list of module imports of other extensions. 50 // Optional list of module imports of other extensions.
51 std::vector<ImportInfo> imports_; 51 std::vector<ImportInfo> imports_;
52 }; 52 };
53 53
54 // Parses all import/export keys in the manifest. 54 // Parses all import/export keys in the manifest.
55 class SharedModuleHandler : public ManifestHandler { 55 class SharedModuleHandler : public ManifestHandler {
56 public: 56 public:
57 SharedModuleHandler(); 57 SharedModuleHandler();
58 virtual ~SharedModuleHandler(); 58 virtual ~SharedModuleHandler();
59 59
60 virtual bool Parse(Extension* extension, string16* error) OVERRIDE; 60 virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
61 virtual bool Validate(const Extension* extension, 61 virtual bool Validate(const Extension* extension,
62 std::string* error, 62 std::string* error,
63 std::vector<InstallWarning>* warnings) const OVERRIDE; 63 std::vector<InstallWarning>* warnings) const OVERRIDE;
64 64
65 private: 65 private:
66 virtual const std::vector<std::string> Keys() const OVERRIDE; 66 virtual const std::vector<std::string> Keys() const OVERRIDE;
67 }; 67 };
68 68
69 } // namespace extensions 69 } // namespace extensions
70 70
71 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_ 71 #endif // EXTENSIONS_COMMON_MANIFEST_HANDLERS_SHARED_MODULE_INFO_H_
OLDNEW
« no previous file with comments | « extensions/common/manifest_handlers/sandboxed_page_info.cc ('k') | extensions/common/manifest_handlers/shared_module_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698