0
Commit Graph

23 Commits

Author SHA1 Message Date
ajwong@chromium.org
10eb2816fd continuing from http://http://codereview.chromium.org/10823241
This intentionally doesn't change the ChromeOS behavior at all.  They all still use the default FileSystemContext.

This code also exposes the normal and media URLRequestGetters via the StoragePartition, and cleans up a bit of code that was accessing the URLRequestGetter in odd ways.  Also, it makes Workers correctly use the Media Cache for Media fetches.

TBR=benjhyden,sky,davemoore,piman,mkwst,kalman
BUG=85121

Review URL: https://chromiumcodereview.appspot.com/10909182

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157284 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-18 03:04:09 +00:00
michaeln@chromium.org
55c0ecae62 AppCache and StoragePartition'ing
* Get rid of BrowserContext::GetAppCacheService and ResourceContext::GetAppCacheService as they've been replace by accessors on the StoragePartition and WorkerStoragePartition classes.

* Added a BrowsingContext::GetRequestContextForStoragePartition(id) accessor so the constellation of storage context + main request context can initialized properly. Implemented that method in chrome's Profile class in terms of the existing GetRequestContextForIsolatedApp(id) accessor.

* Hold references to the ChromeAppCacheService and ChromeBlobStorageContext inside of ResourceMessageFilter and provide accessors to them. These are for use by the ResourceDispatcherHost singleton which would otherwise not have enough context to get needed references to partitioned things.

* Widen the ResourceDispatcherHostDelegate::RequestBeginning method to also take an AppCacheService* parameter since that value can no longer be retrieved via the ResourceContext. Chrome's impl of this delegate interface needs that value to construct OfflineResourceThrottles.

* Poke at WorkerProcessHost to create ResourceMessageFilters and others to utlize the correct URLRequestContext so the right set of cookies are used in shared workers.

TBR=mihaip,sail,thakis
BUG=85121

Review URL: https://chromiumcodereview.appspot.com/10916132

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156991 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-15 05:12:34 +00:00
ajwong@chromium.org
7dc8935a75 Remove storage context accessors from ResourceContext.
ResourceContext is the IO thread projection of the Profile. Since one profile
may now have multiple StoragePartitions (and thus multiple storage contexts),
we need to remove these accessors. All code in the IO thread has enough
information to find their appropriate storage context objects without needing
to grab it through the ResourceContext.  The only users of the ResourceContext
storage context APIs are in worker_host classes.

As a result of this change, a number of APIs that previously just took 1
ResourceContext now need to take 4 additional objects. We could create a
StoragePartitionForIO class that parallels StoragePartition, but since the
API ugliness is purely limited to workers, the abstraction isn't worth its
weight.

BUG=85121


Review URL: https://chromiumcodereview.appspot.com/10885044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156126 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-11 21:41:01 +00:00
joth@chromium.org
7d2e5f7627 SupportsUserData is not thread safe
Lets ensure none of its usages are unsafe.

BUG=


Review URL: https://chromiumcodereview.appspot.com/10919137

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155794 0039d316-1c4b-4281-b951-d872f2087c98
2012-09-10 19:18:53 +00:00
michaeln@google.com
5c8e67c5cb Access the DatabaseTracker via a StoragePartition to support the isolated app feature.
TBR=brettw,mkwst,kalman
BUG=85121
Review URL: https://chromiumcodereview.appspot.com/10879075

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153814 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-29 00:48:52 +00:00
ajwong@chromium.org
6939075a25 Remove silly uses of ResourceContext that unnecessarily violate the Law of Demeter.
BUG=85121


Review URL: https://chromiumcodereview.appspot.com/10878041

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153642 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-28 08:35:53 +00:00
shalev@chromium.org
9f170464e1 Refactoring: ProtocolHandler::MaybeCreateJob and other functions take NetworkDelegate as argument
This change goes a long way to prepare for removing NetworkDelegate from URLRequestContext.

TBR=sky@chromium.org, michaeln@chromium.org, benjhayden@chromium.org, brettw@chromium.org, ben@chromium.org, davemoore@chromium.org, zelidrag@chromium.org, mnissler@chromium.org, thestig@chromium.org, asargent@chromium.org, jhawkins@chromium.org, bulach@chromium.org

BUG=crbug.com/142945

Review URL: https://chromiumcodereview.appspot.com/10855209

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153133 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-24 01:06:58 +00:00
creis@chromium.org
10705a7b86 Ensure that isolated apps use the right cookies for media requests.
Also abstract out the media URLRequestContext logic from ProfileImpl.

BUG=141172
TEST=Check cookies attached to video tag request inside an isolated app.


Review URL: https://chromiumcodereview.appspot.com/10836305

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152604 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-21 19:07:08 +00:00
avi@chromium.org
5b9f0b5728 Attached data cleanup.
Clean up comments on SupportsUserData.
Fix typos in ResourceContextImpl.
Remove use of PropertyBag from ExtensionService as it hasn't been used since r135419.
Remove use of PropertyBag from RenderWidgetHostImpl as it hasn't been used since r83122.

BUG=141177
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10824342

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152421 0039d316-1c4b-4281-b951-d872f2087c98
2012-08-20 22:58:21 +00:00
rtenneti@google.com
83ab4a2858 Histograms - Support histograms for Plugins, GPU
and all child processes. Renderer processes also
use this new method to send histograms to browser.
This code is similar to the code that gets profiler
data from all processes.

R=jar@chromium.org,jam@chromium.org
TEST=browser unit tests, interactive UI tests
BUG=114013
Review URL: https://chromiumcodereview.appspot.com/10454086

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146394 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-12 18:19:45 +00:00
jam@chromium.org
ecd3ad2092 Ensure static BrowserContext methods only get called on the UI thread. Also ensure ResourceContext methods only get called on the IO thread.
Review URL: https://chromiumcodereview.appspot.com/10764015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145944 0039d316-1c4b-4281-b951-d872f2087c98
2012-07-10 20:02:40 +00:00
rdsmith@chromium.org
10848bb917 Fixed CHECKs for use of canceled ResourceContexts in ResourceDispatcherHostImpl.
Checks weren't taking into account the possibility of a later allocation re-using a
deleted pointer.

TBR=willchan@chromium.org
BUG=90971
BUG=100566
TEST="browser_tests --gtest_filter=BrowserCloseTest.DISABLED_DownloadsCloseCheck_1 --gtest_repeat=10 --gtest_also_run_disabled_tests" with no crash.


Review URL: https://chromiumcodereview.appspot.com/10389030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137163 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-15 17:40:52 +00:00
kinuko@chromium.org
bcbd98de32 Change webkit/{fileapi,quota} code to use TaskRunner.
BUG=123559
TEST=existing tests

Review URL: https://chromiumcodereview.appspot.com/10197007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135616 0039d316-1c4b-4281-b951-d872f2087c98
2012-05-07 04:10:10 +00:00
jamesr@chromium.org
3d662c390f Show gpu process stats in about:tcmalloc
BUG=123939
TEST=launch GPU process by navigating to a page requiring it. open about:tcmalloc. refresh. see GPU process memory information


Review URL: http://codereview.chromium.org/10041017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133816 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-25 00:05:17 +00:00
michaeln@google.com
5af15b4961 Get chrome:// dev tool urls hooked up in content_shell.
Review URL: https://chromiumcodereview.appspot.com/9950040

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133107 0039d316-1c4b-4281-b951-d872f2087c98
2012-04-20 00:57:39 +00:00
jam@chromium.org
9a3b349b67 Have content cancel requests for ResourceContexts when they shutdown, instead of depending on the embedder to do this.
I ran into DCHECKs in tests that were running as browser_tests but should have been running as unittests instead. I made them unittests which should also make them faster and remove the flakiness.

BUG=98716,115188,115150,115307
Review URL: https://chromiumcodereview.appspot.com/9836066

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128909 0039d316-1c4b-4281-b951-d872f2087c98
2012-03-26 14:38:15 +00:00
jam@chromium.org
ff1e64e3fb Remove resource_request_info_impl.h dependency from chrome. This also makes blob/file system work in content based browsers.
I also moved the appcache/blob/cache developer urls to content so that they work in content_shell. This simplifies the Content API since the static blob/filesystem getters in ResourceContext are now not needed.

BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9834039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128493 0039d316-1c4b-4281-b951-d872f2087c98
2012-03-23 15:21:51 +00:00
tzik@chromium.org
16dd6e2582 Rename content/{common,browser}/file_system to fileapi and move blob stuff into it.
This patch:
 - renames content/{common,browser]/file_system to content/{common,browser}/fileapi,
 - moves content/browser/chrome_blob_storage_context.{h,cc} into content/browser/fileapi,
 - moves content/common/webblob_registry_impl.{h,cc} into content/common/fileapi,
 - moves content/common/{file_system_messages.h,webblob_messages.h} into content/common/fileapi,
 - adds jianli@ to OWNERS of content/{browser,common}/fileapi,
 - rename FileAndBlobMessageFilter to FileAPIMessageFilter.

BUG=115603
TEST='Build should finish successfully'


Review URL: http://codereview.chromium.org/9558006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124439 0039d316-1c4b-4281-b951-d872f2087c98
2012-03-01 19:08:20 +00:00
jam@chromium.org
7e26ac973e Fix race condition where the items on ResourceContext's UserData map were rewritten to the same value as they were read on the IO thread.
BUG=115678
Review URL: https://chromiumcodereview.appspot.com/9466031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123794 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-27 20:15:05 +00:00
jam@chromium.org
c1fff0754f Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a glorified std::pair after the recent refactorings.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9467016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123588 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-24 23:38:12 +00:00
erikwright@chromium.org
38ed59bd62 Fail gracefully if InitializeResourceContext ends up calling itself recursively.
BUG=None
TEST=chrome_frame_net_tests don't crash at shutdown (Note, they currently crash at startup or simply don't run without a few other patches applied - this fixes one of the crashes!).


Review URL: http://codereview.chromium.org/9443033

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123492 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-24 17:08:24 +00:00
jam@chromium.org
5fe3713acc Move creation and ownership of HostZoomMap to content instead of having every embedder do this.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9416070

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123002 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-22 08:31:56 +00:00
jam@chromium.org
314c3e2d86 Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't used by chrome, so they can be hidden from chrome. The rest were accessed by chrome, but we don't need every embedder to store this data on their ResourceContext implementation. Instead have content associate the data itself to simplify the work for embedders.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9425026

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122790 0039d316-1c4b-4281-b951-d872f2087c98
2012-02-21 03:57:42 +00:00