summaryrefslogtreecommitdiffstats
path: root/webkit/browser/database
Commit message (Collapse)AuthorAgeFilesLines
* Not creating ClientUsageTracker for unsupported storage type.serya@chromium.org2013-09-042-1/+6
| | | | | | | | | | | | | | | | Extracted from https://chromiumcodereview.appspot.com/23240002/ Currently we create all usage trackers for each pair QuotaClient/StorageType. Most clients only support one storage type and filesystem support variable list of types (it doesn't have kStorageTypeSyncable in unittests). If filesystem has no syncable storage backend it not useless to keep create ClientUsageTracker. This tracker fails when GetHostUsage is invoked. So let's don't create it. BUG=281252 Review URL: https://chromiumcodereview.appspot.com/23545016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221244 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Remove usage of deprecated FilePath::FromWStringHack() function.tfarina@chromium.org2013-08-252-21/+19
| | | | | | | | | | BUG=24672,76112 TEST=content_unittests R=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/23301002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219483 0039d316-1c4b-4281-b951-d872f2087c98
* Update include paths in webkit for base/process changes.rsesek@chromium.org2013-07-251-1/+1
| | | | | | | | | BUG=242290 TBR=jamesr@chromium.org Review URL: https://codereview.chromium.org/20009002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213629 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of the message_loop header in webkit/, part 1.avi@chromium.org2013-07-182-2/+2
| | | | | | | | | | BUG=260807 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/19633002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212244 0039d316-1c4b-4281-b951-d872f2087c98
* Delete unnecessary lines of code.darin@chromium.org2013-07-171-1/+0
| | | | | | | | R=jamesr@chromium.org Review URL: https://codereview.chromium.org/19463004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212085 0039d316-1c4b-4281-b951-d872f2087c98
* Rename base::Delete to base::DeleteFilebrettw@chromium.org2013-07-162-6/+6
| | | | | | | | | | | Also renames DeleteAfterReboot to DeleteFileAfterReboot, and removes FileUtilProxy::RecursiveDelete which was never called. BUG= R=shess@chromium.org Review URL: https://codereview.chromium.org/18584011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211822 0039d316-1c4b-4281-b951-d872f2087c98
* [sql] Convert webkit tests to use ScopedErrorIgnorer.shess@chromium.org2013-07-151-11/+11
| | | | | | | | | | | Get rid of some error callbacks by converting to ScopedErrorIgnorer. Also make the error suppression more specific. BUG=none Review URL: https://chromiumcodereview.appspot.com/18051005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211696 0039d316-1c4b-4281-b951-d872f2087c98
* Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual ↵brettw@chromium.org2013-07-151-3/+3
| | | | | | | | | | to the base namespace. TBR=sky Review URL: https://codereview.chromium.org/19052005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211675 0039d316-1c4b-4281-b951-d872f2087c98
* Move PathExists to base namespace.brettw@chromium.org2013-07-113-16/+16
| | | | | | | | | BUG= TBR=jam@chromium.org Review URL: https://codereview.chromium.org/18286004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211147 0039d316-1c4b-4281-b951-d872f2087c98
* Move DeleteAfterReboot, Move, and ReplaceFile to base namespacebrettw@chromium.org2013-07-011-1/+1
| | | | | | | | | | | | Rename ReplaceFileAndGetError (only used once) to ReplaceFile (used 5 times) and have each of those callers specify NULL for the output error if they don't care. Remove InsertBeforeExtension from file_util.cc which seems to be unused. BUG= Review URL: https://codereview.chromium.org/18383003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209532 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_util::Delete to the base namespacebrettw@chromium.org2013-07-012-6/+6
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/16950028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209475 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Migrate from googleurl/ includes to url/ ones.tfarina@chromium.org2013-06-291-1/+1
| | | | | | | | | BUG=229660 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/18191004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209316 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in webkit/, win8/.avi@chromium.org2013-06-282-2/+2
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/18029013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209154 0039d316-1c4b-4281-b951-d872f2087c98
* Use sql::Connection::Delete() in webkit.shess@chromium.org2013-06-251-6/+1
| | | | | | | | | | New API deletes main database and any associated files. BUG=none Review URL: https://chromiumcodereview.appspot.com/17580023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208362 0039d316-1c4b-4281-b951-d872f2087c98
* Use chromium logic for database identifier<->origin conversionsjamesr@chromium.org2013-06-196-32/+31
| | | | | | | | | | | | | This switches over to using the logic added in r206815 for database id / origin identification instead of WebSecurityOrigin. I'll delete the old code after this has landed. BUG=243095 TBR=thakis Review URL: https://chromiumcodereview.appspot.com/16879013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207191 0039d316-1c4b-4281-b951-d872f2087c98
* Origin identifiers are always ASCII, store as std::stringjamesr@chromium.org2013-06-1811-164/+174
| | | | | | | | | | | | | | | | | Origin identifiers are computed by a process that always produces ASCII strings. There's no reason to store origin identifiers as base::string16 or to do unicode conversions for them. Keeping them stored in std::string is a slight memory and performance improvement and avoids lots of sketchy conversions when converting to FilePaths. This patch still involves a number of conversions (or things that look like conversions) at the WebKit API boundary. BUG=243095 Review URL: https://chromiumcodereview.appspot.com/16965018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206903 0039d316-1c4b-4281-b951-d872f2087c98
* Update Blink include pathsabarth@chromium.org2013-06-171-1/+1
| | | | | | | | | | | | | This CL changes the majority of include paths from the old Source/WebKit/chromium/public to the new public/web directory. TBR=darin BUG=239545 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17148003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206664 0039d316-1c4b-4281-b951-d872f2087c98
* Fix webkit_storage exports definitionskinuko@chromium.org2013-06-135-14/+14
| | | | | | | | | | | | Also removes webkit/storage/* BUG=239109 R=tzik@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/16701004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205996 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite scoped_ptr<T>(NULL) to use the default ctor in webkit/.dcheng@chromium.org2013-06-121-5/+3
| | | | | | | | | | | This is the result of running the rewrite_scoped_ptr_ctor_null tool across all files built on Linux in the webkit/ directory. BUG=173286 Review URL: https://chromiumcodereview.appspot.com/15662016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205741 0039d316-1c4b-4281-b951-d872f2087c98
* Call scoped_refptr<T>::get() rather than relying on implicit "operator T*"rsleevi@chromium.org2013-06-112-14/+10
| | | | | | | | | | | | | | | | | | | This upates calls to bound temporary objects to also use get(). While it has the same semantic equivalence to the existing code, this generally represents a dangerous pattern - indeed, part of the whole motivation for this change is to make this anti-pattern very visible to authors. This change simply updates all of the call sites, to allow the "operator T*" to be removed and preventing new instances. The existing instances will then be reviewed for "suspicious" changes and updated to use/pass scoped_refptr<T> rather than T*, as appropriate. BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/15984016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205560 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in webkit/, part 1.avi@chromium.org2013-06-115-6/+6
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/16434010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205512 0039d316-1c4b-4281-b951-d872f2087c98
* 2nd try: Split webkit_storage target into ↵kinuko@chromium.org2013-06-111-20/+0
| | | | | | | | | | | | | | | | | | | | | | webkit_storage_{browser,common,renderer} This does: - Remove all webkit/browser/foo/*.gypi, webkit/common/foo/*.gypi for storage - Add three top-level gyp's in webkit/: storage_{browser,common,renderer}.gyp storage_common and storage_renderer might be able to be subsumed in bigger targets for common|renderer, but believe we can do that later when necessary. Original review: https://codereview.chromium.org/15716007/ BUG=239109 TBR=jamesr@chromium.org,mnaganov@chromium.org,thestig@chromium.org,avi@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/16091011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205489 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 205463 "Split webkit_storage target into webkit_storage_{..."kinuko@chromium.org2013-06-111-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | Broke split_link > Split webkit_storage target into webkit_storage_{browser,common,renderer} > > This does: > - Remove all webkit/browser/foo/*.gypi, webkit/common/foo/*.gypi for storage > - Add three top-level gyp's in webkit/: storage_{browser,common,renderer}.gyp > > storage_common and storage_renderer might be able to be subsumed in > bigger targets for common|renderer, but believe we can do that later > when necessary. > > BUG=239109 > TBR=mnaganov,thestig,avi > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/15716007 TBR=kinuko@chromium.org Review URL: https://codereview.chromium.org/16365013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205474 0039d316-1c4b-4281-b951-d872f2087c98
* Split webkit_storage target into webkit_storage_{browser,common,renderer}kinuko@chromium.org2013-06-111-20/+0
| | | | | | | | | | | | | | | | | | This does: - Remove all webkit/browser/foo/*.gypi, webkit/common/foo/*.gypi for storage - Add three top-level gyp's in webkit/: storage_{browser,common,renderer}.gyp storage_common and storage_renderer might be able to be subsumed in bigger targets for common|renderer, but believe we can do that later when necessary. BUG=239109 TBR=mnaganov,thestig,avi NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15716007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205463 0039d316-1c4b-4281-b951-d872f2087c98
* Update includes of message_loop_proxy.brettw@chromium.org2013-06-105-5/+5
| | | | | | | | | | | This keeps the forwarding header, just updates all current callers. BUG= R=avi@chromium.org Review URL: https://codereview.chromium.org/16514006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205306 0039d316-1c4b-4281-b951-d872f2087c98
* Move FileEnumerator to its own file, do some refactoring.brettw@chromium.org2013-06-081-4/+5
| | | | | | | | | | | | | | It creates a class FileInfo to contain the details rather than using a platform-specific typedef. This allows the accessors GetName, GetSize, etc. to be moved directly to this class (previously they were static helpers on the FileEnumerator class) which makes a bunch of code much cleaner. It also gives reasonable getting and initialization which the previous version lacked. BUG=175002 Reland of 198820 and 298824 Original review = https://codereview.chromium.org/13165005 R=rvargas@chromium.org Review URL: https://codereview.chromium.org/16392011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205019 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of utf_string_conversions.h in google_apis/, gpu/, ↵avi@chromium.org2013-06-077-7/+7
| | | | | | | | | | | | ipc/, media/, ppapi/, printing/, remoting/, rlz/, skia/, sql/, sync/, third_party/, tools/, webkit/, win8/. BUG=none TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15995038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204967 0039d316-1c4b-4281-b951-d872f2087c98
* Convert webkit/ sql::ErrorDelegate to callback.shess@chromium.org2013-06-071-16/+7
| | | | | | | | | | API cleanup. BUG=none Review URL: https://chromiumcodereview.appspot.com/16026014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204734 0039d316-1c4b-4281-b951-d872f2087c98
* Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-023-29/+40
| | | | | | | | | | | Linux fixes BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/16155009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203636 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/quota files to webkit/browser/quota or webkit/common/quotatzik@chromium.org2013-05-303-6/+6
| | | | | | | | | | | | | | | | | This CL includes: - Move webkit/quota/quota_{types.{h,cc},callbacks.h} webkit/common/quota/, - Move other webkit/quota/ files to webkit/browser/quota/, - #include and include guard fix for the move, - Split webkit/quota/webkit_quota.gypi to webkit/{browser,common}/quota, - Change DEPS to allow #include webkit/common from chrome/browser. BUG=244363 TEST=should build successfully and should pass deps check. NOTRY=True Review URL: https://chromiumcodereview.appspot.com/16010007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203082 0039d316-1c4b-4281-b951-d872f2087c98
* Update refernces to Blink's Platform API (webkit)abarth@chromium.org2013-05-301-1/+1
| | | | | | | | | | | | | | These headers have moved from Source/Platform/chromium/public to public/platform. This CL updates src/webkit's references to the old location to point to the new location. After this CL lands, I'll remove the forwarding headers that are letting these references still work. TBR=jamesr@chromium.org BUG=239545 Review URL: https://chromiumcodereview.appspot.com/15937016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203020 0039d316-1c4b-4281-b951-d872f2087c98
* [Quota][Clean up] Drop non-informative StorageType parameter on ↵tzik@chromium.org2013-05-292-13/+7
| | | | | | | | | | | | | | | GetOriginsForType callback The caller of GetOriginsForType should know the StorageType, so this parameter will not add any information to the callback. Historically this was useful when we'd used old callbacks. BUG=220029 TEST=should not break existing tests Review URL: https://chromiumcodereview.appspot.com/15925005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202805 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/database to webkit/browser and webkit/common. Also move ↵michaeln@google.com2013-05-2215-0/+3401
content::WebDatabaseObserverImpl to the new common_child library. - just moving the files in the source repository - and fixing up complilation guards - and fixing up include paths throughout - and fixing up DEPs files as needed Note: Everything in /webkit is still being built into the same old webkit_storage target for now, new actual build target(s) will come later. BUG=239109 R=jamesr@chromium.org, kinuko@chromium.org, piman@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/15367010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201619 0039d316-1c4b-4281-b951-d872f2087c98