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