summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
Commit message (Collapse)AuthorAgeFilesLines
* Moving the page contents message processing to the RenderViewHost.jcampan@chromium.org2010-01-181-1/+1
| | | | | | | | | | | | | | | | | | It was currently processed as a control message. This is an actual part of the previous CLD related CL: http://codereview.chromium.org/548057 It kept failing on the bots for some tests, I am not sure why yet and cannot repro locally. Hopefully splitting it will help pinpoint the issue. TEST=All unit-tests, ui tests should still work. Navigate to a page with some specific words in it, then go to the history tab and search for pages with these specific words. Make sure the page you navigated is shown in the results. TBR=brettw Review URL: http://codereview.chromium.org/553012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36490 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 36442 - Still causing test failuresjcampan@chromium.org2010-01-162-21/+35
| | | | | | | | | | | | | | | | | | | | | | | | | 4th attempt at landing this. It caused several tests to fails previously. Cannot repro any of the failure. I am suspecting a clobber would have probably fixed it. (there is a change in one of the IPC messages that probably messed up the build somehow). No code change. Enabling language detection on page load. A memory error has been fixed in the CLD library in the meantime. This should hopefully fixes the crashers in the reliability tests. Note that this version is actually simpler than the original review since the detection is now performed in the renderer. (So the CLD code runs sandboxed.) Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unittests. TBR=brettw Review URL: http://codereview.chromium.org/548057 TBR=jcampan@chromium.org Review URL: http://codereview.chromium.org/536085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36447 0039d316-1c4b-4281-b951-d872f2087c98
* 4th attempt at landing this.jcampan@chromium.org2010-01-162-35/+21
| | | | | | | | | | | | | | | | | | | | | It caused several tests to fails previously. Cannot repro any of the failure. I am suspecting a clobber would have probably fixed it. (there is a change in one of the IPC messages that probably messed up the build somehow). No code change. Enabling language detection on page load. A memory error has been fixed in the CLD library in the meantime. This should hopefully fixes the crashers in the reliability tests. Note that this version is actually simpler than the original review since the detection is now performed in the renderer. (So the CLD code runs sandboxed.) Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unit-tests. TBR=brettw Review URL: http://codereview.chromium.org/548057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36442 0039d316-1c4b-4281-b951-d872f2087c98
* Port notifications to linux. BalloonView and BalloonViewHost should be ↵johnnyg@chromium.org2010-01-151-2/+2
| | | | | | | | | | | equivalent to their counterparts under browser/views/notifications; CL also enables the exposure of notifications in WebKit on linux platform. BUG=23954 TEST=none Review URL: http://codereview.chromium.org/525050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36434 0039d316-1c4b-4281-b951-d872f2087c98
* The search terms are escaped using + or %20 for space depending on whether ↵avayvod@google.com2010-01-151-1/+1
| | | | | | | | | | | | replacement is in query part of the URL or not. Removed duplicate EscapeQueryParamValue functions without |use_plus| argument. BUG=24571 TEST=Verify that space is escaped as stated in description; see bug description for example with search on Wikipedia. Review URL: http://codereview.chromium.org/543077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36398 0039d316-1c4b-4281-b951-d872f2087c98
* linux: reinstate Pepper pluginspiman@chromium.org2010-01-153-33/+6
| | | | | | | | | | | | Someone mistakenly disabled it. This also factorizes the various platforms. In particular, PluginInstance::set_window_handle, cause of complexity isn't needed. That window_handle is only used for regular plugins in 2 places: - on Win32 windowed plugins to invalidate the plugin window. There's no plugin window on Pepper so this isn't needed. - on Win32 and Linux for windowless plugins to get a reference to the browser's window. That isn't cross-platform so shouldn't be in Pepper. Review URL: http://codereview.chromium.org/551042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36389 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 36362 - It breaks NACLTests and Chrome Frame Testsjcampan@chromium.org2010-01-152-21/+35
| | | | | | | | | | | | | | | | | | | | 3rd attempt at landing the language detection on page load. A memory error has been fixed in the CLD library in the meantime. This should hopefully fixes the crashers in the reliability tests. Note that this version is actually simpler than the original review since the detection is now performed in the renderer. (So the CLD code runs sandboxed.) Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unittests. Review URL: http://codereview.chromium.org/518075 TBR=jcampan@chromium.org Review URL: http://codereview.chromium.org/546062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36364 0039d316-1c4b-4281-b951-d872f2087c98
* 3rd attempt at landing the language detection on page load.jcampan@chromium.org2010-01-152-35/+21
| | | | | | | | | | | | | | | | A memory error has been fixed in the CLD library in the meantime. This should hopefully fixes the crashers in the reliability tests. Note that this version is actually simpler than the original review since the detection is now performed in the renderer. (So the CLD code runs sandboxed.) Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unit-tests. Review URL: http://codereview.chromium.org/518075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36362 0039d316-1c4b-4281-b951-d872f2087c98
* One of my previous CL accidentaly reverted 2 changes to thesejcampan@chromium.org2010-01-152-27/+76
| | | | | | | | | | | | 2 files. (not sure how it happened). Relanding the change. BUG=None TEST=None Review URL: http://codereview.chromium.org/543069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36359 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to runFileChooser() with WebFileChooserParams.tkent@chromium.org2010-01-152-8/+6
| | | | | | | | | | New fields of WebFileChooserParams are not used yet. BUG=none TEST=none, no functional changes Review URL: http://codereview.chromium.org/497001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36335 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce all the plumbing for Session Storage. This mostly consists of ↵jorlow@chromium.org2010-01-158-46/+36
| | | | | | | | | | | creating and tracking namespace ids in conjunction with the tabs. This is essentially just a bunch of dead code at the moment, but the next patch will get rid of the old way of generating/cloning IDs (initiated by the renderer) and instead use these IDs. TEST=none BUG=none Review URL: http://codereview.chromium.org/550017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36331 0039d316-1c4b-4281-b951-d872f2087c98
* Set disabled style on GPU window and plugin intermediate window so mouse ↵apatrick@chromium.org2010-01-151-0/+2
| | | | | | | | | | | messages pass through to the browser window. TEST=trybots BUG=none Review URL: http://codereview.chromium.org/549025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36311 0039d316-1c4b-4281-b951-d872f2087c98
* Enable setting of wasFetchedViaSpdy flag through browser/renderer.mbelshe@chromium.org2010-01-141-4/+11
| | | | | | | | | | BUG=none TEST=needed Review URL: http://codereview.chromium.org/549032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36274 0039d316-1c4b-4281-b951-d872f2087c98
* Make the Pepepr test run on the mac.dspringer@google.com2010-01-141-1/+12
| | | | | | | | | BUG=none TESTS=none Review URL: http://codereview.chromium.org/546041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36264 0039d316-1c4b-4281-b951-d872f2087c98
* This CL contains the back-end implementation of the translate feature. It ↵jcampan@chromium.org2010-01-148-1/+660
| | | | | | | | | | | | | adds a Translate method to the renderer. On invocation this method triggers a traversal of the DOM page to retrieve the text nodes. The text node contents are then sent to the browser for actual translation (at this point, we just up-case the text for testing purpose). The browser sends back the translated text to the renderer that replace the DOM text node values with the translated text. BUG=None TEST=Run the unit-tests. Review URL: http://codereview.chromium.org/547013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36258 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 36246 (mistakingly included unrelated code).jcampan@chromium.org2010-01-142-93/+32
| | | | | | | | | | | | | | | | One of my previous CL accidentaly reverted the change 35951 for this 2 files. (not sure how it happened). Relanding the change. BUG=None TEST=None Review URL: http://codereview.chromium.org/548035 TBR=jcampan@chromium.org Review URL: http://codereview.chromium.org/536062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36248 0039d316-1c4b-4281-b951-d872f2087c98
* One of my previous CL accidentaly reverted the change 35951jcampan@chromium.org2010-01-142-32/+93
| | | | | | | | | | | | for this 2 files. (not sure how it happened). Relanding the change. BUG=None TEST=None Review URL: http://codereview.chromium.org/548035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36246 0039d316-1c4b-4281-b951-d872f2087c98
* Fix error message when a page action calls chrome.pageAction.setIcon() with ↵skerner@chromium.org2010-01-141-5/+7
| | | | | | | | | | | a nonexistent icon. BUG=NONE TEST=Install chrome/common/extensions/docs/examples/api/pageAction/set_icon/, click the page action three times, look at the console. Review URL: http://codereview.chromium.org/536035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36219 0039d316-1c4b-4281-b951-d872f2087c98
* Add an experimental bookmark manager API to extensions.arv@chromium.org2010-01-141-3/+3
| | | | | | | | | BUG=32194 TEST=browser_tests.exe --gtest_filter=ExtensionApiTest.BookmarkManager Review URL: http://codereview.chromium.org/550021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36213 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CloseIdleConnections -> CloseCurrentConnections.mbelshe@chromium.org2010-01-143-6/+6
| | | | | | | | | | | | | | | | | This method is (and was) just for debugging; while it was closing idle connections, that was not aggressive enough; the benchmark needs to close all connections, not just the idle ones. To ensure connections are abandoned, create a new pool; leaving the old pool to languish as any pending sockets die. BUG=none TEST=none Review URL: http://codereview.chromium.org/549031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36208 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unnecessary references to webkit/glue/glue_util.h indarin@chromium.org2010-01-134-19/+12
| | | | | | | | | | | | preparation for deleting that file. R=dglazkov BUG=24607 TEST=none Review URL: http://codereview.chromium.org/551012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36140 0039d316-1c4b-4281-b951-d872f2087c98
* Wave upload operations performed within ChromeFrame would cause the Wave ↵ananta@chromium.org2010-01-131-0/+1
| | | | | | | | | | | | | | | | application to freeze. This was because we were not passing the renderer routing id in the PluginMsg_Init params when the plugin was initialized. We need the routing id in ChromeFrame to be able to intercept network requests and route them via the host network stack. Fixes bug http://code.google.com/p/chromium/issues/detail?id=26375 Bug=26375 Review URL: http://codereview.chromium.org/541040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36130 0039d316-1c4b-4281-b951-d872f2087c98
* Finish the plumbing for cookiesEnabled.abarth@chromium.org2010-01-132-0/+11
| | | | | | | | BUG=1850 Review URL: http://codereview.chromium.org/549005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36113 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow HTML notifications with content not from HTTP or HTTPS schemes.johnnyg@chromium.org2010-01-131-0/+6
| | | | | | | | | BUG=27544 TEST=none Review URL: http://codereview.chromium.org/542044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36101 0039d316-1c4b-4281-b951-d872f2087c98
* Hack so that the upstream change from usingjorlow@chromium.org2010-01-132-0/+11
| | | | | | | | | | | | | WebKitClient::createSessionStorageNamespace to using WebViewClient::createSessionStorageNamespace doesn't break us while the rest of the SessionStorage change lands. TEST=none BUG=none Review URL: http://codereview.chromium.org/546017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36097 0039d316-1c4b-4281-b951-d872f2087c98
* Fix check deps by allowing CLD to be included.brettw@chromium.org2010-01-121-0/+1
| | | | | | | | | TBR=jcampan TEST=none BUG=none Review URL: http://codereview.chromium.org/543030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36052 0039d316-1c4b-4281-b951-d872f2087c98
* Moving the CLD code to the renderer so it runs sanboxed.jcampan@chromium.org2010-01-122-97/+93
| | | | | | | | | BUG= TEST=Run the unit-tests. Review URL: http://codereview.chromium.org/541013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36045 0039d316-1c4b-4281-b951-d872f2087c98
* Working rudimentary audio in Pepper.brettw@chromium.org2010-01-122-0/+196
| | | | | | | | | BUG=28292 TEST=none Patch by neb@chromium.org Original review: http://codereview.chromium.org/524006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36043 0039d316-1c4b-4281-b951-d872f2087c98
* If a backing store is not available, chrome.tabs.captureVisibleTab() asks ↵skerner@chromium.org2010-01-112-27/+76
| | | | | | | | | | the renderer for a snapshot of the page. BUG=19274 TEST=Manual testing on Mac,Linux,Win Review URL: http://codereview.chromium.org/502034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35951 0039d316-1c4b-4281-b951-d872f2087c98
* Enable JS detection of whether SPDY was used to load a web page.mbelshe@google.com2010-01-112-2/+11
| | | | | | | | | | | | Augments the loadTimes() API with a new field, "wasFetchedViaSpdy". BUG=31615 TEST=flip_network_transaction_unittest Review URL: http://codereview.chromium.org/518039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35943 0039d316-1c4b-4281-b951-d872f2087c98
* This CL is for Neb. It contains his change 501124, with conflicts merged.sehr@google.com2010-01-112-6/+6
| | | | | | Review URL: http://codereview.chromium.org/547005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35928 0039d316-1c4b-4281-b951-d872f2087c98
* Removing the dependency of command-buffer client on base/task.h. This file ↵alokp@chromium.org2010-01-092-6/+0
| | | | | | | | | | includes base/logging.h which is difficult to compile under nacl. base-logging is stubbed in gpu by gpu/common/logging.h. BUG=26104 Review URL: http://codereview.chromium.org/527009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35860 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed some bugs that prevented the GPU plugin from shutting down without ↵apatrick@google.com2010-01-081-4/+9
| | | | | | | | | | | crashing. TEST=trybots BUG=none Review URL: http://codereview.chromium.org/529004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35819 0039d316-1c4b-4281-b951-d872f2087c98
* Remove most uses of EmptyString(), EmptyWString(), EmptyString16(), and ↵pkasting@chromium.org2010-01-081-6/+6
| | | | | | | | | | EmptyGURL(), since the code in question can just use the default constructor. BUG=none TEST=none Review URL: http://codereview.chromium.org/517054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35766 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35735 - Relanding the language detection code.jcampan@chromium.org2010-01-072-5/+41
| | | | | | | | | | | | | | | | | | | | | | | | | Still causes redness on the reliability bot. The code would crash if multiple PageContents notifications were received rapidly. The CLDHelper now notifies the TabContents directly and the TabContents ensures only one language detection can be performed at a time. Added unittests to validate these cases in web_contents_unittest.cc. Note that patch set 1 is the original patch, patch set 2 contains the new changes. Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unittests. Review URL: http://codereview.chromium.org/504051 TBR=jcampan@chromium.org Review URL: http://codereview.chromium.org/523149 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35753 0039d316-1c4b-4281-b951-d872f2087c98
* Relanding the language detection code.jcampan@chromium.org2010-01-072-41/+5
| | | | | | | | | | | | | | | | | | | | The code would crash if multiple PageContents notifications were received rapidly. The CLDHelper now notifies the TabContents directly and the TabContents ensures only one language detection can be performed at a time. Added unit-tests to validate these cases in web_contents_unittest.cc. Note that patch set 1 is the original patch, patch set 2 contains the new changes. Original review: http://codereview.chromium.org/492024/show BUG=30662 TEST=Run the unit-tests. Review URL: http://codereview.chromium.org/504051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35735 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35649 - Make Pepper plugins work on Linux.arv@chromium.org2010-01-062-6/+6
| | | | | | | | | | | | | | | | | fix pepper_test_plugin so that it is loaded on Linux remove skia & base dependency in test plugin so that it can be compiled with fPIC remove ifdef WIN in pepper code Patch by neb@chromium.org Original review: http://codereview.chromium.org/501124/show BUG=none TEST=none TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/524051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35653 0039d316-1c4b-4281-b951-d872f2087c98
* Make Pepper plugins work on Linux.brettw@chromium.org2010-01-062-6/+6
| | | | | | | | | | | | | | - fix pepper_test_plugin so that it is loaded on Linux - remove skia & base dependency in test plugin so that it can be compiled with -fPIC - remove ifdef WIN in pepper code Patch by neb@chromium.org Original review: http://codereview.chromium.org/501124/show BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35649 0039d316-1c4b-4281-b951-d872f2087c98
* Remove more WinInet stuff.phajdan.jr@chromium.org2010-01-061-1/+0
| | | | | | | | | BUG=25520 TEST=none Review URL: http://codereview.chromium.org/525026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35619 0039d316-1c4b-4281-b951-d872f2087c98
* linux: implement gpu pluginpiman@chromium.org2010-01-061-1/+9
| | | | | | | | Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35509 Review URL: http://codereview.chromium.org/500132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35612 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit roll 52769 -> 52793.antonm@chromium.org2010-01-051-2/+2
| | | | | | Review URL: http://codereview.chromium.org/523053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35541 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35509 - linux: implement gpu pluginpiman@chromium.org2010-01-051-9/+1
| | | | | | | | | Review URL: http://codereview.chromium.org/500132 TBR=piman@chromium.org Review URL: http://codereview.chromium.org/525022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35511 0039d316-1c4b-4281-b951-d872f2087c98
* linux: implement gpu pluginpiman@chromium.org2010-01-051-1/+9
| | | | | | Review URL: http://codereview.chromium.org/500132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35509 0039d316-1c4b-4281-b951-d872f2087c98
* This reverts commit r35458.agl@chromium.org2010-01-044-52/+0
| | | | | | (I screwed up and committed in the wrong terminal.) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35459 0039d316-1c4b-4281-b951-d872f2087c98
* ...agl@chromium.org2010-01-044-0/+52
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35458 0039d316-1c4b-4281-b951-d872f2087c98
* Upload renderer histograms to browser after a page loadsjar@chromium.org2010-01-022-0/+12
| | | | | | | | | | | | | | | | | | | WARNING: We need to watch the perf charts when this lands to be sure that it doesn't cause a regression. Since there is no finalizer for a renderer, and some renderers are just terminated with no warning, the only way to get consistent page data is to send it to the browser after each page loads. That is the bulk of this change. I also fixed up a few nits relating to making this work in single process mode. BUG=16495 r=raman.tenneti Review URL: http://codereview.chromium.org/515072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35431 0039d316-1c4b-4281-b951-d872f2087c98
* Adding support for i18n to content scripts.cira@chromium.org2009-12-296-118/+125
| | | | | | | | Auto-updated extension docs. Review URL: http://codereview.chromium.org/522017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35320 0039d316-1c4b-4281-b951-d872f2087c98
* plugins: limit maximum window sizeevan@chromium.org2009-12-281-0/+10
| | | | | | | | | | | Even if plugins will crash when they are too large, we should try to have the renderer stay up. BUG=28606 Review URL: http://codereview.chromium.org/515043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35309 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup histogram classes mixing SetFlags into FactoryGet argumentsjar@chromium.org2009-12-281-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Generic cleanup of histogram class, renaming *FactoryGet to FactoryGet, along with reformatting. The macros were cleaned up to use common sub-macros rather than repeating code as much. Removed ThreadSafeHistogram (and associated ASSET_HISTOGRAM macros) since this class was not getting used. I introduced UMA_HISTOGRAM_ENUMERATION to support the common use of LinearHistograms to count various enumerated values. I added a Flags argument to all the FactoryGet routines to help avoid needing to call SetFlags each time a new sample is Add()ed. This also simplifies the code. This will all help prepare for a "don't histogram at all" macro setting so that I can test the impact of the histogram macro calls on performance (since there are now so many active histograms). BUG=31206 r=raman.tenneti Review URL: http://codereview.chromium.org/515033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35295 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium to use upstream WebPageSerializer instead of glue/DomSerializer.yaar@chromium.org2009-12-232-20/+35
| | | | | | | | See corresponding changes in webkit here: https://bugs.webkit.org/show_bug.cgi?id=31737 Review URL: http://codereview.chromium.org/434087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35216 0039d316-1c4b-4281-b951-d872f2087c98