summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkitclient_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use lock-free lazy initialization for static histogram referencesjar@chromium.org2011-04-051-6/+4
| | | | | | | | | | | | | | | | Make all histogram macros thread safe, and fast by again using statics to achieve performance. ...at the cost of: Leak all histograms to avoid races at shutdown. Also included leak suppression for valgrind. r=rtenneti BUG=78207 Review URL: http://codereview.chromium.org/6780035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80412 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Make WebKitClient::traceEvent issue GPU_TRACE_EVENTs.nduca@chromium.org2011-03-231-1/+6
| | | | | | Review URL: http://codereview.chromium.org/6715009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79166 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 78992 - Make WebKitClient::traceEvent issue GPU_TRACE_EVENTs.andybons@chromium.org2011-03-221-6/+1
| | | | | | | | | Review URL: http://codereview.chromium.org/6715009 TBR=nduca@chromium.org Review URL: http://codereview.chromium.org/6708090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78995 0039d316-1c4b-4281-b951-d872f2087c98
* Make WebKitClient::traceEvent issue GPU_TRACE_EVENTs.nduca@chromium.org2011-03-221-1/+6
| | | | | | Review URL: http://codereview.chromium.org/6715009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78992 0039d316-1c4b-4281-b951-d872f2087c98
* Implement cryptographicallyRandomValues to let WebKit have someabarth@chromium.org2011-02-231-2/+14
| | | | | | | | cryptographically strong random values inside the sandbox. Review URL: http://codereview.chromium.org/6581007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75815 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up webkit resources.xiyuan@chromium.org2011-01-241-18/+0
| | | | | | | | | | | | | - Remove the original resource files. Those files are now in gfx/resources. - Remove webkit_resources references to the orignal resource files. BUG=chromium-os:9256 TEST=none. Review URL: http://codereview.chromium.org/6287007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72348 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land http://codereview.chromium.org/6265009 which was reverted to try to ↵crogers@google.com2011-01-221-4/+64
| | | | | | | | fix tree redness TBR=rniwa git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72279 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 72259 - Bundle audio spatialization resources for use by the web ↵rniwa@chromium.org2011-01-221-64/+4
| | | | | | | | | | | | | | | | | | | audio API This CL caused a lot of browser tests to crash on Windows. It's possible that the crashes were caused by some bot flakiness but we need to revert this CL first to diagnose the cause. BUG=none TEST=none (I tested locally on Mac OS X against all of my web audio API demos) Review URL: http://codereview.chromium.org/6265009 TBR=crogers@google.com Review URL: http://codereview.chromium.org/6314015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72268 0039d316-1c4b-4281-b951-d872f2087c98
* Bundle audio spatialization resources for use by the web audio APIcrogers@google.com2011-01-221-4/+64
| | | | | | | | | | BUG=none TEST=none (I tested locally on Mac OS X against all of my web audio API demos) Review URL: http://codereview.chromium.org/6265009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72259 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete base/lock.h and fix up callers to use the new header file andbrettw@chromium.org2011-01-211-4/+4
| | | | | | | | | | | the base namespace. Fix several files including lock.h unnecessarily. BUG=none TEST=none Original review=http://codereview.chromium.org/6142009/ Patch by leviw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72106 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-8/+8
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* Add implementation of WebThemeEngine for the Mac (declared bymihaip@chromium.org2010-12-291-1/+1
| | | | | | | | | | | http://webkit.org/b/51507). This allows scrollbar thumb rendering to be overridden, so that we can match the Mac port's when running under the DRT. BUG=23498 TEST=Layout tests Review URL: http://codereview.chromium.org/6041005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70278 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land earlier patch that moves the NPAPI implementation from ↵brettw@chromium.org2010-12-211-5/+5
| | | | | | webkit/glue/plugins to webkit/plugins/npapi git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69808 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi"chase@chromium.org2010-12-211-5/+5
| | | | | | | | | | | | Manually reverting r69755, which broke the tree. BUG=none TEST=none TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/5998002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69771 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to ↵chase@chromium.org2010-12-201-5/+5
| | | | | | | | | | | | | | | webkit/plugins/npapi" Manually reverting r69766, which was itself a failed revert of r69755. BUG=none TEST=none TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/5996003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69768 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 69755 - Move the NPAPI files from webkit/glue/plugins to ↵brettw@chromium.org2010-12-201-5/+5
| | | | | | | | | | | | | | | webkit/plugins/npapi and put them in the webkit::npapi namespace. BUG=none TEST=none Review URL: http://codereview.chromium.org/6012002 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/5961004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69766 0039d316-1c4b-4281-b951-d872f2087c98
* Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and putbrettw@chromium.org2010-12-201-5/+5
| | | | | | | | | | them in the webkit::npapi namespace. BUG=none TEST=none Review URL: http://codereview.chromium.org/6012002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69755 0039d316-1c4b-4281-b951-d872f2087c98
* (Committing on behalf of Chris Rogers -- original CL ↵kbr@google.com2010-12-161-0/+11
| | | | | | | | | | | | | | | http://codereview.chromium.org/5550006/ ) Implement WebKitClientImpl::loadAudioResource() to decode in-memory audio file data for use by WebKit. Most of the interesting low-level code is being added in the media directory. BUG=NONE TEST=NONE (tested locally with web audio API loading files of format .wav .aif .mp3 .m4a 16bit 24bit In the longer term, WebKit layout tests will comprehensively exercise this code) Review URL: http://codereview.chromium.org/5880002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69458 0039d316-1c4b-4281-b951-d872f2087c98
* Rename all methods accessing Singleton<T> as GetInstance().satish@chromium.org2010-12-131-2/+2
| | | | | | | | | | | | | This is in preparation to a subsequent CL where Singleton<T> will restrict access to only the type being made singleton. I also moved pepper::ResourceTracker to a lazy instance since there were too many places in code where this class was being accessed from and this was a smaller change than renaming methods in that case. BUG=65298 TEST=all existing tests should pass. Review URL: http://codereview.chromium.org/5685007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68982 0039d316-1c4b-4281-b951-d872f2087c98
* histogram API of WebKitClient implemented in chromium/webkit/gluescheib@chromium.org2010-12-021-0/+25
| | | | | | | | | BUG=62865 TEST=none Review URL: http://codereview.chromium.org/5406004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67920 0039d316-1c4b-4281-b951-d872f2087c98
* Add form validation message strings.tkent@chromium.org2010-11-251-7/+51
| | | | | | | | | | | | | | | | | | | | | | | * webkit/glue/ - Add overloads of queryLocalizedString() functions They will be added to WebKit::WebKitClient later. - Add implementations for WebLocalizedString::Validation* - Add message strings The English strings are different from WebKit's to avoid the brusque WebKit's strings. Port some messages from Mozilla. * webkit/tools/test_shell/ and webkit/support/ Hook queryLocalizedString() functions in order to return messages same as WebKit in layout test. BUG=28264 TEST=LayoutTests/fast/forms/validationMessage.html Review URL: http://codereview.chromium.org/4678006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67382 0039d316-1c4b-4281-b951-d872f2087c98
* Add "default:" to the WebLocalizedString switch statement in ToMessageID().tkent@chromium.org2010-11-091-0/+4
| | | | | | | | | | | | This is needed to avoid compiler warnings about enum coverage when we add new symbols to WebLocalizedString.h. This "default:" is going to be removed when a planned WebLocalizedString.h change is merged BUG=28264 TEST=none; no behavior change. Review URL: http://codereview.chromium.org/4726002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65502 0039d316-1c4b-4281-b951-d872f2087c98
* Move debug-related stuff from base to the base/debug directory and use thebrettw@chromium.org2010-10-261-1/+1
| | | | | | | | | | | | | | | | base::debug namespace. This splits apart debug_util into base/debugger and base/stack_trace There are still two functions in debug_util that I'm not sure what to do with. Since this uses the base::debug namespace, I removed the functions in debugger.h from the static class and just made them free functions in the namespace. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3945002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63859 0039d316-1c4b-4281-b951-d872f2087c98
* Move Stats, histograms, and field trial into a metrics subdirectory of base andbrettw@chromium.org2010-10-141-3/+3
| | | | | | | | | put them in the base namespace. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62510 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed include in test_webkit_clientdavemoore@chromium.org2010-10-101-1/+1
| | | | | | | | | | | | | retrying "Revert 62068 - Move implementation of linux scrollbars from webkit using new" See: http://codereview.chromium.org/3618014 TBR:jam@chromium.org BUG=chromium-os:6857 TEST=Verify that both linux and chromeos scrollbars look right. Review URL: http://codereview.chromium.org/3697001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62093 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 62068 - Move implementation of linux scrollbars from webkit using newdavemoore@chromium.org2010-10-091-1/+1
| | | | | | | | | | | | | | WebThemeEngine api. Also implement chromeos specific version. BUG=chromium-os:6857 TEST=Verify that both linux and chromeos scrollbars look right. Review URL: http://codereview.chromium.org/3618014 TBR=davemoore@chromium.org Review URL: http://codereview.chromium.org/3678003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62070 0039d316-1c4b-4281-b951-d872f2087c98
* Move implementation of linux scrollbars from webkit using newdavemoore@chromium.org2010-10-091-1/+1
| | | | | | | | | | | WebThemeEngine api. Also implement chromeos specific version. BUG=chromium-os:6857 TEST=Verify that both linux and chromeos scrollbars look right. Review URL: http://codereview.chromium.org/3618014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62068 0039d316-1c4b-4281-b951-d872f2087c98
* Implement on Chromium side recently added actualMemoryUsageMB.antonm@chromium.org2010-09-081-2/+11
| | | | | | | | | This new method is needed in the cases when stale values from caches are not acceptable, for example, when estimating an effect of GC on working set of the app. Review URL: http://codereview.chromium.org/3294010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58808 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 58153 - Introduce a flag to bypass the cache when retrieving current ↵chase@chromium.org2010-09-011-3/+2
| | | | | | | | | | | | | memory usage. We need the most fresh value when giving an estimate to current working set, for example, after major GC in V8 happened. Review URL: http://codereview.chromium.org/3285003 TBR=antonm@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58206 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce a flag to bypass the cache when retrieving current memory usage.antonm@chromium.org2010-09-011-2/+3
| | | | | | | | | We need the most fresh value when giving an estimate to current working set, for example, after major GC in V8 happened. Review URL: http://codereview.chromium.org/3285003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58153 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Move code from headers into cc files.erg@google.com2010-08-271-0/+3
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3219002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57732 0039d316-1c4b-4281-b951-d872f2087c98
* Move the number conversions from string_util to a new file.brettw@chromium.org2010-07-301-1/+2
| | | | | | | | | | | | | Use the base namespace in the new file. Update callers. I removed all wstring variants and also the string->number ones that ignore the return value. That encourages people to write code and forget about error handling. TEST=included unit tests BUG=none Review URL: http://codereview.chromium.org/3056029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54355 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Determine credit card type based on the CC number and display thejhawkins@chromium.org2010-07-301-1/+8
| | | | | | | | | | | appropriate CC icon. BUG=50080 TEST=none Review URL: http://codereview.chromium.org/3010041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54280 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Temporarily remove a NOTREACHED until WK is fixed to not send injhawkins@chromium.org2010-07-291-1/+3
| | | | | | | | | | | empty strings. BUG=50674 TEST=none Review URL: http://codereview.chromium.org/3069012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54196 0039d316-1c4b-4281-b951-d872f2087c98
* AutoFill: Display a right-aligned generic CC icon in the suggestions popup forjhawkins@chromium.org2010-07-281-0/+1
| | | | | | | | | | | billing suggestions. BUG=50080 TEST=none Review URL: http://codereview.chromium.org/3071003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54052 0039d316-1c4b-4281-b951-d872f2087c98
* Add images used by webkit for the speech input button.satish@chromium.org2010-07-281-0/+3
| | | | | | | | | | | | | | | The try servers seem to not support testing these types of resource/image additions, hence all builds fail in try. However I have verified that this builds fine on my windows,mac and linux machines. Please advise if any of the changes in the GRD or webkitclient_impl.cc need to be inside #if ENABLE_INPUT_SPEECH. I did not add the ifdef since I didn't see any for other such features in both these files. BUG=none TEST=none yet as the feature is still being implemented and not enabled Review URL: http://codereview.chromium.org/3058019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53991 0039d316-1c4b-4281-b951-d872f2087c98
* base/ header cleanup. Forward declaration instead of including.erg@google.com2010-07-281-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3068004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53969 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup of a couple files: sort arrays of resource IDs into order (to ↵pkasting@chromium.org2010-07-091-17/+17
| | | | | | | | | | match .grds which were recently sorted into order). BUG=none TEST=none Review URL: http://codereview.chromium.org/2941004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51994 0039d316-1c4b-4281-b951-d872f2087c98
* Add images of indeterminate checkboxes for Linux.tkent@chromium.org2010-07-021-0/+3
| | | | | | | | | | | These iamge were based on existing linux-checkbox-*.png and modified by tkent. BUG=36321 TEST=none Review URL: http://codereview.chromium.org/2883013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51502 0039d316-1c4b-4281-b951-d872f2087c98
* Convert WebPluginInfo from wstring to string16stuartmorgan@chromium.org2010-06-231-4/+2
| | | | | | | | | BUG=None TEST=No behavioral change; plugins should continue to work. Review URL: http://codereview.chromium.org/2866014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50650 0039d316-1c4b-4281-b951-d872f2087c98
* Added resource images for progress bar on Linux.tony@chromium.org2010-06-101-0/+4
| | | | | | | | | | | WebKit side is https://bugs.webkit.org/show_bug.cgi?id=37310 Patch by morrita@google.com originally at http://codereview.chromium.org/2478002/show Review URL: http://codereview.chromium.org/2759007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49376 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up the last bits of the dirfd parameter that was used bydumi@chromium.org2010-05-141-10/+0
| | | | | | | | | | | | SQLiteFileSystemChromiumPosix. TEST=none BUG=none Review URL: http://codereview.chromium.org/2087003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47234 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the dirfd parameter from all Chromium code. The POSIX VFSdumi@chromium.org2010-05-121-0/+7
| | | | | | | | | | | doesn't need it. BUG=43489 TEST=none Review URL: http://codereview.chromium.org/2055009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47006 0039d316-1c4b-4281-b951-d872f2087c98
* Add Chromium side implementation for WebFileSystem interface in WebKit.jianli@chromium.org2010-05-061-67/+0
| | | | | | | | | BUG=none TEST=non Review URL: http://codereview.chromium.org/1748015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46625 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to non-deprecated WebKit APIs and delete client methods that are nodarin@chromium.org2010-05-051-4/+0
| | | | | | | | | | | | longer called by WebKit. R=jhawkins BUG=none TEST=none Review URL: http://codereview.chromium.org/1995002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46508 0039d316-1c4b-4281-b951-d872f2087c98
* Add a context parameter to callOnMainThread. The old form is going to bedarin@chromium.org2010-04-281-0/+4
| | | | | | | | | | | | deprecated. R=dimich BUG=42751 TEST=none Review URL: http://codereview.chromium.org/1794005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45845 0039d316-1c4b-4281-b951-d872f2087c98
* Fix arm compile after turning on gcc warnings.tony@chromium.org2010-04-211-1/+1
| | | | | | | | | | Actually fix a comment that was pointed out during review. TBR=rolandsteiner Review URL: http://codereview.chromium.org/1734003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45165 0039d316-1c4b-4281-b951-d872f2087c98
* Indicate in the tab UI if appcache creation was blocked by privacy settings.jochen@chromium.org2010-04-091-7/+0
| | | | | | | | | TEST=manual BUG=38362 Review URL: http://codereview.chromium.org/1600002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44079 0039d316-1c4b-4281-b951-d872f2087c98
* Move plugin-related files in webkit/glue to webkit/glue/plugins to make thembrettw@chromium.org2010-03-311-1/+1
| | | | | | | | | | | easier to find. With a random subset of files in webkit/glue, it's impossible to predict where you should find a file. No code change TEST=none BUG=none Review URL: http://codereview.chromium.org/1559008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43177 0039d316-1c4b-4281-b951-d872f2087c98