summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* CrOS - Change file browser to use new ExtensionDialog window.jamescook@chromium.org2011-05-202-14/+17
| | | | | | | | | | | The CrOS file browser was initially built to use HtmlDialogView, which does not really understand extensions. This CL implements an ExtensionDialog similar to an ExtensionPopup, and uses it for the file browser. This allows us to return to using window.close() in the file manager extension JavaScript and hopefully will make the file browser less brittle going forward. BUG=chromium-os:15415 TEST=Hit control-O to open files. Try opening a file, canceling with the cancel button, and canceling with escape. Do the same with "save as" for images. Automated tests to follow. Review URL: http://codereview.chromium.org/7034046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86099 0039d316-1c4b-4281-b951-d872f2087c98
* Add CHECKs to see if anyone sets a RenderViewHost's delegate to NULL.jam@chromium.org2011-05-202-2/+6
| | | | | | | BUG=82827 Review URL: http://codereview.chromium.org/7034049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86086 0039d316-1c4b-4281-b951-d872f2087c98
* Safely cancel prerenders on threads other than the UI thread.mmenke@chromium.org2011-05-203-44/+10
| | | | | | | | | | | | | | Previously, prerendering was cancelled on the IO thread by not doing something, and then passing a task to the UI thread to abort the prerender. This resulted in a race which could result in swapping in the prerender before the task was executed. This fixes that. BUG=83062 TEST=PrerenderStatusManagerTests, PrerenderBrowserTests Review URL: http://codereview.chromium.org/7038012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86082 0039d316-1c4b-4281-b951-d872f2087c98
* Call makeContextCurrent in places that are missing it.gman@chromium.org2011-05-201-0/+8
| | | | | | | | | | | | This is NDuca's patch but security wants it NOW for M11 update. The original patch is here http://codereview.chromium.org/7050024 BUG=82873 TEST=ran a long time in debugger with case that crashed before this patch TBR=nduca@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86019 0039d316-1c4b-4281-b951-d872f2087c98
* Use appropriate FileSystemOperations in "filesystem:" URLRequestJobs.adamk@chromium.org2011-05-191-4/+0
| | | | | | | | | | | | | | | | | | | | FileSystemURLRequestJob now calls GetMetadata(), while FileSystemDirURLRequestJob calls ReadDirectory(). With neither calling GetLocalPath(), the need for FileSystemURLRequestJobBase has disappeared, as has the need for FileSystemOperation::GetLocalPath and FileSystemCallbackDispatcher::DidGetLocalPath(). The only changes in behavior due to this patch are: - ReadDirectory is now called on the URL, so it will still work properly after the obsfuscated filesystem is in use. - FileSystemDirURLRequestJob has been fixed to show a directory header. This was somehow lost in the refactor to use FileSystemURLRequestJobBase. - The error codes for "file not found" are now always net::ERR_FILE_NOT_FOUND. R=ericu@chromium.org Review URL: http://codereview.chromium.org/7047013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86015 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir and scoped_native_library back from base/memory to base.thakis@chromium.org2011-05-195-8/+8
| | | | | | | | | | | It looks like they got moved accidentally in http://codereview.chromium.org/6714032 BUG=none TEST=none Review URL: http://codereview.chromium.org/7048007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86010 0039d316-1c4b-4281-b951-d872f2087c98
* Globally replace <(library) with static_libraryevan@chromium.org2011-05-197-7/+7
| | | | | | | | | | | We provided <(library) as a variable to support a peculiar build configuration on Linux. We no longer support that build configuration, so we can simplify this code to no longer use a variable. Review URL: http://codereview.chromium.org/7051014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86004 0039d316-1c4b-4281-b951-d872f2087c98
* Remove functions in RenderViewHost and RenderWidgetHost that just send an ↵jam@chromium.org2011-05-1913-404/+70
| | | | | | | | IPC message and are called by one or two places. Have the callers send the message instead. Also remove functions which dispatch an IPC only to call TabContents. Dispatch in TabContents instead. Review URL: http://codereview.chromium.org/7037041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85990 0039d316-1c4b-4281-b951-d872f2087c98
* Added more trace info to SwapBuffers, traced some functions in ↵jbates@chromium.org2011-05-191-0/+3
| | | | | | | | | | | WebGraphicsContext3D. SwapBuffers now traces frame count for both offscreen and onscreen contexts. An offscreen bool is also traced. BUG=none TEST=observe more trace info in SwapBuffers calls Review URL: http://codereview.chromium.org/7037042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85980 0039d316-1c4b-4281-b951-d872f2087c98
* Make use of the new cross-platform POSIX defines toolkit_uses_gtk, os_posix, ↵tony@chromium.org2011-05-194-5/+5
| | | | | | | | | | and use_x11 for the gyp files. For lists of source files that use a mix of POSIX and Gtk APIs, toolkit_uses_gtk was given precedence. I also added Solaris to the remaining grit files. Patch by ruben (chromium@hybridsource.org). Review URL: http://codereview.chromium.org/7011032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85979 0039d316-1c4b-4281-b951-d872f2087c98
* Make about:gpu report driver information again.nduca@chromium.org2011-05-192-10/+10
| | | | | | | | | | | | | | | | gpu_data_manager was erroneously setting the finalized bit on gpu_info, preventing new information about the driver from being merged into the active GpuInfo state. This is not needed. gpu_data_manager was not running the GpuInfoChanged callbacks when the gpu info changed. This prevented about:gpu from seeing the new gpu strings when they are collected. BUG=83149 Review URL: http://codereview.chromium.org/7049022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85976 0039d316-1c4b-4281-b951-d872f2087c98
* Miscellaneous webkit_glue namespace changes in preparation for building ↵ananta@chromium.org2011-05-191-5/+5
| | | | | | | | | | | | | | | | | | src\content as a dll. This CL removes the IsDefaultPluginEnabled function in the webkit_glue namespace. This function has been replaced by a flag in the PluginList instance which is set when the default plugin is registered as an internal plugin. The webkit_glue.cc file now implements the GetApplicationDirectory and GetExeDirectory functions in the webkit_glue namespace. Previously these functions were implemented in common_glue.cc and in test_shell. Removed the IsPluginRunningInRendererProcess function from webkit_glue and fixed the callers to not depend on this functionality. BUG=82454 Review URL: http://codereview.chromium.org/6975028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85937 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ShowCollectedCookiesDialog from TabContentsDelegate, since content ↵jam@chromium.org2011-05-192-7/+0
| | | | | | | | | layer shouldn't have to know about this Chrome feature. BUG=76697 Review URL: http://codereview.chromium.org/7039053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85923 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded call to StartCrossSiteTransition.creis@chromium.org2011-05-191-2/+4
| | | | | | | | | | | This prevents running the unload handler and swapping out the previous RVH. BUG=82667 TEST=SSLUITest.TestHTTPSExpiredCertAndGoBackViaButton Review URL: http://codereview.chromium.org/7017023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85919 0039d316-1c4b-4281-b951-d872f2087c98
* Drop url_constants dependency in content/.avi@chromium.org2011-05-1916-27/+40
| | | | | | | | | BUG=76697 TEST=compiles, about:urls still work Review URL: http://codereview.chromium.org/7044013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85907 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the code in TestTabContents that closes infobars. If a code is using ↵jam@chromium.org2011-05-183-42/+0
| | | | | | | | | infobars in unit tests, then they must be using TabContentsWrapper, which has an infobarcontainer. BUG=76697 Review URL: http://codereview.chromium.org/7043013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85835 0039d316-1c4b-4281-b951-d872f2087c98
* Add histograms for the delay between DoDeferredUpdates.nduca@chromium.org2011-05-182-0/+21
| | | | | | Review URL: http://codereview.chromium.org/7035020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85832 0039d316-1c4b-4281-b951-d872f2087c98
* Support getting the font list in Pepper. This currently only works out ofbrettw@chromium.org2011-05-1821-50/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | process. This adds a function to the font interface to get the font list. Since we don't have arrays or dictionaries in Pepper yet, I used a string with nulls separating the names. A previous attempt to make a "font list resource" proved excessively complicated and not actually much easier for clients to deal with. This refactors the existing font list getting that used to be in the options for the browser. I moved it to content and split it into two pieces, the synchronous version, and then an asynchronous wrapper around that which both the prefs code and the pepper code use. This cleaned up some of the preferences code, and also fixes the leak of the entire font list in the code. I used the new callback/bind system for the async font loading. I had to add BrowserThread support for the new system. This uses the PepperMessageFilter to listen for font load requests from the plugin in the browser process. This is nice because we can add stuff here and have messages serviced for both in-process and out-of-process plugins. This proved to be complicated due to the HostResolver used in some of the existing code, and thread restrictions for how to deal with it. This is why there are two modes for the filter object. I changed the delegates around for the Dispatcher. Now the PluginDispatcher has the delegate interface since the HostDispatcher didn't actually need any of them and we were accumulating a lot of empty functions in the PepperPluginRegistry. It's possible for the fonts to be loaded on Windows and Mac without IPC, since enumerating fonts should be possible inside the sandbox. I didn't implement this since it adds extra complexity and probably doesn't give that much benefit. TEST=manual BUG=none Review URL: http://codereview.chromium.org/7044012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85827 0039d316-1c4b-4281-b951-d872f2087c98
* Add in DEPS entry still needed.avi@chromium.org2011-05-181-0/+1
| | | | | | | | | | Essentially a revert of r85787. BUG=none TEST=tree greens TBR=jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85805 0039d316-1c4b-4281-b951-d872f2087c98
* Remove deps entry for header from previous changejam@chromium.org2011-05-181-3/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85787 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of TabContentsSSLHelper dependency from content.jam@chromium.org2011-05-186-123/+0
| | | | | | Review URL: http://codereview.chromium.org/7037020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85786 0039d316-1c4b-4281-b951-d872f2087c98
* Convert PPB_Buffer_Impl to use SharedMemory for efficient IPC use.fischman@chromium.org2011-05-182-0/+24
| | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/7039022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85773 0039d316-1c4b-4281-b951-d872f2087c98
* Readd line to DEPS file that got removed by accidentjam@chromium.org2011-05-181-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85772 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of some plugin related dependencies. Have PluginObserver be created ↵jam@chromium.org2011-05-185-34/+3
| | | | | | | | and owned by TabContentsWrapper, and have the chrome code register the default/flash plugins. Review URL: http://codereview.chromium.org/7017038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85769 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of chrome dependencies from PluginProcessHost by moving dispatching ↵jam@chromium.org2011-05-1811-52/+461
| | | | | | | | of chrome specific messages to a chrome IPC filter. Review URL: http://codereview.chromium.org/7036025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85767 0039d316-1c4b-4281-b951-d872f2087c98
* Move download stuff to download tab helper.avi@chromium.org2011-05-186-51/+9
| | | | | | | | | | | | | BUG=71097 TEST=zero visible change in how the download system works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85486 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85504 Review URL: http://codereview.chromium.org/6973035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85762 0039d316-1c4b-4281-b951-d872f2087c98
* Move SystemMonitor to base/.willchan@chromium.org2011-05-186-17/+17
| | | | | | | | | | | | | | | I plan to use SystemMonitor in net/. Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85732 Review URL: http://codereview.chromium.org/7015017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85737 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85732 (broke build) - Move SystemMonitor to base/.willchan@chromium.org2011-05-185-12/+12
| | | | | | | | | | | | | | | | I plan to use SystemMonitor in net/. Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base. BUG=none TEST=none Review URL: http://codereview.chromium.org/7015017 TBR=willchan@chromium.org Review URL: http://codereview.chromium.org/7042003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85734 0039d316-1c4b-4281-b951-d872f2087c98
* Move SystemMonitor to base/.willchan@chromium.org2011-05-185-12/+12
| | | | | | | | | | | | | I plan to use SystemMonitor in net/. Fix up the Mac implementation not to use Cocoa APIs since @interface is not allowed in base. BUG=none TEST=none Review URL: http://codereview.chromium.org/7015017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85732 0039d316-1c4b-4281-b951-d872f2087c98
* Call SwapBuffersCallback multiple times if a frame was dropped.nduca@chromium.org2011-05-181-1/+10
| | | | | | | | BUG=82084 Review URL: http://codereview.chromium.org/7031028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85710 0039d316-1c4b-4281-b951-d872f2087c98
* Move the little infobar code from TabContents to TabContentsWrapper.jam@chromium.org2011-05-184-167/+0
| | | | | | | BUG=76792 Review URL: http://codereview.chromium.org/7010017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85703 0039d316-1c4b-4281-b951-d872f2087c98
* Move the chromeos implementation of WifiDataProvider back to chrome, since ↵jam@chromium.org2011-05-175-389/+0
| | | | | | | | | it has chrome dependencies. TBR=avi Review URL: http://codereview.chromium.org/6975030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85697 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Changes to not use the prerendered contents when window.opener needs ↵tessamac@chromium.org2011-05-176-21/+8
| | | | | | | | | | | | | | to be set." This reverts commit c0b6f490edab857d1c5d3d79f8df2ba234939b51. TBR=shishir BUG= TEST= Review URL: http://codereview.chromium.org/7017033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85694 0039d316-1c4b-4281-b951-d872f2087c98
* Change the PPAPI message loop to type IO (from type UI).viettrungluu@chromium.org2011-05-171-1/+1
| | | | | | | | | | | UI message pumps are special on Mac and won't work. BUG=none TEST=out-of-process Flapper continues to work on Linux and dies later on Mac Review URL: http://codereview.chromium.org/7036024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85690 0039d316-1c4b-4281-b951-d872f2087c98
* Changes to not use the prerendered contents when window.opener needs to be set.shishir@chromium.org2011-05-176-8/+21
| | | | | | | | | | | | BUG=79922 TEST=browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85394 Review URL: http://codereview.chromium.org/6915019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85689 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PluginSelectionPolicy since it's not used anymore.jam@chromium.org2011-05-174-66/+21
| | | | | | Review URL: http://codereview.chromium.org/7038011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85669 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for real-time audio threads.crogers@google.com2011-05-171-1/+2
| | | | | | | | | BUG=none TEST=none (tested locally on Mac OS X) Review URL: http://codereview.chromium.org/6949009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85663 0039d316-1c4b-4281-b951-d872f2087c98
* Adapt to new icon interface from WebFramemichaelbai@google.com2011-05-173-4/+11
| | | | | | | | | | | | | | | | - Adapt to the new icon methods from both WebFrame and WebFrameClient. - Touch icons will be fetched and stored if kEnableTouchIcon=1, Currently it is disabled by default. - Moved the kEnableTouchIcon definition to chrome_constants so it could be seen in both browser and renderer code. BUG=71571 TEST=Tested by existent unit test. Review URL: http://codereview.chromium.org/7032013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85651 0039d316-1c4b-4281-b951-d872f2087c98
* Remove browser_list.h from content/sadrul@chromium.org2011-05-172-3/+0
| | | | | | | | | BUG=76697 TEST=things still compile Review URL: http://codereview.chromium.org/7038005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85627 0039d316-1c4b-4281-b951-d872f2087c98
* We don't need to buffer network responses anymore now that we have an HTML5abarth@chromium.org2011-05-172-44/+1
| | | | | | | | parser that can parse doctypes across packet boundaries. Review URL: http://codereview.chromium.org/7038001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85602 0039d316-1c4b-4281-b951-d872f2087c98
* Move view_types.h from chrome to content. Although some of the enum types ↵jam@chromium.org2011-05-1613-54/+67
| | | | | | | | are Chrome specific, I don't see how we can keep this in chrome given that it's a return type in RenderViewHostDelegate. Also make the two IPCs that are sent with the view type and browser ID be extension messages, since that's the only receiver of the messages (and makes it clear why they're being sent). Review URL: http://codereview.chromium.org/7034013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85564 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ResourceDispatcherHost so that cancelling a paused request works.rdsmith@chromium.org2011-05-162-12/+192
| | | | | | | | | | BUG=77944 R=rvargas Review URL: http://codereview.chromium.org/6893133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85552 0039d316-1c4b-4281-b951-d872f2087c98
* Description:annacc@chromium.org2011-05-164-5/+7
| | | | | | | | | | | | | | | | | This patch gets the channel layout for surround sound channel order from ffmpeg and stores it so that chromium will be able to re-order the channels for various sound cards and OSes later. - AudioParameters gets a new field (channel_layout). - channel_layout.h stores an enum that we will use in chromium for channel values. - ffmpeg_common.h gets a new method for mapping the channel layout received from ffmpeg to an internal chromium enum value. BUG=None (though storing the channel order should help us solve some other bugs soon) TEST=media_unittests Review URL: http://codereview.chromium.org/6930039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85541 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85504 - Move download stuff to download tab helper.avi@chromium.org2011-05-166-9/+51
| | | | | | | | | | | | | | BUG=71097 TEST=zero visible change in how the download system works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85486 Review URL: http://codereview.chromium.org/6973035 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/7035015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85515 0039d316-1c4b-4281-b951-d872f2087c98
* Enough appcache + quota integration to call ↵michaeln@google.com2011-05-163-5/+8
| | | | | | | | | | NotifyOriginInUse/NotifyOriginNoLongerInUse when frames are loaded/unloaded. BUG=61676 TEST=appcache_host_unittest.cc Review URL: http://codereview.chromium.org/6999008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85507 0039d316-1c4b-4281-b951-d872f2087c98
* Move download stuff to download tab helper.avi@chromium.org2011-05-166-51/+9
| | | | | | | | | | | BUG=71097 TEST=zero visible change in how the download system works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85486 Review URL: http://codereview.chromium.org/6973035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85504 0039d316-1c4b-4281-b951-d872f2087c98
* Mark test as flakey while I sort out what is going on.mbelshe@chromium.org2011-05-161-1/+1
| | | | | | Review URL: http://codereview.chromium.org/7031011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85497 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 85486 - Move download stuff to download tab helper.avi@chromium.org2011-05-166-9/+51
| | | | | | | | | | | | BUG=71097 TEST=zero visible change in how the download system works Review URL: http://codereview.chromium.org/6973035 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/7030015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85491 0039d316-1c4b-4281-b951-d872f2087c98
* Add bug for downloads includes in contentjam@chromium.org2011-05-161-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85490 0039d316-1c4b-4281-b951-d872f2087c98
* Move download stuff to download tab helper.avi@chromium.org2011-05-166-51/+9
| | | | | | | | | BUG=71097 TEST=zero visible change in how the download system works Review URL: http://codereview.chromium.org/6973035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85486 0039d316-1c4b-4281-b951-d872f2087c98