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/api/extension_api.h" | 5 #include "chrome/common/extensions/api/extension_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // Schemas to be loaded from resources. | 234 // Schemas to be loaded from resources. |
235 CHECK(unloaded_schemas_.empty()); | 235 CHECK(unloaded_schemas_.empty()); |
236 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); | 236 RegisterSchemaResource("app", IDR_EXTENSION_API_JSON_APP); |
237 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); | 237 RegisterSchemaResource("browserAction", IDR_EXTENSION_API_JSON_BROWSERACTION); |
238 RegisterSchemaResource("browsingData", IDR_EXTENSION_API_JSON_BROWSINGDATA); | 238 RegisterSchemaResource("browsingData", IDR_EXTENSION_API_JSON_BROWSINGDATA); |
239 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); | 239 RegisterSchemaResource("commands", IDR_EXTENSION_API_JSON_COMMANDS); |
240 RegisterSchemaResource("declarativeContent", | 240 RegisterSchemaResource("declarativeContent", |
241 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); | 241 IDR_EXTENSION_API_JSON_DECLARATIVE_CONTENT); |
242 RegisterSchemaResource("declarativeWebRequest", | 242 RegisterSchemaResource("declarativeWebRequest", |
243 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); | 243 IDR_EXTENSION_API_JSON_DECLARATIVE_WEBREQUEST); |
244 RegisterSchemaResource("experimental.rlz", | |
245 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ); | |
246 RegisterSchemaResource("runtime", IDR_EXTENSION_API_JSON_RUNTIME); | 244 RegisterSchemaResource("runtime", IDR_EXTENSION_API_JSON_RUNTIME); |
247 RegisterSchemaResource("fileBrowserHandler", | 245 RegisterSchemaResource("fileBrowserHandler", |
248 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); | 246 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER); |
249 RegisterSchemaResource("fileBrowserPrivate", | 247 RegisterSchemaResource("fileBrowserPrivate", |
250 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE); | 248 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE); |
251 RegisterSchemaResource("inputMethodPrivate", | 249 RegisterSchemaResource("inputMethodPrivate", |
252 IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE); | 250 IDR_EXTENSION_API_JSON_INPUTMETHODPRIVATE); |
253 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); | 251 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); |
254 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); | 252 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); |
255 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); | 253 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 break; | 412 break; |
415 | 413 |
416 api_name_candidate = api_name_candidate.substr(0, last_dot_index); | 414 api_name_candidate = api_name_candidate.substr(0, last_dot_index); |
417 } | 415 } |
418 | 416 |
419 *child_name = ""; | 417 *child_name = ""; |
420 return std::string(); | 418 return std::string(); |
421 } | 419 } |
422 | 420 |
423 } // namespace extensions | 421 } // namespace extensions |
OLD | NEW |