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

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

Powered by Google App Engine
This is Rietveld 408576698