Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Side by Side Diff: chrome/common/extensions/api/extension_api.cc

Issue 10754014: Wallpaper manager backend APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add function "SaveToFile" Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 RegisterSchema("test", ReadFromResource( 452 RegisterSchema("test", ReadFromResource(
453 IDR_EXTENSION_API_JSON_TEST)); 453 IDR_EXTENSION_API_JSON_TEST));
454 RegisterSchema("topSites", ReadFromResource( 454 RegisterSchema("topSites", ReadFromResource(
455 IDR_EXTENSION_API_JSON_TOPSITES)); 455 IDR_EXTENSION_API_JSON_TOPSITES));
456 RegisterSchema("ttsEngine", ReadFromResource( 456 RegisterSchema("ttsEngine", ReadFromResource(
457 IDR_EXTENSION_API_JSON_TTSENGINE)); 457 IDR_EXTENSION_API_JSON_TTSENGINE));
458 RegisterSchema("tts", ReadFromResource( 458 RegisterSchema("tts", ReadFromResource(
459 IDR_EXTENSION_API_JSON_TTS)); 459 IDR_EXTENSION_API_JSON_TTS));
460 RegisterSchema("types", ReadFromResource( 460 RegisterSchema("types", ReadFromResource(
461 IDR_EXTENSION_API_JSON_TYPES)); 461 IDR_EXTENSION_API_JSON_TYPES));
462 RegisterSchema("wallpaperPrivate", ReadFromResource(
463 IDR_EXTENSION_API_JSON_WALLPAPERPRIVATE));
462 RegisterSchema("webNavigation", ReadFromResource( 464 RegisterSchema("webNavigation", ReadFromResource(
463 IDR_EXTENSION_API_JSON_WEBNAVIGATION)); 465 IDR_EXTENSION_API_JSON_WEBNAVIGATION));
464 RegisterSchema("webRequest", ReadFromResource( 466 RegisterSchema("webRequest", ReadFromResource(
465 IDR_EXTENSION_API_JSON_WEBREQUEST)); 467 IDR_EXTENSION_API_JSON_WEBREQUEST));
466 RegisterSchema("webRequestInternal", ReadFromResource( 468 RegisterSchema("webRequestInternal", ReadFromResource(
467 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL)); 469 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL));
468 RegisterSchema("webSocketProxyPrivate", ReadFromResource( 470 RegisterSchema("webSocketProxyPrivate", ReadFromResource(
469 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE)); 471 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE));
470 RegisterSchema("webstore", ReadFromResource( 472 RegisterSchema("webstore", ReadFromResource(
471 IDR_EXTENSION_API_JSON_WEBSTORE)); 473 IDR_EXTENSION_API_JSON_WEBSTORE));
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 846
845 void ExtensionAPI::LoadAllSchemas() { 847 void ExtensionAPI::LoadAllSchemas() {
846 while (unloaded_schemas_.size()) { 848 while (unloaded_schemas_.size()) {
847 std::map<std::string, base::StringPiece>::iterator it = 849 std::map<std::string, base::StringPiece>::iterator it =
848 unloaded_schemas_.begin(); 850 unloaded_schemas_.begin();
849 LoadSchema(it->first, it->second); 851 LoadSchema(it->first, it->second);
850 } 852 }
851 } 853 }
852 854
853 } // namespace extensions 855 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698