| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
BUG=133025
TBR=yoz@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10559026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142885 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
Also applies to some functions upstack from DownloadResourceHandler()
Review URL: https://chromiumcodereview.appspot.com/10553009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142767 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now, instead of a three-way dance between DownloadResourceHandler,
DownloadFileManager, and DownloadManager, DownloadResourceHandler tells
DownloadManager to start the download, and it calls out (with return callback)
to DownloadFileManager to create the DownloadFile.
BUG=132832
TEST=Refactor; existing tests should continue to work.
R=benjhayden@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10544161
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142728 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
CID=104218
BUG=none
TEST=none
TBR=ahendrickson@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10539166
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142248 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of all uses of NetLog::EventParameters in
all remaining locations (downloads, appcache, io thread,
chrome_network_delegate.
R=eroman@chromium.org,rdsmith@chromium.org,michaeln@chromium.org
BUG=126243
Review URL: https://chromiumcodereview.appspot.com/10542153
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142217 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ResourceLoader. This class is responsible for driving the URLRequest (calling
Start, Read, and servicing events).
This change also generalizes ResourceThrottleController so that it can be used
by ResourceHandler implementations to resume or cancel a resource load. The
ResourceLoader is a ResourceController. (In a follow-up patch, the
BufferedResourceHandler will also become a ResourceController. This will
enable us to make the "resume" behavior sane.)
The ResourceDispatcherHostImpl now keeps a set of ResourceLoader objects
instead of URLRequests. The ResourceLoader owns its URLRequest as well as
ResourceHandler (chain). Numerous fields from ResourceRequestInfo become
member variables of ResourceLoader because they are only needed by
ResourceLoader. This helps cleanup some code. ResourceDispatcherHostImpl
is no longer a friend of ResourceRequestInfoImpl, and indeed RRII no longer
has any private getter/setters intended for use by RDHI!
The ResourceDispatcherHostImpl used to maintain a set of transferred
URLRequests. This set is eliminated in favor of just storing a boolean
flag on ResourceLoader (is_transferring_). When transferring a request
from one RenderView to another, we still replace the ResourceHandler
as before, but we keep the ResourceLoader. This means the logic for
completing the transfer becomes a member function on ResourceLoader.
See ResourceLoader::CompleteTransfer().
NOTE: I left it as future cleanup to improve some of the methods on
ResourceLoader that are essentially just copy/pasted from RDHI. For
example, I suspect that the new deferred_stage_ member variable will
make called_on_response_started_, has_started_reading_, and is_paused_
obsolete. I plan to make these simplifications along with making
BufferedResourceHandler implement ResourceController. For now, I'm
just trying to minimize changes since this CL is already too big.
R=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10501004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142108 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
That's really all.
BUG=131026
TEST=no change
Review URL: https://chromiumcodereview.appspot.com/10539134
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141971 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=None
TEST=Memory bots pass.
Review URL: https://chromiumcodereview.appspot.com/10535135
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141735 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note that this isn't intended to be complete coverage; it's an attempt to preserve coverage from the old tests while making these "real" unit tests, i.e. with every class except for the main one being tested mocked. Thorough unit tests are intended for the future after we're more completely done with refactoring.
BUG=107264
BUG=105200
BUG=110886
Review URL: https://chromiumcodereview.appspot.com/10344024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141674 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
much simpler, this will also fix bug 126591 on Windows 8 by activating the new
code in r140668.
BUG=126591
Review URL: https://chromiumcodereview.appspot.com/10542089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141433 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add SubstituteGDataDownloadPathCallback step between CheckVisitedReferrerBeforeDone and CheckIfSuggestedPathExists.
* Change the signature of ChooseDownloadPath with DownloadItem* arg only.
* DownloadFilePicker has an empty ctor and does most of the work in Init() now.
* DownloadFilePicker::SetSuggestedPath is a virtual that is overriden by DownloadFilePickerChromeOS to suggest the gdata path instead.
* GetSaveDir takes an addition skip_dir_check boolean param. We shouldn't do the directory existence check for cloud folders.
BUG=127159
TEST=manual
TBR=rdsmith@chromium.org,avi@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10501014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141318 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10538028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140942 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
content.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10545034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140780 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This matches all the other objects that content depends on.
In a followup change, I'll make content support NULL DownloadManagerDelegates to match the rest of the delegate interfaces.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10535026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140761 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=123192
BUG=93006
BUG=111588
Review URL: https://chromiumcodereview.appspot.com/10392111
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140328 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
enforce that internal content headers don't leak to embedders.
BUG=98716
TBR=phajdan.jr
Review URL: https://chromiumcodereview.appspot.com/10492009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140256 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
way we can enforce that internal content headers don't leak to embedders.
BUG=98716
TBR=phajdan.jr
Review URL: https://chromiumcodereview.appspot.com/10500016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140254 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
This way we can enforce that internal content headers don't leak to embedders.
BUG=98716
TBR=phajdan.jr
Review URL: https://chromiumcodereview.appspot.com/10501012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140208 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of TimeDelta.
Compile failed on ChromiumOS x86 and Tegra.
BUG=108171
Review URL: https://chromiumcodereview.appspot.com/9703053
TBR=tedvessenes@gmail.com
Review URL: https://chromiumcodereview.appspot.com/10496002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140109 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=108171
Review URL: https://chromiumcodereview.appspot.com/9703053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140102 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
R=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10447138
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139982 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
method in favor of ~ResourceHandler.
This required making a couple ResourceHandlers support weak pointers.
The only non-trivial changes are related to DownloadResourceHandler.
The StartOnUIThread method becomes a static StartDownloadOnUIThread
method, and the call to SetDownloadID and CallStartedCB are now hidden
behind a Callback<void(DownloadId)>, which gets posted to the IO thread.
R=rdsmith@chromium.org,jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10455009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139874 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removes dependency on DownloadStateInfo in chrome/.
- Adds unit tests for ChromeDownloadManagerDelegate.
- Cleanup methods for filename determination in DownloadItem to eliminate setters.
BUG=78085
TEST=unit tests
Review URL: https://chromiumcodereview.appspot.com/10083010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139682 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
for the referrer
BUG=124750
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10441090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139562 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=129646
R=darin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10451023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139295 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows for using the correct referrer policy when dragging a link out of a web view results in a download
BUG=124750
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10451024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139147 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
content/public.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10441019
TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10450018
TBR=asargent@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10448010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138819 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10441019
TBR=jam@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10450018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138818 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
| |
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10441019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138812 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ByteStream is an abstraction of a zero copy transfer of bytes between
threads, along with an error indicator upon completion. Data is
explicitly pushed into or pulled out of the stream, and source and
destination may register for callbacks to be called when there is
room/data in the pipe. A ByteStream object is owned in common by the
source and destination of the stream, and is destroyed when both
source and destination drop references to it.
BUG=125250
R=willchan@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10244001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138504 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and OnReadCompleted methods. Use that to pause the request
instead of directly calling ResourceDispatcherHostImpl's
PauseRequest function.
Eliminate direct calls to PauseRequest, with the exception of
resource_dispatcher_host_unittest.cc and some uses internal to
ResourceDispatcherHostImpl. Those should ultimately be
changed to use the defer out-param approach too.
This CL also changes the DownloadRequestHandle to talk back to
the DownloadResourceHandler in order to pause / resume / cancel
the URLRequest. The handle keeps a reference to the handler,
which may extend the lifetime of the handler, but that should be
OK given that the handler already supports having its lifetime
extended beyond the URLRequest.
Now, instead of the DownloadFileManager calling PauseRequest, we
just wait for the SetDownloadID call to resume the URLRequest.
This simplifies some of the logic. The Pause/ResumeRequest
issued on a DownloadRequestHandle gets its own pause counter,
which has nothing to do with the internal pausing that the
DownloadResourceHandler does when it is waiting for a DownloadId.
See DownloadResourceHandler::MaybeResumeRequest for the logic
that handles the conditions for resuming the URLRequest.
Review URL: https://chromiumcodereview.appspot.com/10332130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138111 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: https://chromiumcodereview.appspot.com/10263019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137949 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10389164
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137637 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows interposing the DownloadResourceThrottle on all web
downloads, not just those occuring because of navigations.
BUG=127522
R=darin@chromium.org
TEST=Retry example in referenced issue; look for throttling message.
Review URL: https://chromiumcodereview.appspot.com/10381122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137137 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
preparation for removing active_downloads_, history_downloads_, and save_page_downloads_.
BUG=126492
Review URL: https://chromiumcodereview.appspot.com/10377013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136978 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=124750
TEST=none. That code path doesn't actually use referrers, it just passes empty GURL()s around. But it might one day. And then it supports referrer policies. Hurray.
Review URL: https://chromiumcodereview.appspot.com/10387090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136723 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: http://codereview.chromium.org/10232010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135403 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
--save-page-as-mhtml disables saving pages as html-only and complete with sub-resources in a sibling directory, and enables only saving pages as complete with sub-resources in a single MHTML (MIME-HTML) text file.
The SavePackage class supports all three options, wich will allow saving complete pages to gdata, and may simplify file management for users.
If few enough users need the many-files option, we may be able to remove it and most/all of the SavePackage system.
The generated MHTML is viewable in Chrome on all 4 OSs and Opera (at least on windows).
The generated MHTML is not viewable in chrome when loaded via http[s], only via file://. http://code.google.com/p/chromium-os/issues/detail?id=28654
Chrome recognizes both '.mht' and '.mhtml' as MHTML, however '.mhtml' is more google-able, so that is the default extension when saving MHTML files. Chrome does not sniff '.html' files to see if they are actually MHTML, so it will incorrectly render such mis-named MHTML files.
It is not viewable in Firefox. Firefox tries to help you either open it in another program or download it. There are extensions that provide support for MHTML: MAFF, and UnMHT are two.
It is not viewable in Safari. Safari does not recognize "mht" or "mhtml" as extensions that it can render. Changing the extension to "html" allows Safari to open it, but Safari does not seem to understand the file format so it's rendered incorrectly. A port of UnMHT is available for Safari.
It is not viewable in IE: The webpage cannot be displayed. Most likely cause: •Some content or files on this webpage require a program that you don't have installed.
IE supports MHTML, so it may be possible to tweak the mhtml generator to appease both Opera and IE. http://crbug.com/125477
Regarding OOMs: about:memory showed no change when I saved cnn.com as mhtml (1.4MB), so if there was a spike, it either lasted <200ms or was lost in the noise.
BUG=120416
Review URL: http://codereview.chromium.org/10069014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135390 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
OWNERS:
brettw: chrome/browser/history/download_database.cc
jhawkins: chrome/browser/ui/webui/downloads_dom_handler.cc
James, feel free to redirect to arv/estade/csilv.
Review URL: http://codereview.chromium.org/10243004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135185 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=123295
TEST=none
Review URL: http://codereview.chromium.org/10068037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134395 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Add data: to the list of savable urls, for "save page as" path
(used for text and html files).
2. Instead of suggesting the whole url as file name for dataurls,
suggest just "dataurl". That's at least shorter.
3. Remove explicit blacklisting of data: urls from download path
(used for images)
BUG=97108,119129
TEST=Open |data:text/plain;charset=ascii,hello|, hit cmd-s. Should save.
Open |data:image/gif;base64,R0lGODlhCwALAIAAAAAA3pn/ZiH5BAEAAAEALAAAAAALAAsAAAIUhA+hkcuO4lmNVindo7qyrIXiGBYAOw==|,
hit cmd-s. Should save.
TBR=avi
Review URL: http://codereview.chromium.org/10241004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134314 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
Includes unit test for timer functionality.
BUG=123998
Review URL: http://codereview.chromium.org/10119027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133317 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
transferring an HTTP body.
This should not change behavior at all, but will let us see how commonly these situations happen in the wild.
BUG=52847
TEST=Existing tests.
Review URL: http://codereview.chromium.org/9950023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133208 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that we don't need to worry about it in unittests.
BUG=110886
TEST=Run DownloadFileTest.* over an NX connection.
R=benjhayden@chromium.org
Review URL: http://codereview.chromium.org/10116027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132998 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
BUG=105875
TEST=no change
Review URL: http://codereview.chromium.org/10106022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132599 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
"Detab" content/browser/download.
BUG=105875
TEST=no change
Review URL: http://codereview.chromium.org/10069016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132060 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the WebContentsImpl class to files in web_contents.
BUG=105875
TEST=no change
Review URL: http://codereview.chromium.org/10054012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131845 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
(It's a potential dangling reference.)
BUG=122854
TEST=Unfortunately, none; I've seen it but I don't have a reliable way to repro.
Review URL: http://codereview.chromium.org/10038005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131839 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=105875
TEST=no change
Review URL: https://chromiumcodereview.appspot.com/10024066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131770 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=75548,113300
TEST=existing tests should pass
Review URL: https://chromiumcodereview.appspot.com/9949011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131732 0039d316-1c4b-4281-b951-d872f2087c98
|