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

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: 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 RegisterSchema("experimental.processes", ReadFromResource( 392 RegisterSchema("experimental.processes", ReadFromResource(
393 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES)); 393 IDR_EXTENSION_API_JSON_EXPERIMENTAL_PROCESSES));
394 RegisterSchema("experimental.record", ReadFromResource( 394 RegisterSchema("experimental.record", ReadFromResource(
395 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RECORD)); 395 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RECORD));
396 RegisterSchema("experimental.rlz", ReadFromResource( 396 RegisterSchema("experimental.rlz", ReadFromResource(
397 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ)); 397 IDR_EXTENSION_API_JSON_EXPERIMENTAL_RLZ));
398 RegisterSchema("runtime", ReadFromResource( 398 RegisterSchema("runtime", ReadFromResource(
399 IDR_EXTENSION_API_JSON_RUNTIME)); 399 IDR_EXTENSION_API_JSON_RUNTIME));
400 RegisterSchema("experimental.speechInput", ReadFromResource( 400 RegisterSchema("experimental.speechInput", ReadFromResource(
401 IDR_EXTENSION_API_JSON_EXPERIMENTAL_SPEECHINPUT)); 401 IDR_EXTENSION_API_JSON_EXPERIMENTAL_SPEECHINPUT));
402 RegisterSchema("experimental.wallpaperManager", ReadFromResource(
403 IDR_EXTENSION_API_JSON_EXPERIMENTAL_WALLPAPERMANAGER));
402 RegisterSchema("extension", ReadFromResource( 404 RegisterSchema("extension", ReadFromResource(
403 IDR_EXTENSION_API_JSON_EXTENSION)); 405 IDR_EXTENSION_API_JSON_EXTENSION));
404 RegisterSchema("fileBrowserHandler", ReadFromResource( 406 RegisterSchema("fileBrowserHandler", ReadFromResource(
405 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER)); 407 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLER));
406 RegisterSchema("fileBrowserHandlerInternal", ReadFromResource( 408 RegisterSchema("fileBrowserHandlerInternal", ReadFromResource(
407 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLERINTERNAL)); 409 IDR_EXTENSION_API_JSON_FILEBROWSERHANDLERINTERNAL));
408 RegisterSchema("fileBrowserPrivate", ReadFromResource( 410 RegisterSchema("fileBrowserPrivate", ReadFromResource(
409 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE)); 411 IDR_EXTENSION_API_JSON_FILEBROWSERPRIVATE));
410 RegisterSchema("history", ReadFromResource( 412 RegisterSchema("history", ReadFromResource(
411 IDR_EXTENSION_API_JSON_HISTORY)); 413 IDR_EXTENSION_API_JSON_HISTORY));
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 848
847 void ExtensionAPI::LoadAllSchemas() { 849 void ExtensionAPI::LoadAllSchemas() {
848 while (unloaded_schemas_.size()) { 850 while (unloaded_schemas_.size()) {
849 std::map<std::string, base::StringPiece>::iterator it = 851 std::map<std::string, base::StringPiece>::iterator it =
850 unloaded_schemas_.begin(); 852 unloaded_schemas_.begin();
851 LoadSchema(it->first, it->second); 853 LoadSchema(it->first, it->second);
852 } 854 }
853 } 855 }
854 856
855 } // namespace extensions 857 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698