OLD | NEW |
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 #include "chrome/common/extensions/manifest_handler.h" | 5 #include "chrome/common/extensions/manifest_handler.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 LAZY_INSTANCE_INITIALIZER; | 59 LAZY_INSTANCE_INITIALIZER; |
60 | 60 |
61 } // namespace | 61 } // namespace |
62 | 62 |
63 ManifestHandler::ManifestHandler() { | 63 ManifestHandler::ManifestHandler() { |
64 } | 64 } |
65 | 65 |
66 ManifestHandler::~ManifestHandler() { | 66 ManifestHandler::~ManifestHandler() { |
67 } | 67 } |
68 | 68 |
69 bool ManifestHandler::AlwaysParseForType(Extension::Type type) { | 69 bool ManifestHandler::AlwaysParseForType(Manifest::Type type) { |
70 return false; | 70 return false; |
71 } | 71 } |
72 | 72 |
73 // static | 73 // static |
74 void ManifestHandler::Register(const std::string& key, | 74 void ManifestHandler::Register(const std::string& key, |
75 ManifestHandler* handler) { | 75 ManifestHandler* handler) { |
76 g_registry.Get().RegisterManifestHandler(key, handler); | 76 g_registry.Get().RegisterManifestHandler(key, handler); |
77 } | 77 } |
78 | 78 |
79 // static | 79 // static |
80 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) { | 80 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) { |
81 return g_registry.Get().ParseExtension(extension, error); | 81 return g_registry.Get().ParseExtension(extension, error); |
82 } | 82 } |
83 | 83 |
84 } // namespace extensions | 84 } // namespace extensions |
OLD | NEW |