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

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

Issue 12381035: Move Mime type handling to streamsPrivate API, so that it works on Desktop Chrome. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Initialize test variable Created 7 years, 9 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
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 RegisterSchema("pageAction", ReadFromResource( 372 RegisterSchema("pageAction", ReadFromResource(
373 IDR_EXTENSION_API_JSON_PAGEACTION)); 373 IDR_EXTENSION_API_JSON_PAGEACTION));
374 RegisterSchema("pageActions", ReadFromResource( 374 RegisterSchema("pageActions", ReadFromResource(
375 IDR_EXTENSION_API_JSON_PAGEACTIONS)); 375 IDR_EXTENSION_API_JSON_PAGEACTIONS));
376 RegisterSchema("privacy", ReadFromResource( 376 RegisterSchema("privacy", ReadFromResource(
377 IDR_EXTENSION_API_JSON_PRIVACY)); 377 IDR_EXTENSION_API_JSON_PRIVACY));
378 RegisterSchema("proxy", ReadFromResource( 378 RegisterSchema("proxy", ReadFromResource(
379 IDR_EXTENSION_API_JSON_PROXY)); 379 IDR_EXTENSION_API_JSON_PROXY));
380 RegisterSchema("scriptBadge", ReadFromResource( 380 RegisterSchema("scriptBadge", ReadFromResource(
381 IDR_EXTENSION_API_JSON_SCRIPTBADGE)); 381 IDR_EXTENSION_API_JSON_SCRIPTBADGE));
382 RegisterSchema("streamsPrivate", ReadFromResource(
383 IDR_EXTENSION_API_JSON_STREAMSPRIVATE));
382 RegisterSchema("ttsEngine", ReadFromResource( 384 RegisterSchema("ttsEngine", ReadFromResource(
383 IDR_EXTENSION_API_JSON_TTSENGINE)); 385 IDR_EXTENSION_API_JSON_TTSENGINE));
384 RegisterSchema("tts", ReadFromResource( 386 RegisterSchema("tts", ReadFromResource(
385 IDR_EXTENSION_API_JSON_TTS)); 387 IDR_EXTENSION_API_JSON_TTS));
386 RegisterSchema("types", ReadFromResource( 388 RegisterSchema("types", ReadFromResource(
387 IDR_EXTENSION_API_JSON_TYPES)); 389 IDR_EXTENSION_API_JSON_TYPES));
388 RegisterSchema("webRequestInternal", ReadFromResource( 390 RegisterSchema("webRequestInternal", ReadFromResource(
389 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL)); 391 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL));
390 RegisterSchema("webstore", ReadFromResource( 392 RegisterSchema("webstore", ReadFromResource(
391 IDR_EXTENSION_API_JSON_WEBSTORE)); 393 IDR_EXTENSION_API_JSON_WEBSTORE));
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 787
786 void ExtensionAPI::LoadAllSchemas() { 788 void ExtensionAPI::LoadAllSchemas() {
787 while (unloaded_schemas_.size()) { 789 while (unloaded_schemas_.size()) {
788 std::map<std::string, base::StringPiece>::iterator it = 790 std::map<std::string, base::StringPiece>::iterator it =
789 unloaded_schemas_.begin(); 791 unloaded_schemas_.begin();
790 LoadSchema(it->first, it->second); 792 LoadSchema(it->first, it->second);
791 } 793 }
792 } 794 }
793 795
794 } // namespace extensions 796 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/api/file_browser_handler.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698