| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 LAZY_INSTANCE_INITIALIZER; | 58 LAZY_INSTANCE_INITIALIZER; |
| 59 | 59 |
| 60 } // namespace | 60 } // namespace |
| 61 | 61 |
| 62 ManifestHandler::ManifestHandler() { | 62 ManifestHandler::ManifestHandler() { |
| 63 } | 63 } |
| 64 | 64 |
| 65 ManifestHandler::~ManifestHandler() { | 65 ManifestHandler::~ManifestHandler() { |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool ManifestHandler::HasNoKey(Extension* extension, string16* error) { |
| 69 return true; |
| 70 } |
| 71 |
| 68 // static | 72 // static |
| 69 void ManifestHandler::Register(const std::string& key, | 73 void ManifestHandler::Register(const std::string& key, |
| 70 ManifestHandler* handler) { | 74 ManifestHandler* handler) { |
| 71 g_registry.Get().RegisterManifestHandler(key, handler); | 75 g_registry.Get().RegisterManifestHandler(key, handler); |
| 72 } | 76 } |
| 73 | 77 |
| 74 // static | 78 // static |
| 75 ManifestHandler* ManifestHandler::Get(const std::string& key) { | 79 ManifestHandler* ManifestHandler::Get(const std::string& key) { |
| 76 return g_registry.Get().GetManifestHandler(key); | 80 return g_registry.Get().GetManifestHandler(key); |
| 77 } | 81 } |
| 78 | 82 |
| 79 // static | 83 // static |
| 80 std::vector<std::string> ManifestHandler::GetKeys() { | 84 std::vector<std::string> ManifestHandler::GetKeys() { |
| 81 return g_registry.Get().GetManifestHandlerKeys(); | 85 return g_registry.Get().GetManifestHandlerKeys(); |
| 82 } | 86 } |
| 83 | 87 |
| 84 } // namespace extensions | 88 } // namespace extensions |
| OLD | NEW |