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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); | 258 RegisterSchemaResource("pageAction", IDR_EXTENSION_API_JSON_PAGEACTION); |
259 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); | 259 RegisterSchemaResource("pageActions", IDR_EXTENSION_API_JSON_PAGEACTIONS); |
260 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); | 260 RegisterSchemaResource("privacy", IDR_EXTENSION_API_JSON_PRIVACY); |
261 RegisterSchemaResource("proxy", IDR_EXTENSION_API_JSON_PROXY); | 261 RegisterSchemaResource("proxy", IDR_EXTENSION_API_JSON_PROXY); |
262 RegisterSchemaResource("scriptBadge", IDR_EXTENSION_API_JSON_SCRIPTBADGE); | 262 RegisterSchemaResource("scriptBadge", IDR_EXTENSION_API_JSON_SCRIPTBADGE); |
263 RegisterSchemaResource("streamsPrivate", | 263 RegisterSchemaResource("streamsPrivate", |
264 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); | 264 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); |
265 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); | 265 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); |
266 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); | 266 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); |
267 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); | 267 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); |
| 268 RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); |
268 RegisterSchemaResource("webRequestInternal", | 269 RegisterSchemaResource("webRequestInternal", |
269 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); | 270 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); |
270 RegisterSchemaResource("webstore", IDR_EXTENSION_API_JSON_WEBSTORE); | 271 RegisterSchemaResource("webstore", IDR_EXTENSION_API_JSON_WEBSTORE); |
271 RegisterSchemaResource("webstorePrivate", | 272 RegisterSchemaResource("webstorePrivate", |
272 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE); | 273 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE); |
273 default_configuration_initialized_ = true; | 274 default_configuration_initialized_ = true; |
274 } | 275 } |
275 | 276 |
276 void ExtensionAPI::RegisterSchemaResource(const std::string& name, | 277 void ExtensionAPI::RegisterSchemaResource(const std::string& name, |
277 int resource_id) { | 278 int resource_id) { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 break; | 419 break; |
419 | 420 |
420 api_name_candidate = api_name_candidate.substr(0, last_dot_index); | 421 api_name_candidate = api_name_candidate.substr(0, last_dot_index); |
421 } | 422 } |
422 | 423 |
423 *child_name = ""; | 424 *child_name = ""; |
424 return std::string(); | 425 return std::string(); |
425 } | 426 } |
426 | 427 |
427 } // namespace extensions | 428 } // namespace extensions |
OLD | NEW |