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

Unified Diff: chrome/common/extensions/docs/samples.json

Issue 7210049: Update contentscript xhr example to remove background page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebuilding docs Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/samples.json
diff --git a/chrome/common/extensions/docs/samples.json b/chrome/common/extensions/docs/samples.json
index fa7a9cb9eeab133172014fc66ba15cff8971febd..a7a7257d6b5b5c9b4b4376c718649c4980e03c83 100644
--- a/chrome/common/extensions/docs/samples.json
+++ b/chrome/common/extensions/docs/samples.json
@@ -541,6 +541,25 @@
"zip_path": "examples\/api\/i18n\/cld.zip"
},
{
+ "api_calls": [],
+ "description": "Demonstrates making cross domain requests from a content script by putting Twitter trends on Google News.",
+ "features": [],
+ "icon": "sample-128.png",
+ "id": "6871d09f4a96bf9d4b6cc724d00e909cee0f3902",
+ "name": "Content Script Cross-Domain XMLHttpRequest Example",
+ "path": "examples\/howto\/contentscript_xhr\/",
+ "protocols": [
+ "https:\/\/"
+ ],
+ "search_string": "CONTENT SCRIPT CROSS-DOMAIN XMLHTTPREQUEST EXAMPLE DEMONSTRATES MAKING CROSS DOMAIN REQUESTS FROM A CONTENT SCRIPT BY PUTTING TWITTER TRENDS ON GOOGLE NEWS.",
+ "source_files": [
+ "contentscript.js",
+ "manifest.json"
+ ],
+ "source_hash": "749314ae399dfc5f6759358b384bc55997fed455",
+ "zip_path": "examples\/howto\/contentscript_xhr.zip"
+ },
+ {
"api_calls": [
"chrome.tabs.get",
"chrome.tabs.getSelected"
@@ -628,31 +647,6 @@
},
{
"api_calls": [
- "chrome.extension.onRequest",
- "chrome.extension.sendRequest"
- ],
- "description": "Demonstrates a method to make a cross-domain XMLHttpRequest fetch from a content script. This extension fetches the current trending topics from Twitter and inserts them in an overlay at the top of Google News. Visit http:\/\/news.google.com to test this extension.",
- "features": [
- "background_page"
- ],
- "icon": "sample-128.png",
- "id": "6871d09f4a96bf9d4b6cc724d00e909cee0f3902",
- "name": "Cross-domain XMLHttpRequest from a content script",
- "path": "examples\/howto\/contentscript_xhr\/",
- "protocols": [
- "http:\/\/"
- ],
- "search_string": "CROSS-DOMAIN XMLHTTPREQUEST FROM A CONTENT SCRIPT DEMONSTRATES A METHOD TO MAKE A CROSS-DOMAIN XMLHTTPREQUEST FETCH FROM A CONTENT SCRIPT. THIS EXTENSION FETCHES THE CURRENT TRENDING TOPICS FROM TWITTER AND INSERTS THEM IN AN OVERLAY AT THE TOP OF GOOGLE NEWS. VISIT HTTP:\/\/NEWS.GOOGLE.COM TO TEST THIS EXTENSION. BACKGROUND_PAGE CHROME.EXTENSION.ONREQUEST CHROME.EXTENSION.SENDREQUEST",
- "source_files": [
- "background.html",
- "contentscript.js",
- "manifest.json"
- ],
- "source_hash": "d77b68c4839500a5974d4775033f2ee94bb611f7",
- "zip_path": "examples\/howto\/contentscript_xhr.zip"
- },
- {
- "api_calls": [
"chrome.browserAction.onClicked",
"chrome.extension.connect",
"chrome.extension.onConnect",
« no previous file with comments | « chrome/common/extensions/docs/samples.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698