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

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: Fix base files 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 RegisterSchema("pageAction", ReadFromResource( 375 RegisterSchema("pageAction", ReadFromResource(
376 IDR_EXTENSION_API_JSON_PAGEACTION)); 376 IDR_EXTENSION_API_JSON_PAGEACTION));
377 RegisterSchema("pageActions", ReadFromResource( 377 RegisterSchema("pageActions", ReadFromResource(
378 IDR_EXTENSION_API_JSON_PAGEACTIONS)); 378 IDR_EXTENSION_API_JSON_PAGEACTIONS));
379 RegisterSchema("privacy", ReadFromResource( 379 RegisterSchema("privacy", ReadFromResource(
380 IDR_EXTENSION_API_JSON_PRIVACY)); 380 IDR_EXTENSION_API_JSON_PRIVACY));
381 RegisterSchema("proxy", ReadFromResource( 381 RegisterSchema("proxy", ReadFromResource(
382 IDR_EXTENSION_API_JSON_PROXY)); 382 IDR_EXTENSION_API_JSON_PROXY));
383 RegisterSchema("scriptBadge", ReadFromResource( 383 RegisterSchema("scriptBadge", ReadFromResource(
384 IDR_EXTENSION_API_JSON_SCRIPTBADGE)); 384 IDR_EXTENSION_API_JSON_SCRIPTBADGE));
385 RegisterSchema("streamsPrivate", ReadFromResource(
386 IDR_EXTENSION_API_JSON_STREAMSPRIVATE));
385 RegisterSchema("ttsEngine", ReadFromResource( 387 RegisterSchema("ttsEngine", ReadFromResource(
386 IDR_EXTENSION_API_JSON_TTSENGINE)); 388 IDR_EXTENSION_API_JSON_TTSENGINE));
387 RegisterSchema("tts", ReadFromResource( 389 RegisterSchema("tts", ReadFromResource(
388 IDR_EXTENSION_API_JSON_TTS)); 390 IDR_EXTENSION_API_JSON_TTS));
389 RegisterSchema("types", ReadFromResource( 391 RegisterSchema("types", ReadFromResource(
390 IDR_EXTENSION_API_JSON_TYPES)); 392 IDR_EXTENSION_API_JSON_TYPES));
391 RegisterSchema("webRequestInternal", ReadFromResource( 393 RegisterSchema("webRequestInternal", ReadFromResource(
392 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL)); 394 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL));
393 RegisterSchema("webstore", ReadFromResource( 395 RegisterSchema("webstore", ReadFromResource(
394 IDR_EXTENSION_API_JSON_WEBSTORE)); 396 IDR_EXTENSION_API_JSON_WEBSTORE));
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 779
778 void ExtensionAPI::LoadAllSchemas() { 780 void ExtensionAPI::LoadAllSchemas() {
779 while (unloaded_schemas_.size()) { 781 while (unloaded_schemas_.size()) {
780 std::map<std::string, base::StringPiece>::iterator it = 782 std::map<std::string, base::StringPiece>::iterator it =
781 unloaded_schemas_.begin(); 783 unloaded_schemas_.begin();
782 LoadSchema(it->first, it->second); 784 LoadSchema(it->first, it->second);
783 } 785 }
784 } 786 }
785 787
786 } // namespace extensions 788 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698