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

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

Issue 10310028: Making webRequest.addEventListener internal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing ExtensionPermissionsTest.PermissionMessages unit-test for WebRequestInternal Created 8 years, 7 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 RegisterSchema("ttsEngine", ReadFromResource( 440 RegisterSchema("ttsEngine", ReadFromResource(
441 IDR_EXTENSION_API_JSON_TTSENGINE)); 441 IDR_EXTENSION_API_JSON_TTSENGINE));
442 RegisterSchema("tts", ReadFromResource( 442 RegisterSchema("tts", ReadFromResource(
443 IDR_EXTENSION_API_JSON_TTS)); 443 IDR_EXTENSION_API_JSON_TTS));
444 RegisterSchema("types", ReadFromResource( 444 RegisterSchema("types", ReadFromResource(
445 IDR_EXTENSION_API_JSON_TYPES)); 445 IDR_EXTENSION_API_JSON_TYPES));
446 RegisterSchema("webNavigation", ReadFromResource( 446 RegisterSchema("webNavigation", ReadFromResource(
447 IDR_EXTENSION_API_JSON_WEBNAVIGATION)); 447 IDR_EXTENSION_API_JSON_WEBNAVIGATION));
448 RegisterSchema("webRequest", ReadFromResource( 448 RegisterSchema("webRequest", ReadFromResource(
449 IDR_EXTENSION_API_JSON_WEBREQUEST)); 449 IDR_EXTENSION_API_JSON_WEBREQUEST));
450 RegisterSchema("webRequestInternal", ReadFromResource(
451 IDR_EXTENSION_API_JSON_WEBREQUESTINTERNAL));
450 RegisterSchema("webSocketProxyPrivate", ReadFromResource( 452 RegisterSchema("webSocketProxyPrivate", ReadFromResource(
451 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE)); 453 IDR_EXTENSION_API_JSON_WEBSOCKETPROXYPRIVATE));
452 RegisterSchema("webstore", ReadFromResource( 454 RegisterSchema("webstore", ReadFromResource(
453 IDR_EXTENSION_API_JSON_WEBSTORE)); 455 IDR_EXTENSION_API_JSON_WEBSTORE));
454 RegisterSchema("webstorePrivate", ReadFromResource( 456 RegisterSchema("webstorePrivate", ReadFromResource(
455 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE)); 457 IDR_EXTENSION_API_JSON_WEBSTOREPRIVATE));
456 RegisterSchema("windows", ReadFromResource( 458 RegisterSchema("windows", ReadFromResource(
457 IDR_EXTENSION_API_JSON_WINDOWS)); 459 IDR_EXTENSION_API_JSON_WINDOWS));
458 460
459 // Schemas to be loaded via JSON generated from IDL files. 461 // Schemas to be loaded via JSON generated from IDL files.
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 799
798 void ExtensionAPI::LoadAllSchemas() { 800 void ExtensionAPI::LoadAllSchemas() {
799 while (unloaded_schemas_.size()) { 801 while (unloaded_schemas_.size()) {
800 std::map<std::string, base::StringPiece>::iterator it = 802 std::map<std::string, base::StringPiece>::iterator it =
801 unloaded_schemas_.begin(); 803 unloaded_schemas_.begin();
802 LoadSchema(it->first, it->second); 804 LoadSchema(it->first, it->second);
803 } 805 }
804 } 806 }
805 807
806 } // namespace extensions 808 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api.h ('k') | chrome/common/extensions/api/web_request.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698