summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-0957-242/+256
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-0957-256/+242
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Really fix build after r193020.dcheng@chromium.org2013-04-094-6/+6
| | | | | | | | | | | Argh. Macros are evil. BUG= TBR=darin Review URL: https://codereview.chromium.org/13937002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193029 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build after r193020.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | BUG= TBR=rdsmith Review URL: https://codereview.chromium.org/13927003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193026 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-0957-242/+256
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Delete layout_viewport_size.aelias@chromium.org2013-04-093-6/+6
| | | | | | | | | | | | | | | | This value is redundant. We can use the root cliprect size or the device_viewport_size divided by device_scale_factor instead. This value was only used by PinchZoomScrollbars, I replaced it with one that should be equivalent. NOTRY=true BUG=229098 Review URL: https://chromiumcodereview.appspot.com/13637017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193013 0039d316-1c4b-4281-b951-d872f2087c98
* Disables HTML notifications when rich notifications are enabled.dewittj@chromium.org2013-04-092-0/+4
| | | | | | | | | | | | | | | This works by adding a new flag to the content layer: kDisableHTMLNotifications, which causes Chrome not to expose the webkitNotifications.createHTMLNotification function to JS contexts. Chrome appends this switch to new renderer processes when appropriate in ChromeContentBrowserClient. BUG=225918 Review URL: https://chromiumcodereview.appspot.com/13533019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193005 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the usage of omax-vda from the video_decode_accelerator_unittest.owenlin@chromium.org2013-04-091-22/+6
| | | | | | | | | | | | Also remove the flag "use-exynos-vda" from the test since it is not needed anymore. BUG=223823 Review URL: https://chromiumcodereview.appspot.com/12844012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192996 0039d316-1c4b-4281-b951-d872f2087c98
* net: move socket files from net/base to net/socketphajdan.jr@chromium.org2013-04-092-3/+3
| | | | | | | | BUG=70818 Review URL: https://codereview.chromium.org/13812005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192982 0039d316-1c4b-4281-b951-d872f2087c98
* [Aura] Fix for a flash of black frame when resizing with the new resize logic.skaslev@chromium.org2013-04-081-0/+1
| | | | | | | | | BUG=124671, 161008 Review URL: https://chromiumcodereview.appspot.com/13560016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192950 0039d316-1c4b-4281-b951-d872f2087c98
* Disable shader disk cache by default.dsinclair@chromium.org2013-04-081-2/+2
| | | | | | | | | | | | | | The code to handle cache clearing didn't land in time for the M27 branch so it has been decided to disable this feature for M27. This patch will be rolled back after it lands on the M27 branch. BUG=228989 Review URL: https://chromiumcodereview.appspot.com/13800013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192949 0039d316-1c4b-4281-b951-d872f2087c98
* Stub out chrome://indexeddb-internalsalecflett@chromium.org2013-04-0811-0/+114
| | | | | | | | | | | This is the just the WebUI code necessary to show HTML at the chrome://indexeddb-internals URL. The page just says "Welcome" to start. BUG=174188 Review URL: https://chromiumcodereview.appspot.com/13230003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192926 0039d316-1c4b-4281-b951-d872f2087c98
* Add swap buffers posted methoddtrainor@chromium.org2013-04-082-0/+4
| | | | | | | | | BUG=228978,228897 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/13771021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192909 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up entries left by crashes in the DownloadDB.rdsmith@chromium.org2013-04-082-5/+2
| | | | | | | | | | | BUG=224385 R=benjhayden@chromium.org Review URL: https://chromiumcodereview.appspot.com/13044019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192879 0039d316-1c4b-4281-b951-d872f2087c98
* Destroy InputHandlerManager after compositor threadboliu@chromium.org2013-04-083-0/+64
| | | | | | | | | | | | | | InputHandlerManager uses Unretained(this) to post tasks to compositor thread which means it needs to outlive the compositor thread. Added a test that is flaky without this fix. BUG=226261 Review URL: https://chromiumcodereview.appspot.com/13650004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192857 0039d316-1c4b-4281-b951-d872f2087c98
* Fix dropping images into content editable divs.avi@chromium.org2013-04-082-22/+31
| | | | | | | | | | | | Mail.app and TextEdit accept drags that have both HTML and image flavors on them, but don't process them correctly. Therefore, if there is an image flavor, don't put the HTML data on as HTML, but rather put it on as a special flavor. External apps won't see HTML but Chrome will know enough to read it as HTML. BUG=55879,225710 TEST=as in bug 225710, doesn't regress bug 55879 Review URL: https://chromiumcodereview.appspot.com/13758002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192853 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 192309 - to see if it is causing an increase in crash rates in child ↵apatrick@google.com2013-04-081-2/+0
| | | | | | | | | | | | | | | processes. > Avast Avast! Block Avast Antivirus from loading into child processes. > > It is associated with 60-70% of child process crashes in 28.0.1461.0. > > Review URL: https://chromiumcodereview.appspot.com/13598004 TBR=apatrick@chromium.org Review URL: https://codereview.chromium.org/13427015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192844 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PCI names lookup in gpu info collection in linux.zmo@chromium.org2013-04-081-28/+0
| | | | | | | | | | | | We are not using the names information at the moment. From Eric Seidal's profiling, that is a big bottleneck in content shell startup. BUG= TEST=tree Review URL: https://codereview.chromium.org/13730014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192840 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] add scoped allow io to allow for reading files during layout ↵jochen@chromium.org2013-04-081-0/+2
| | | | | | | | | | | | | | tests Layout tests expect to be able to read file synchronously, so we need to read it from the io thread. BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/13801004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192822 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] add support for invoking testRunner.notifyDone in a ↵jochen@chromium.org2013-04-089-1/+105
| | | | | | | | | | | | | | | | | different process Some layout tests, e.g. http/tests/navigation/no-referrer-target-blank.html create a new process, and notifyDone() will be invoked in that new process. Add support for forwarding that signal to the main test runner. BUG=111316 R=mkwst@chromium.org TEST=http/tests/navigation/no-referrer-target-blank.html does not time out Review URL: https://codereview.chromium.org/13795002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192819 0039d316-1c4b-4281-b951-d872f2087c98
* Make log messages in socket_stream_dispatcher.cc consistent and add more info.tyoshino@chromium.org2013-04-081-20/+47
| | | | | | | | | - Since this file contains two classes, include "Bridge #id" and "SocketStreamDispatcher::" to distinguish between logs of them. - Print pointer address instead of socket ID where it can be uninitialized or already unset. Review URL: https://codereview.chromium.org/13533006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192817 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite scoped_array<T> to scoped_ptr<T[]> in content/, Linux edition.dcheng@chromium.org2013-04-0717-23/+23
| | | | | | | | | | This changelist was automatically generated using a clang tool. BUG=171111 Review URL: https://codereview.chromium.org/13749004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192769 0039d316-1c4b-4281-b951-d872f2087c98
* Disable WebrtcBrowserTest.CallWithDataAndLaterAddMedia test.xhwang@chromium.org2013-04-071-1/+3
| | | | | | | | | TBR=perkj@chromium.org BUG=227409 Review URL: https://codereview.chromium.org/13759003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192767 0039d316-1c4b-4281-b951-d872f2087c98
* Actually set vsync parameterccameron@chromium.org2013-04-061-0/+1
| | | | | | | | | BUG=226686 Review URL: https://chromiumcodereview.appspot.com/13722012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192748 0039d316-1c4b-4281-b951-d872f2087c98
* Remove developer_extras_enabled from WebPreferencesyurys@chromium.org2013-04-062-2/+0
| | | | | | | | | | | | DevTools are always enabled in Content. R=pfeldman BUG=None Review URL: https://chromiumcodereview.appspot.com/13529010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192746 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Use a ResourceThrottle to intercept GET downloads.nileshagrawal@chromium.org2013-04-063-16/+11
| | | | | | | | | | | | Earlier we used to pass all the relevant bits to WebContentsDelegate::CanDownload This also allows for DownloadRequestLimiter to work on Android (show the infobar when multiple downloads are initiated from a page) BUG= Review URL: https://chromiumcodereview.appspot.com/13649009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192740 0039d316-1c4b-4281-b951-d872f2087c98
* Fix IpcPacketSocketFactory to return EWOULDBLOCK when network interface is ↵sergeyu@chromium.org2013-04-0613-84/+152
| | | | | | | | | | | | | | | | | congested. PeerConnection implementation in libjingle will need to handle the case when a network interface is congested, so it needs to be notified when send buffers are full. This CL adds send result notification message that is sent to the renderer process after each message is sent. Sockets created using IpcPacketSocketFactory will be returning EWOULDBLOCK when Send() buffers are full instead of dropping the packet silently. BUG=226158 Review URL: https://chromiumcodereview.appspot.com/13584008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192721 0039d316-1c4b-4281-b951-d872f2087c98
* Browser side changes for software compositing.skaslev@chromium.org2013-04-066-85/+226
| | | | | | | | | | BUG=124671, 161008 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/13042012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192678 0039d316-1c4b-4281-b951-d872f2087c98
* Add comment explianing memory policy on Mac.ccameron@chromium.org2013-04-061-0/+3
| | | | | | | | | TBR=nduca@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/13655002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192674 0039d316-1c4b-4281-b951-d872f2087c98
* Use NTP time for video frame timestamp.justinlin@chromium.org2013-04-063-3/+26
| | | | | | | | | | | Add tracing for capture timestamps. BUG=225209 Review URL: https://chromiumcodereview.appspot.com/13554003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192670 0039d316-1c4b-4281-b951-d872f2087c98
* Fix large mis-paint when resizing windows aura chromecpu@chromium.org2013-04-061-0/+9
| | | | | | | | | | | | | | | | | | | See bug attached for screenshots The CL does two things: - Disables the resizer lock, so that UI bits can go ahead of content bits - Janks (blocks) the UI thread until the compositor has flushed / finished the pending commands. This makes the mis-draw way less, up to one frame behind, which at my regular mouse speed of 1.2 pixels / ms comes out to 20 pixels of whiteout. BUG=177115 TEST=none Review URL: https://codereview.chromium.org/13604007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192657 0039d316-1c4b-4281-b951-d872f2087c98
* libflac and libspeex are only used if input_speech==1, so add the ↵mostynb@opera.com2013-04-051-5/+5
| | | | | | | | | | dependencies as needed. BUG=none Review URL: https://chromiumcodereview.appspot.com/13431003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192653 0039d316-1c4b-4281-b951-d872f2087c98
* Hide ContentClient getters from embedders so that they they don't reuse ↵jam@chromium.org2013-04-0533-98/+103
| | | | | | | | | content's embedder API. The main reasons are that it makes content's embedder interfaces harder to change if they're reused by the embedder, and that its makes it confusing for embedder code when there are multiple ways to do the same thing. BUG=227047 Review URL: https://codereview.chromium.org/13409003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192649 0039d316-1c4b-4281-b951-d872f2087c98
* Blacklist EXT_draw_buffers on Mac NVIDIA GeForce GT 650M.zmo@chromium.org2013-04-051-1/+13
| | | | | | | | | | Also, turn on support for EXT_draw_buffers on Windows. To make it easy for debugging ANGLE implementation bugs. BUG=180397 TEST=gpu_unittests,content_unittests Review URL: https://codereview.chromium.org/13730008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192647 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin: <webview> should inherit partition attribute of opener on ↵fsamuel@chromium.org2013-04-054-11/+51
| | | | | | | | | | | attachment. BUG=140316 Test=Updated WebViewTest.NewWindow Review URL: https://chromiumcodereview.appspot.com/13032003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192646 0039d316-1c4b-4281-b951-d872f2087c98
* Make csharp@ and maruel@ owners of .isolate filescsharp@chromium.org2013-04-051-0/+2
| | | | | | | | | | | NOTRY=true R=maruel@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/13640006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192635 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify the transport dib situation across our various platforms, as acevans@chromium.org2013-04-051-9/+9
| | | | | | | | | | | | | | | | | pre-cursor to moving Chrome OS + Aura away from legacy GTK+X11 dibs. Now, we have just: - Windows style dibs - POSIX style dibs - Legacy GTK+X11 style dibs. There's some ifdef hoops that will be removed in a follow-up CL when Chrome OS + Aura will be moved away from legacy GTK+X11 dibs and on to POSIX dibs. BUG=147622 Review URL: https://codereview.chromium.org/13582008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192629 0039d316-1c4b-4281-b951-d872f2087c98
* Move webview size information into RWHVGuest.alexst@chromium.org2013-04-054-7/+14
| | | | | | | | | | | | | | Managing size information via the platform view has undesirable side effects. For instance in aura, calls to SetBounds cause the platform view to take resize locks, which are not needed for something that is displayed indirectly. BUG= Review URL: https://chromiumcodereview.appspot.com/13647006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192626 0039d316-1c4b-4281-b951-d872f2087c98
* VAVDA: Restore check for frame_mbs_only_flag.posciak@chromium.org2013-04-051-0/+6
| | | | | | | | | | | | This check was removed due to misinterpretation of the spec, but it seems it's needed for some streams. BUG=225787 TEST=manual playback Review URL: https://chromiumcodereview.appspot.com/13726007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192620 0039d316-1c4b-4281-b951-d872f2087c98
* Use macro to simplify gpu driver bug workaround defs and code.zmo@chromium.org2013-04-051-32/+3
| | | | | | | | BUG=226789 TEST=no logic change, simply code refactor, so everything stays the same Review URL: https://codereview.chromium.org/13400003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192580 0039d316-1c4b-4281-b951-d872f2087c98
* Remove MSID and bundle from the answer as well as offer in WebRtc ↵perkj@chromium.org2013-04-052-12/+8
| | | | | | | | | | | content_browsertest. BUG=175683,177443 Review URL: https://chromiumcodereview.appspot.com/13679005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192567 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the flaky full screen video tests by providing our own clickView;michaelbai@chromium.org2013-04-051-0/+7
| | | | | | | | | BUG=224923 Review URL: https://chromiumcodereview.appspot.com/13510002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192536 0039d316-1c4b-4281-b951-d872f2087c98
* Add the ability to clear the shader disk cache.dsinclair@chromium.org2013-04-058-12/+501
| | | | | | | | | | | | | When the browser cache for a given profile is cleared we will now clear out any shaders stored in the shader disk cache for that profile. BUG=176289 Review URL: https://chromiumcodereview.appspot.com/12500009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192511 0039d316-1c4b-4281-b951-d872f2087c98
* Add TraceEvent for frame updates in browserdtrainor@chromium.org2013-04-051-1/+1
| | | | | | | | | | | Add ContentViewCore#udpateFrameInfo trace event. BUG= Review URL: https://chromiumcodereview.appspot.com/13688003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192508 0039d316-1c4b-4281-b951-d872f2087c98
* Browser Plugin: Simplify NewWindow codefsamuel@chromium.org2013-04-053-37/+15
| | | | | | | | | | | | Previously, there were two code paths in BrowserPluginGuest to request a new window (new <webview>) from the embedder: one for suppressed openers and one for unsuppressed openers. This CL unifies the two code paths. BUG=none Test=WebViewTest.Shim, WebViewTest.NewWindow Review URL: https://chromiumcodereview.appspot.com/13649007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192499 0039d316-1c4b-4281-b951-d872f2087c98
* Enable CompositingIOSurfaceTransformerTest.*miu@chromium.org2013-04-051-7/+3
| | | | | | | | | | | | | Due to weirdness with GPUs on trybots causing flakiness in tests, the initial implementation of CompositingIOSurfaceTransformer was committed with all unit tests disabled. This change will enable the tests, but force the software-based OpenGL implementation to be used. In a later change, we will allow the OpenGL implementation to auto-detect and utilize a GPU, where one is available. However, first the tests should prove themselves as stable when not using GPU. TBR=kbr Review URL: https://chromiumcodereview.appspot.com/13573004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192486 0039d316-1c4b-4281-b951-d872f2087c98
* Delete the GpuCommandBufferMsg_DestroyVideoDecoder IPC message since it is ↵fischman@chromium.org2013-04-053-17/+7
| | | | | | | | never used(!) Review URL: https://chromiumcodereview.appspot.com/13521007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192463 0039d316-1c4b-4281-b951-d872f2087c98
* x11: Rename touch_factory to touch_factory_x11.sadrul@chromium.org2013-04-051-1/+1
| | | | | | | | | | | With this filename change, the files will be auto-excluded from non-x11 builds. BUG=none TBR=jochen@chromium.org Review URL: https://codereview.chromium.org/13661002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192429 0039d316-1c4b-4281-b951-d872f2087c98
* Update all .isolate files to the new format.maruel@chromium.org2013-04-041-17/+20
| | | | | | | | | | | | | | | | Autogenerated with: for a in $(git ls-files | grep \\.isolate); do tools/swarm_client/isolate_merge.py $a -o $a; done content/content_browsertests.isolate failed to be converted automatically. NOTRY=true TBR=csharp@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/13654003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192411 0039d316-1c4b-4281-b951-d872f2087c98
* Use GpuDriverBugList to manage all the workarounds.zmo@chromium.org2013-04-047-22/+400
| | | | | | | | | | | Before the workarounds are hardwired in feature_info.cc. Now the workarounds are expressed as entries in gpu_driver_bug_list.json. BUG=222857 TEST=gpu_unittests,content_unittests Review URL: https://codereview.chromium.org/13594007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192406 0039d316-1c4b-4281-b951-d872f2087c98