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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 RegisterSchema("test", ReadFromResource( | 448 RegisterSchema("test", ReadFromResource( |
449 IDR_EXTENSION_API_JSON_TEST)); | 449 IDR_EXTENSION_API_JSON_TEST)); |
450 RegisterSchema("topSites", ReadFromResource( | 450 RegisterSchema("topSites", ReadFromResource( |
451 IDR_EXTENSION_API_JSON_TOPSITES)); | 451 IDR_EXTENSION_API_JSON_TOPSITES)); |
452 RegisterSchema("ttsEngine", ReadFromResource( | 452 RegisterSchema("ttsEngine", ReadFromResource( |
453 IDR_EXTENSION_API_JSON_TTSENGINE)); | 453 IDR_EXTENSION_API_JSON_TTSENGINE)); |
454 RegisterSchema("tts", ReadFromResource( | 454 RegisterSchema("tts", ReadFromResource( |
455 IDR_EXTENSION_API_JSON_TTS)); | 455 IDR_EXTENSION_API_JSON_TTS)); |
456 RegisterSchema("types", ReadFromResource( | 456 RegisterSchema("types", ReadFromResource( |
457 IDR_EXTENSION_API_JSON_TYPES)); | 457 IDR_EXTENSION_API_JSON_TYPES)); |
| 458 RegisterSchema("wallpaperPrivate", ReadFromResource( |
| 459 IDR_EXTENSION_API_JSON_WALLPAPERPRIVATE)); |
458 RegisterSchema("webNavigation", ReadFromResource( | 460 RegisterSchema("webNavigation", ReadFromResource( |
459 IDR_EXTENSION_API_JSON_WEBNAVIGATION)); | 461 IDR_EXTENSION_API_JSON_WEBNAVIGATION)); |
460 RegisterSchema("webRequest", ReadFromResource( | 462 RegisterSchema("webRequest", ReadFromResource( |
461 IDR_EXTENSION_API_JSON_WEBREQUEST)); | 463 IDR_EXTENSION_API_JSON_WEBREQUEST)); |
462 RegisterSchema("webRequestInternal", ReadFromResource( | 464 RegisterSchema("webRequestInternal", ReadFromResource( |
463 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL)); | 465 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL)); |
464 RegisterSchema("webSocketProxyPrivate", ReadFromResource( | 466 RegisterSchema("webSocketProxyPrivate", ReadFromResource( |
465 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE)); | 467 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE)); |
466 RegisterSchema("webstore", ReadFromResource( | 468 RegisterSchema("webstore", ReadFromResource( |
467 IDR_EXTENSION_API_JSON_WEBSTORE)); | 469 IDR_EXTENSION_API_JSON_WEBSTORE)); |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 | 842 |
841 void ExtensionAPI::LoadAllSchemas() { | 843 void ExtensionAPI::LoadAllSchemas() { |
842 while (unloaded_schemas_.size()) { | 844 while (unloaded_schemas_.size()) { |
843 std::map<std::string, base::StringPiece>::iterator it = | 845 std::map<std::string, base::StringPiece>::iterator it = |
844 unloaded_schemas_.begin(); | 846 unloaded_schemas_.begin(); |
845 LoadSchema(it->first, it->second); | 847 LoadSchema(it->first, it->second); |
846 } | 848 } |
847 } | 849 } |
848 | 850 |
849 } // namespace extensions | 851 } // namespace extensions |
OLD | NEW |