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

Side by Side Diff: chrome/common/extensions/manifest_handler.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 #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/logging.h" 10 #include "base/logging.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 LAZY_INSTANCE_INITIALIZER; 140 LAZY_INSTANCE_INITIALIZER;
141 141
142 } // namespace 142 } // namespace
143 143
144 ManifestHandler::ManifestHandler() { 144 ManifestHandler::ManifestHandler() {
145 } 145 }
146 146
147 ManifestHandler::~ManifestHandler() { 147 ManifestHandler::~ManifestHandler() {
148 } 148 }
149 149
150 bool ManifestHandler::AlwaysParseForType(Manifest::Type type) { 150 bool ManifestHandler::AlwaysParseForType(Manifest::Type type) const {
151 return false; 151 return false;
152 } 152 }
153 153
154 const std::vector<std::string>& ManifestHandler::PrerequisiteKeys() { 154 const std::vector<std::string>& ManifestHandler::PrerequisiteKeys() const {
155 return g_empty_string_vector.Get(); 155 return g_empty_string_vector.Get();
156 } 156 }
157 157
158 // static 158 // static
159 void ManifestHandler::Register(const std::string& key, 159 void ManifestHandler::Register(const std::string& key,
160 linked_ptr<ManifestHandler> handler) { 160 linked_ptr<ManifestHandler> handler) {
161 g_registry.Get().RegisterManifestHandler(key, handler); 161 g_registry.Get().RegisterManifestHandler(key, handler);
162 } 162 }
163 163
164 // static 164 // static
165 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) { 165 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) {
166 return g_registry.Get().ParseExtension(extension, error); 166 return g_registry.Get().ParseExtension(extension, error);
167 } 167 }
168 168
169 // static 169 // static
170 void ManifestHandler::ClearRegistryForTesting() { 170 void ManifestHandler::ClearRegistryForTesting() {
171 g_registry.Get().ClearForTesting(); 171 g_registry.Get().ClearForTesting();
172 } 172 }
173 173
174 } // namespace extensions 174 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698