summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 18:01:18 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 18:01:18 +0000
commitdbeb39586fd6d8e75ed6ad4e6c4606ee16e53348 (patch)
tree5bec0f3b7d6bd08d4283e6fcd2b68b2b01f2730d /chrome/renderer
parentabbc5739c1689384fbbdbd0ee6c9d2d9a8c2da0b (diff)
downloadchromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.zip
chromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.tar.gz
chromium_src-dbeb39586fd6d8e75ed6ad4e6c4606ee16e53348.tar.bz2
This patch enables "Save page as" (ctrl+s) for resources located at
chrome-extension URLs. In the absence of any API for doing file I/O this adds very useful functionality to chrome extensions. This patch is needed to allow APU to save its instrumentation data to disk without the need for a plugin. patch by: Jaime Yap (jaimeyap@google.com) BUG=none TEST=Bundle a page "foo.html" with an extension. Usings the tabs API or window.open, open "foo.html" in the extensions process. Try to save it using CTRL+S. (You can test with any of the existing samples that bundle a page). Review URL: http://codereview.chromium.org/266051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_view.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 746aefc..9dce62a 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -3111,9 +3111,11 @@ void RenderView::OnGetAllSavableResourceLinksForCurrentPage(
&referrers_list,
&frames_list);
- if (!webkit_glue::GetAllSavableResourceLinksForCurrentPage(webview(),
- page_url,
- &result)) {
+ if (!webkit_glue::GetAllSavableResourceLinksForCurrentPage(
+ webview(),
+ page_url,
+ &result,
+ chrome::kSavableSchemes)) {
// If something is wrong when collecting all savable resource links,
// send empty list to embedder(browser) to tell it failed.
referrers_list.clear();