summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_context.cc
Commit message (Collapse)AuthorAgeFilesLines
* Support partitioning of storage contexts based on render_id.ajwong@chromium.org2012-07-121-129/+110
| | | | | | | | | | | | | This modifies BrowserContext to support having multiple storage partitions based on the child process id. The embedder is given a function that allows it to map a child process id into different storage buckets. R=creis,nasko,jam TBR=marja BUG=85121 TEST=add an isolated app that covers a path like http://www.example.com/isolated/. On that page, add an entry to local storage. Access another page on www.example.com that is not isolated. Check that it cannot see the previously set entry. Repeat test in the reverse direction. Review URL: https://chromiumcodereview.appspot.com/10600009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146443 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure static BrowserContext methods only get called on the UI thread. Also ↵jam@chromium.org2012-07-101-0/+5
| | | | | | | | 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
* Rewrite download manager unit to be actual unit tests.rdsmith@chromium.org2012-06-121-3/+13
| | | | | | | | | | | | 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
* Move creation and ownership of DownloadManager from the embedder to content. ↵jam@chromium.org2012-06-061-0/+22
| | | | | | | | | | | 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
* Unwire the clear on exit preference from the storage systems.jochen@chromium.org2012-06-051-23/+10
| | | | | | | | | | | | | The "session only" rules should cover the functionality now UI changes and migration code will follow BUG=129349 TEST=added unit tests for the chrome/browser/net/sqlite* classes Review URL: https://chromiumcodereview.appspot.com/10447117 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140502 0039d316-1c4b-4281-b951-d872f2087c98
* More DomStorage house cleaning, many files but all mechanical changes.michaeln@google.com2012-04-171-12/+1
| | | | | | | | | | - delete old in_process_webkit sources (hooray) - rename the new sources to no longer have the _new suffix - fix up the includes - remove the ENABLE_NEW_DOM_STORAGE_BACKEND flag since old stuff is now gone Review URL: https://chromiumcodereview.appspot.com/10086018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132504 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127575 - Revert 127573 - DOMStorageContextImpl that's implemented in ↵michaeln@google.com2012-03-201-19/+16
| | | | | | | | | | | | | | | | | terms of the new dom_storage classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. And add the missing #include to fix the compile error. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 TBR=michaeln@google.com Review URL: https://chromiumcodereview.appspot.com/9726022 TBR=dgrogan@chromium.org Review URL: https://chromiumcodereview.appspot.com/9726023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127604 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 127573 - DOMStorageContextImpl that's implemented in terms of the new ↵dgrogan@chromium.org2012-03-191-16/+19
| | | | | | | | | | | | dom_storage classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 TBR=michaeln@google.com Review URL: https://chromiumcodereview.appspot.com/9726022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127575 0039d316-1c4b-4281-b951-d872f2087c98
* DOMStorageContextImpl that's implemented in terms of the new dom_storage ↵michaeln@google.com2012-03-191-19/+16
| | | | | | | | | classes. Also compile out existing tests that no longer apply when ENABLE_NEW_DOM_STORAGE_BACKEND is defined. BUG=106763 Review URL: https://chromiumcodereview.appspot.com/9695013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127573 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/base/cookie_*.h includes to net/cookies/cookie_*.h .erikwright@chromium.org2012-03-161-2/+2
| | | | | | | | | | | | Once complete, forwarding headers will be removed from net/base/ . TEST=none R=sky Review URL: http://codereview.chromium.org/9706057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127076 0039d316-1c4b-4281-b951-d872f2087c98
* Make the content::DOMStorageContext methods callable on the main thread and ↵jam@chromium.org2012-03-151-5/+5
| | | | | | | | hide the threading details from the embedder. Review URL: https://chromiumcodereview.appspot.com/9704048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126835 0039d316-1c4b-4281-b951-d872f2087c98
* Rename content/{common,browser}/file_system to fileapi and move blob stuff ↵tzik@chromium.org2012-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* Get rid of the clear_on_exit constructor parameter on DatabaseTracker since ↵jam@chromium.org2012-02-271-1/+1
| | | | | | | | | it's not necessary anymore (it's now set on destruction). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9475019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123814 0039d316-1c4b-4281-b951-d872f2087c98
* Fix race condition where the items on ResourceContext's UserData map were ↵jam@chromium.org2012-02-271-2/+8
| | | | | | | | | 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
* Get rid of WebKitContext. Only two out of six HTML5 related objects were in ↵jam@chromium.org2012-02-241-15/+41
| | | | | | | | | 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
* Remove usage of WebKitContext from chrome. This also cleans up the chrome ↵jam@chromium.org2012-02-241-1/+89
| | | | | | | | | | | code so that it only calls profile-wide operations (i.e. saving session/purging memory/clearing local state on exit) on the BrowserContext. The content layer takes care of calling the necessary objects on the right thread. WebKitContext now does almost nothing and I'll remove it completely in the next change. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9462007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123509 0039d316-1c4b-4281-b951-d872f2087c98
* Fail gracefully if InitializeResourceContext ends up calling itself recursively.erikwright@chromium.org2012-02-241-4/+2
| | | | | | | | | | 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
* Remove getters for HTML5 related objects from the ResourceContext interface. ↵jam@chromium.org2012-02-211-43/+18
| | | | | | | | | 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
* Move creation of BrowserContext objects that live in content to content, ↵jam@chromium.org2012-02-201-0/+168
| | | | | | | | | | instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122521 Review URL: https://chromiumcodereview.appspot.com/9419033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122768 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting to green up the memory waterfall.jhawkins@chromium.org2012-02-191-164/+0
| | | | | | | | | | | | | | BUG=114787 Revert 122521 - Move creation of BrowserContext objects that live in content to content, instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9419033 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/9421023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122705 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of BrowserContext objects that live in content to content, ↵jam@chromium.org2012-02-171-0/+164
instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9419033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122521 0039d316-1c4b-4281-b951-d872f2087c98