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

Unified Diff: content/browser/download/docs/save-page-as.md

Issue 2075273002: Resource requests from Save-Page-As should go through CanRequestURL checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated docs. Created 4 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
Index: content/browser/download/docs/save-page-as.md
diff --git a/content/browser/download/docs/save-page-as.md b/content/browser/download/docs/save-page-as.md
index 2661289b375a9b6a190bc0b5b75529c1acdb02fa..bd93e6cee4302d007b9ee7655e35ef0d42325ce2 100644
--- a/content/browser/download/docs/save-page-as.md
+++ b/content/browser/download/docs/save-page-as.md
@@ -16,10 +16,9 @@ are described by their code comments or by their code structure).
* UI-thread object
* SaveFileCreateInfo::SaveFileSource enum
- * classifies `SaveItem` and `SaveFile` processing into 3 flavours:
+ * classifies `SaveItem` and `SaveFile` processing into 2 flavours:
* `SAVE_FILE_FROM_NET` (see `SaveFileResourceHandler`)
* `SAVE_FILE_FROM_DOM` (see "Complete HTML" section below)
- * `SAVE_FILE_FROM_FILE` (see `SaveFileManager::SaveLocalFile`)
* SaveItem class
* tracks saving a single file
@@ -68,8 +67,8 @@ Very high-level flow of saving a page as "Complete HTML":
* Step 1: `SavePackage` asks all frames for "savable resources"
and creates `SaveItem` for each of files that need to be saved
-* Step 2: `SavePackage` first processes `SAVE_FILE_FROM_NET` and
- `SAVE_FILE_FROM_FILE` `SaveItem`s and asks `SaveFileManager` to save
+* Step 2: `SavePackage` first processes `SAVE_FILE_FROM_NET`
Randy Smith (Not in Mondays) 2016/07/21 19:29:54 Worth changing the enum name now that it's no-long
Łukasz Anforowicz 2016/07/21 23:44:30 Maybe. I cannot think of a better name. The gist
+ `SaveItem`s and asks `SaveFileManager` to save
them.
* Step 3: `SavePackage` handles remaining `SAVE_FILE_FROM_DOM` `SaveItem`s and
@@ -106,8 +105,8 @@ changed using `--save-page-as-mhtml` command line switch.
Very high-level flow of saving a page as "HTML Only":
-* `SavePackage` creates only a single `SaveItem` (either `SAVE_FILE_FROM_NET` or
- `SAVE_FILE_FROM_FILE`) and asks `SaveFileManager` to process it
+* `SavePackage` creates only a single `SaveItem` (always `SAVE_FILE_FROM_NET`)
+ and asks `SaveFileManager` to process it
(as in the Complete HTML individual SaveItem handling above.).

Powered by Google App Engine
This is Rietveld 408576698