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

Side by Side Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 7041005: Content settings extension API: Implement ContentSetting.getResourceIdentifiers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This script contains privileged chrome extension related javascript APIs. 5 // This script contains privileged chrome extension related javascript APIs.
6 // It is loaded by pages whose URL has the chrome-extension protocol. 6 // It is loaded by pages whose URL has the chrome-extension protocol.
7 7
8 var chrome = chrome || {}; 8 var chrome = chrome || {};
9 (function() { 9 (function() {
10 native function GetExtensionAPIDefinition(); 10 native function GetExtensionAPIDefinition();
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 [contentType, details, callback], 398 [contentType, details, callback],
399 extendSchema(setSchema)); 399 extendSchema(setSchema));
400 }; 400 };
401 this.clear = function(details, callback) { 401 this.clear = function(details, callback) {
402 var clearSchema = this.parameters.clear; 402 var clearSchema = this.parameters.clear;
403 chromeHidden.validate([details, callback], clearSchema); 403 chromeHidden.validate([details, callback], clearSchema);
404 return sendRequest('experimental.contentSettings.clear', 404 return sendRequest('experimental.contentSettings.clear',
405 [contentType, details, callback], 405 [contentType, details, callback],
406 extendSchema(clearSchema)); 406 extendSchema(clearSchema));
407 }; 407 };
408 this.getResourceIdentifiers = function(callback) {
409 var schema =
410 this.parameters.getResourceIdentifiers;
battre 2011/06/14 16:31:01 nit: single line?
Bernhard Bauer 2011/06/15 10:04:57 Done.
411 chromeHidden.validate([callback], schema);
412 return sendRequest(
413 'experimental.contentSettings.getResourceIdentifiers',
414 [contentType, callback],
415 extendSchema(schema));
416 };
408 } 417 }
409 ContentSetting.prototype = new CustomBindingsObject(); 418 ContentSetting.prototype = new CustomBindingsObject();
410 customBindings['ContentSetting'] = ContentSetting; 419 customBindings['ContentSetting'] = ContentSetting;
411 } 420 }
412 421
413 // Page action events send (pageActionId, {tabId, tabUrl}). 422 // Page action events send (pageActionId, {tabId, tabUrl}).
414 function setupPageActionEvents(extensionId) { 423 function setupPageActionEvents(extensionId) {
415 var pageActions = GetCurrentPageActions(extensionId); 424 var pageActions = GetCurrentPageActions(extensionId);
416 425
417 var oldStyleEventName = "pageActions"; 426 var oldStyleEventName = "pageActions";
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 1002
994 if (!chrome.experimental) 1003 if (!chrome.experimental)
995 chrome.experimental = {}; 1004 chrome.experimental = {};
996 1005
997 if (!chrome.experimental.accessibility) 1006 if (!chrome.experimental.accessibility)
998 chrome.experimental.accessibility = {}; 1007 chrome.experimental.accessibility = {};
999 1008
1000 if (!chrome.experimental.tts) 1009 if (!chrome.experimental.tts)
1001 chrome.experimental.tts = {}; 1010 chrome.experimental.tts = {};
1002 })(); 1011 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698