| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "extensions/common/extension_api.h" | 5 #include "extensions/common/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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); | 255 IDR_EXTENSION_API_JSON_STREAMSPRIVATE); |
| 256 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); | 256 RegisterSchemaResource("ttsEngine", IDR_EXTENSION_API_JSON_TTSENGINE); |
| 257 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); | 257 RegisterSchemaResource("tts", IDR_EXTENSION_API_JSON_TTS); |
| 258 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); | 258 RegisterSchemaResource("types", IDR_EXTENSION_API_JSON_TYPES); |
| 259 RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); | 259 RegisterSchemaResource("types.private", IDR_EXTENSION_API_JSON_TYPES_PRIVATE); |
| 260 RegisterSchemaResource("webRequestInternal", | 260 RegisterSchemaResource("webRequestInternal", |
| 261 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); | 261 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL); |
| 262 RegisterSchemaResource("webstore", IDR_EXTENSION_API_JSON_WEBSTORE); | 262 RegisterSchemaResource("webstore", IDR_EXTENSION_API_JSON_WEBSTORE); |
| 263 RegisterSchemaResource("webstorePrivate", | 263 RegisterSchemaResource("webstorePrivate", |
| 264 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE); | 264 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE); |
| 265 RegisterSchemaResource("webViewRequest", |
| 266 IDR_EXTENSION_API_JSON_WEBVIEW_REQUEST); |
| 267 |
| 265 default_configuration_initialized_ = true; | 268 default_configuration_initialized_ = true; |
| 266 } | 269 } |
| 267 | 270 |
| 268 void ExtensionAPI::RegisterSchemaResource(const std::string& name, | 271 void ExtensionAPI::RegisterSchemaResource(const std::string& name, |
| 269 int resource_id) { | 272 int resource_id) { |
| 270 unloaded_schemas_[name] = resource_id; | 273 unloaded_schemas_[name] = resource_id; |
| 271 } | 274 } |
| 272 | 275 |
| 273 void ExtensionAPI::RegisterDependencyProvider(const std::string& name, | 276 void ExtensionAPI::RegisterDependencyProvider(const std::string& name, |
| 274 FeatureProvider* provider) { | 277 FeatureProvider* provider) { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 break; | 410 break; |
| 408 | 411 |
| 409 api_name_candidate = api_name_candidate.substr(0, last_dot_index); | 412 api_name_candidate = api_name_candidate.substr(0, last_dot_index); |
| 410 } | 413 } |
| 411 | 414 |
| 412 *child_name = ""; | 415 *child_name = ""; |
| 413 return std::string(); | 416 return std::string(); |
| 414 } | 417 } |
| 415 | 418 |
| 416 } // namespace extensions | 419 } // namespace extensions |
| OLD | NEW |