summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Restore software compositing + thread assert on Aurapiman@chromium.org2013-08-091-0/+5
| | | | | | | | | | This essentially reverts r215981, modulo rebase. BUG=268439 Review URL: https://chromiumcodereview.appspot.com/22382004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216565 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of webkit/plugins/plugin_constants.* and move them to ↵jam@chromium.org2013-08-0917-15/+38
| | | | | | | | | | | content/public/common/content_constants. This allows us to delete webkit_plugins.gyp and webkit/plugins. BUG=265753 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22723004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216553 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that renderer-initiated pending entries can be replaced when a new creis@chromium.org2013-08-093-18/+75
| | | | | | | | | | | | | | | | | | | navigation is started. We don't replace browser-initiated pending entries in didStartProvisionalLoad because either (1) they were just created for this navigation, or (2) they're for a different SiteInstance and won't be used upon commit. Note that pending entries for same-site browser-initiated navigations can be incorrectly used for renderer-initiated navigations that interrupt them, but that's a long standing bug that we can address separately. BUG=266922 TEST=See bug for repro steps. Review URL: https://chromiumcodereview.appspot.com/22622003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216548 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 216530 "Linux Zygote: cleanup and sanity checks."jln@chromium.org2013-08-091-29/+20
| | | | | | | | | | | | | | | | | | | | | | > Linux Zygote: cleanup and sanity checks. > > Cleanup code around ZygoteMain: > > - Use anonymous namespace. > - Put FontConfigIPC creation in PreSandboxInit(). > - Add a sanity check for being single threaded. > > BUG=269816 > NOTRY=true > R=markus@chromium.org > > Review URL: https://codereview.chromium.org/22655002 TBR=jln@chromium.org Review URL: https://codereview.chromium.org/22377007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216545 0039d316-1c4b-4281-b951-d872f2087c98
* Preload GL libraries for ARM GPU sandbox.jorgelo@google.com2013-08-091-6/+13
| | | | | | | | | | | BUG=268439 TEST=daisy boots, sandbox is enabled. NOTRY=true R=jln@chromium.org, piman@chromium.org Review URL: https://codereview.chromium.org/22693002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216544 0039d316-1c4b-4281-b951-d872f2087c98
* Linux Zygote: cleanup and sanity checks.jln@chromium.org2013-08-091-20/+29
| | | | | | | | | | | | | | | | Cleanup code around ZygoteMain: - Use anonymous namespace. - Put FontConfigIPC creation in PreSandboxInit(). - Add a sanity check for being single threaded. BUG=269816 NOTRY=true R=markus@chromium.org Review URL: https://codereview.chromium.org/22655002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216530 0039d316-1c4b-4281-b951-d872f2087c98
* Fix |started_| variable for Device Motion Android data fetcher.timvolodine@chromium.org2013-08-091-2/+2
| | | | | | | | | | Ensure proper stopping of sensors upon fetcher destruction. BUG= Review URL: https://chromiumcodereview.appspot.com/22336011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216522 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of webkit/plugins/plugin_switches.* and move them to ↵jam@chromium.org2013-08-0913-411/+421
| | | | | | | | | | | content/public/common/content_switches. I also sorted the latter. BUG=265753 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22394006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216512 0039d316-1c4b-4281-b951-d872f2087c98
* [Android WebView] Bail out of resource extracting when no paks specified.benm@chromium.org2013-08-091-6/+20
| | | | | | | | | | | | | | WebView doesn't extract any pak files, so short circuit the resource extractor machinery. Thisi is faster, and prevents cruft from being put onto the filesystem unnecesarily. Bug: b/8367699 BUG= Review URL: https://chromiumcodereview.appspot.com/22466003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216509 0039d316-1c4b-4281-b951-d872f2087c98
* Change IME conversion status by focusing input elementyoichio@chromium.org2013-08-084-6/+102
| | | | | | | | | | | | | | | This CL affects Windows except 8. example: When user input focuses <input inputmode="kana" />, IME changes its mode to Hiragana input mode if the IME has. inputmode attribute is specified in HTML5 draft: http://www.w3.org/html/wg/drafts/html/master/single-page.html#input-modalities:-the-inputmode-attribute TEST=manual test using MS-IME and GoogleJapaneseInput BUG=244688 Review URL: https://chromiumcodereview.appspot.com/21189003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216494 0039d316-1c4b-4281-b951-d872f2087c98
* [Downloads] Persist ETag and Last-Modified headers.asanka@chromium.org2013-08-089-3/+42
| | | | | | | | | | | | | | | | | | | | | These response headers are used for partial download resumption. If an interrupted download had a valid strong ETag header and the server supports byte range requests, then a subsequent downloads resumption attempt could fetch part of a resource instead of the entire resource. While the Last-Modified header is also used for validation currently, its use will be discontinued since a matching Last-Modifed value does not imply byte-wise equivalence. Without persisting these headers, partial downloads resumption will only work for downloads that are interrupted and resumed during the same browser session. BUG=7648 Review URL: https://chromiumcodereview.appspot.com/20536003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216493 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of webkit_plugins.gypi by moving sad_plugin.* to content/renderer.jam@chromium.org2013-08-089-21/+77
| | | | | | | | | | | Also move ppapi_utils.* to chrome\browser\component_updater. BUG=265753 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22286012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216485 0039d316-1c4b-4281-b951-d872f2087c98
* Minor cleanup: Remove some unused consts in c/common/browser_plugin/lazyboy@chromium.org2013-08-082-4/+0
| | | | | | | | | BUG=None Test=Compiles, no visible changes. Review URL: https://chromiumcodereview.appspot.com/22325011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216471 0039d316-1c4b-4281-b951-d872f2087c98
* Add --enable-html-imports commandline switch and about-flags entry.morrita@chromium.org2013-08-084-0/+8
| | | | | | | | | BUG=240592 R=dglazkov,ojan,creis Review URL: https://chromiumcodereview.appspot.com/22342005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216462 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a SqlLite backend to WebRTCIdentityStore.jiayl@chromium.org2013-08-0814-103/+1147
| | | | | | | | | | | | | | | | | WebRTCIdentityStore maintains a list of inflight requests. If a new request is identical (i.e. same origin, identity_name, common_name) to a inflight request, the new one is joined into the existing one, so that it will not make duplicated requests to the backend or generate dupicated identities. If the backend does not find an existing identity, WebRTCIdentityStore generates a new one and adds it to the backend. The backend borrows most of the design from SQLiteServerBoundCertStore::Backend. It loads the database into memory on the first find request. Add or delete database operations are batched to commit every 30 seconds or every 512 operations. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216264 Review URL: https://chromiumcodereview.appspot.com/21453002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216448 0039d316-1c4b-4281-b951-d872f2087c98
* Fix painting glitch on Win Aura with the software compositor when a plugin ↵jam@chromium.org2013-08-081-0/+24
| | | | | | | | | | | becomes hidden after a scroll. In that case the clipping rect is empty, and DeferWindowPos doesn't redraw the newly-uncovered area that used to be under the plugin. BUG=265614 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22703002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216436 0039d316-1c4b-4281-b951-d872f2087c98
* Add explanations for CreateParams::SiteInstance.creis@chromium.org2013-08-081-0/+5
| | | | | | | | | | BUG=266545 TEST=No behavior change. R=jochen@chromium.org Review URL: https://codereview.chromium.org/22407007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216401 0039d316-1c4b-4281-b951-d872f2087c98
* Fix plugin painting glitch with win aura when going to full screen and back, ↵jam@chromium.org2013-08-082-6/+6
| | | | | | | | | | | | | | | and the plugin is cut off from the top. This gave it a negative y coordinate, and the math to pack that into a WPARAM didn't handle negative numbers. This bug always existed, but it was probably masked on non-aura builds all this time because Windows would repaint in other ways when this situation occurred. Note this bug occurs with and without the software compositor. BUG=265614 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22584006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216398 0039d316-1c4b-4281-b951-d872f2087c98
* Restrict the reset before decode case to Intel platforms.sabercrombie@chromium.org2013-08-081-0/+5
| | | | | | | | | | | The hang on Exynos is a known problem. BUG=chromium:269005 TEST=The test can pass on Arm (but there are still other issues). Review URL: https://chromiumcodereview.appspot.com/22398003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216352 0039d316-1c4b-4281-b951-d872f2087c98
* Making a way to create thread with a Java Looper for Androidkristianm@chromium.org2013-08-081-3/+9
| | | | | | | | | | | | | | We need to create a new message loop type for this as for testing the Android UI message pump type is not the standard Java, but gets overridden to a different one that can handle nested message loops. Using the new Java thread for the java bridge thread, so the thread used for AJI callbacks will have a prepared Looper. BUG=b/8680913 TBR=jochen@chromium.org Review URL: https://chromiumcodereview.appspot.com/18584006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216349 0039d316-1c4b-4281-b951-d872f2087c98
* Move cpp_binding_example.* to content/renderer/tfarina@chromium.org2013-08-084-8/+231
| | | | | | | | | | BUG=265753 TEST=content_browsertests R=jam@chromium.org,jamesr@chromium.org Review URL: https://chromiumcodereview.appspot.com/22324003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216340 0039d316-1c4b-4281-b951-d872f2087c98
* Take the navigation type into account when checking if the navigation is in ↵pstanek@opera.com2013-08-083-22/+33
| | | | | | | | | | | page. When navigating from ref url to non ref one the navigation type has decisive voice whether the navigation should be treated as in page. BUG=253481 Review URL: https://chromiumcodereview.appspot.com/21544005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216329 0039d316-1c4b-4281-b951-d872f2087c98
* Remove more plugin code when ENABLE_PLUGINS==0.jam@chromium.org2013-08-0718-90/+109
| | | | | | | | R=avi@chromium.org Review URL: https://codereview.chromium.org/22536003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216314 0039d316-1c4b-4281-b951-d872f2087c98
* NULL-check the result of webview()->focusedFrame() in TextInputClientObserver.rsesek@chromium.org2013-08-071-6/+12
| | | | | | | | | BUG=269638 R=avi@chromium.org Review URL: https://chromiumcodereview.appspot.com/22604004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216313 0039d316-1c4b-4281-b951-d872f2087c98
* aura: Move the software output surface into its own file.danakj@chromium.org2013-08-074-37/+82
| | | | | | | | | R=jbauman, piman BUG=258625 Review URL: https://chromiumcodereview.appspot.com/22380005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216303 0039d316-1c4b-4281-b951-d872f2087c98
* Retain static local NSArray so it's not garbage-collected.dmazzoni@google.com2013-08-071-1/+2
| | | | | | | | | BUG=268795 R=aboxhall@chromium.org Review URL: https://codereview.chromium.org/22370002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216299 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 216278 "Clean up compositor initialization/destruction."kalman@chromium.org2013-08-0716-151/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interactive_ui_test failures in TabDragging tests: http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%282%29/builds/17046 > Clean up compositor initialization/destruction. > > Moved from https://codereview.chromium.org/21052007/ > > Currently the ContextFactory is outliving the compositor thread in > tests, which is bad since the contexts in there can be bound to the > compositor thread. Then we end up reusing those contexts and bad > things happen. > > This enforces ordering for initializing and destroying the > compositor as follows: > > Initialize ContextFactory > ..Compositor::Initialize > ....Create Compositor instances > ....Delete Compositor instances > ..Compositor::Terminate > > The Compositor::Terminate call also destroys the ContextFactory. > > The ContextFactory can be initialized in one of two ways: > 1. ImageTransportFactory::Initialize will set up the > ContextFactory. This is used by things that invoke all of > content/browser/. > 2. Compositor::InitializeContextFactoryForTests() must be > explicitly called by any unit tests that create a compositor. > > Since some tests want a real GL context and some don't, this > does away with the misnomer of initializing the Compositor once > for the entire test suite, and then re-initializing somewhere > in the middle of the test suite. Instead, each test must > Initialize/Terminate the compositor with the ContextFactory > type of its choice. > > Incidently, this test enables 20 tests on aura or win_aura that > were previously being skipped. > > TBR=piman@chromium.org > BUG=258625 > > Review URL: https://codereview.chromium.org/22293003 TBR=danakj@chromium.org Review URL: https://codereview.chromium.org/22603007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216294 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 216264 "Adds a SqlLite backend to WebRTCIdentityStore."jyasskin@chromium.org2013-08-0714-1148/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to fix a memory leak: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Heapcheck/builds/28768/steps/heapcheck%20test%3A%20content/logs/stdio Leak of 160 bytes in 1 objects allocated from: @ 7f1611ba10e0 content::WebRTCIdentityStore::RequestIdentity @ a51510 content::WebRTCIdentityStoreTest_CancelRequest_Test::TestBody Leak of 71 bytes in 1 objects allocated from: @ 7f160f01ca89 std::basic_string::_Rep::_S_create @ 7f161c6a5cac GURL::GURL @ a514de content::WebRTCIdentityStoreTest_CancelRequest_Test::TestBody > Adds a SqlLite backend to WebRTCIdentityStore. > WebRTCIdentityStore maintains a list of inflight requests. If a new request is identical (i.e. same origin, identity_name, common_name) to a inflight request, the new one is joined into the existing one, so that it will not make duplicated requests to the backend or generate dupicated identities. > > If the backend does not find an existing identity, WebRTCIdentityStore generates a new one and adds it to the backend. > > The backend borrows most of the design from SQLiteServerBoundCertStore::Backend. It loads the database into memory on the first find request. Add or delete database operations are batched to commit every 30 seconds or every 512 operations. > > > BUG= > > Review URL: https://chromiumcodereview.appspot.com/21453002 R=jiayl@chromium.org Review URL: https://codereview.chromium.org/22264011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216282 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up compositor initialization/destruction.danakj@chromium.org2013-08-0716-96/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved from https://codereview.chromium.org/21052007/ Currently the ContextFactory is outliving the compositor thread in tests, which is bad since the contexts in there can be bound to the compositor thread. Then we end up reusing those contexts and bad things happen. This enforces ordering for initializing and destroying the compositor as follows: Initialize ContextFactory ..Compositor::Initialize ....Create Compositor instances ....Delete Compositor instances ..Compositor::Terminate The Compositor::Terminate call also destroys the ContextFactory. The ContextFactory can be initialized in one of two ways: 1. ImageTransportFactory::Initialize will set up the ContextFactory. This is used by things that invoke all of content/browser/. 2. Compositor::InitializeContextFactoryForTests() must be explicitly called by any unit tests that create a compositor. Since some tests want a real GL context and some don't, this does away with the misnomer of initializing the Compositor once for the entire test suite, and then re-initializing somewhere in the middle of the test suite. Instead, each test must Initialize/Terminate the compositor with the ContextFactory type of its choice. Incidently, this test enables 20 tests on aura or win_aura that were previously being skipped. TBR=piman@chromium.org BUG=258625 Review URL: https://codereview.chromium.org/22293003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216278 0039d316-1c4b-4281-b951-d872f2087c98
* Properly set loopback device ID for system audio capture.hshi@chromium.org2013-08-072-24/+1
| | | | | | | | | | | | | | Make sure the MediaStreamDevice has the correct loopback device ID for system audio capture in MediaCaptureDevicesDispatcher::ProcessScreenCaptureAccessRequest. Remove the hack in audio_input_renderer_host to override the loopback device ID. BUG=269626 TBR=dalecurtis@chromium.org, xians@chromium.org TEST=passes trybots, local testing on Chrome OS confirms device ID is passed to WebRtcLocalAudioTrack ctor. Review URL: https://codereview.chromium.org/22408006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216271 0039d316-1c4b-4281-b951-d872f2087c98
* Adds a SqlLite backend to WebRTCIdentityStore.jiayl@chromium.org2013-08-0714-102/+1148
| | | | | | | | | | | | | | | WebRTCIdentityStore maintains a list of inflight requests. If a new request is identical (i.e. same origin, identity_name, common_name) to a inflight request, the new one is joined into the existing one, so that it will not make duplicated requests to the backend or generate dupicated identities. If the backend does not find an existing identity, WebRTCIdentityStore generates a new one and adds it to the backend. The backend borrows most of the design from SQLiteServerBoundCertStore::Backend. It loads the database into memory on the first find request. Add or delete database operations are batched to commit every 30 seconds or every 512 operations. BUG= Review URL: https://chromiumcodereview.appspot.com/21453002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216264 0039d316-1c4b-4281-b951-d872f2087c98
* Revert EVS revisions 209760, 298753, 213143.hshi@chromium.org2013-08-0720-1122/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The EVS codepath is now dead. We will be using sheu@'s VEA path for HW-encoded screen capture. Revert "Encoded video capture: wire up key frame and bitrate settings." This reverts commit 348baf5a7b91cc4801dca5eae2921072055f35bc. Revert "Fix build failure with Android AOSP builds." This reverts commit ad526fe2ad101e249fe862b6e98c7d78ccdbc5ca. Revert "Define EncodedVideoSource and RtcCapturedEncodingVideoCapturer." This reverts commit 76bf7f58d93256dfa5867b6730e446517ead2a30. BUG=221441,248334 TEST=trybot TBR=fischman@chromium.org Review URL: https://codereview.chromium.org/21421002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216262 0039d316-1c4b-4281-b951-d872f2087c98
* Linux Sandbox: fail if InitializeSandbox() is called with threads.jln@chromium.org2013-08-071-1/+1
| | | | | | | | Replace a DCHECK with a CHECK. Review URL: https://chromiumcodereview.appspot.com/22349004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216244 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ContentViewGestureHandler.isNativeScrollingwangxianzhu@chromium.org2013-08-073-39/+37
| | | | | | | | | | | | | | | | | mNativeScrolling was not reset on flings, causing the code displaying selection handles not to show the handles. - Renamed mNativeScrolling to mTouchScrolling and ensure it to be true during (and only during) touch scrolling. - Separated end-scrolling logic from endFling() - Renamed tellNativeScrollingHasEnded() to endScrollIfNecessary() - TODO: Future isNativeScrolling() will also return true during flings. BUG=268452 Review URL: https://chromiumcodereview.appspot.com/22336002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216243 0039d316-1c4b-4281-b951-d872f2087c98
* Skip touch handler timeout if touchstart/touchmove has been prevent defaultwangxianzhu@chromium.org2013-08-071-1/+2
| | | | | | | | | | | | The short-term change about touch handler timeout for bug 244740 breaks some websites. Before we remove the timeout, improve by skipping the timeout if touchstart or touchmove has been prevent default. BUG=269024 Review URL: https://chromiumcodereview.appspot.com/22445004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216231 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 215997 "Throttle Console.log() messages."tsepez@chromium.org2013-08-074-54/+14
| | | | | | | | | | | | | | | | | | | | Speculative revert for OOM issue in renderer. > Throttle Console.log() messages. > > We want the memory bloat from runaway logging to occur in the renderer, so > that it crashes with a sad tab, rather than accumulating in the browser, where > we have seen it crash chrome itself. > > BUG=239438 > > Review URL: https://chromiumcodereview.appspot.com/22318003 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/22571008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216215 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/{browser,common}/dom_storage into content/kinuko@chromium.org2013-08-0772-427/+6388
| | | | | | | | | | | | | | | | | | Mechanical changes only, directory moving + * renamed all DomStorage* to DOMStorage* for consistency * renamed DOMStorageContextImpl to DOMStorageContextProxy, and renamed DomStorageContext to DOMStorageContextImpl * other minor cleanups Diff for dom_storage_context_impl.* may look a bit messy due to chained renames (it's just replaced with former webkit/browser/dom_storage/dom_storage_context.*) BUG=265769 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/22297005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216211 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: follow up to r216160, fixing Blink tests in debug.pfeldman@chromium.org2013-08-071-6/+9
| | | | | | | | R=kaznacheev@chromium.org Review URL: https://codereview.chromium.org/22571006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216197 0039d316-1c4b-4281-b951-d872f2087c98
* Small fixed the WebRtcLocalAudioTrackTest.ConnectTracksToDifferentCapturers.xians@chromium.org2013-08-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This patch will fix the Linux memory bot which reports: WebRtcLocalAudioTrackTest.ConnectTracksToDifferentCapturers unknown file: Failure Unexpected mock function call - returning directly. Function call: CaptureData(0, 44100, 1, 882, 0, 0, false) Google Mock tried the following 1 expectation, but it didn't match: ../../content/renderer/media/webrtc_local_audio_track_unittest.cc:437: EXPECT_CALL(*sink_2, CaptureData(kNumberOfNetworkChannelsForTrack2, 44100, 1, _, 0, 0, false))... Expected arg #0: is equal to 3 Actual: 0 Expected: to be called any number of times Actual: never called - satisfied and active TEST=./out/Debug/content_unittests --gtest_filter="*ConnectTracksToDifferentCapturers*" R=tommi@chromium.org Review URL: https://codereview.chromium.org/22582004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216185 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Clean up compositor initialization/destruction."danakj@chromium.org2013-08-0715-145/+70
| | | | | | | | | | | | | This reverts commit d65d6fe3c667835a8a0ddc0b917519115321d605. The CL needs to be rebased. TBR=piman BUG=258625, 266565 Review URL: https://codereview.chromium.org/22570003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216183 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up compositor initialization/destruction.danakj@chromium.org2013-08-0715-70/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved from https://codereview.chromium.org/21052007/ Currently the ContextFactory is outliving the compositor thread in tests, which is bad since the contexts in there can be bound to the compositor thread. Then we end up reusing those contexts and bad things happen. This enforces ordering for initializing and destroying the compositor as follows: Initialize ContextFactory ..Compositor::Initialize ....Create Compositor instances ....Delete Compositor instances ..Compositor::Terminate The Compositor::Terminate call also destroys the ContextFactory. The ContextFactory can be initialized in one of two ways: 1. ImageTransportFactory::Initialize will set up the ContextFactory. This is used by things that invoke all of content/browser/. 2. Compositor::InitializeContextFactoryForTests() must be explicitly called by any unit tests that create a compositor. Since some tests want a real GL context and some don't, this does away with the misnomer of initializing the Compositor once for the entire test suite, and then re-initializing somewhere in the middle of the test suite. Instead, each test must Initialize/Terminate the compositor with the ContextFactory type of its choice. Incidently, this test enables 20 tests on aura or win_aura that were previously being skipped. TBR=piman@chromium.org BUG=258625, 266565 Review URL: https://codereview.chromium.org/22293003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216179 0039d316-1c4b-4281-b951-d872f2087c98
* Trivial CL to remove two TODOs.xians@chromium.org2013-08-071-2/+0
| | | | | | | | | | Those TODOs are not valid anymore. R=tommi@chromium.org Review URL: https://codereview.chromium.org/22274019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216169 0039d316-1c4b-4281-b951-d872f2087c98
* Support multiple sources for media stream AudioTrack.xians@chromium.org2013-08-0721-465/+840
| | | | | | | | | | | | | | The current media stream AudioTrack only supports one source even there are different media streams, either microphone or webaudio. But from the spec, different media streams can have different sources, and we need to support such cases in order to playout file while doing recording microphone data. And we should also be able to send the audio tracks via the same(different) peerconnection(s). This patch implements this feature in chrome. BUG=262117,247027 TEST=content_unittests --gtest_filter="*MediaStream*, *WebRtc*" Review URL: https://chromiumcodereview.appspot.com/19541004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216162 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: make devtools protocol command ref-counted, allow async command ↵pfeldman@chromium.org2013-08-0711-125/+165
| | | | | | | | | | processing. R=kaznacheev@chromium.org Review URL: https://codereview.chromium.org/22519004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216160 0039d316-1c4b-4281-b951-d872f2087c98
* Disabled flaky WebRTCAudioDeviceTest.FullDuplexAudioWithAGC.phoglund@chromium.org2013-08-071-1/+2
| | | | | | | | | TBR=xians@chromium.org BUG=269348 Review URL: https://codereview.chromium.org/22534005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216144 0039d316-1c4b-4281-b951-d872f2087c98
* Add AwGLSurface and use it in WGC3Dboliu@chromium.org2013-08-075-15/+44
| | | | | | | | | | | | | | | Android can put the webview into an FBO, and compositor should draw into the FBO instead of directly on screen. Use AwGLSurface and explicitly set the FBO at the beginning of each hardware draw. Add new APIs in GLInProcessContext and WGC3DIPCBI to allow the underlying GLSurface to be created separately. BUG=251501 Review URL: https://chromiumcodereview.appspot.com/22277004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216136 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: DevToolsBrowserTarget does not need to be destroyed on the handler ↵pfeldman@chromium.org2013-08-072-13/+4
| | | | | | | | | | thread. R=kaznacheev@chromium.org Review URL: https://codereview.chromium.org/22410002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216130 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up unused code in GpuChannel::OnMessageReceived()chihchung@chromium.org2013-08-071-7/+0
| | | | | | | | | | | The variable message_processed is set to false in every path, so just remove it. BUG=none Review URL: https://chromiumcodereview.appspot.com/22309005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216120 0039d316-1c4b-4281-b951-d872f2087c98
* Storage partition: correctly delete cookie(s) when origin is specified.lazyboy@chromium.org2013-08-071-3/+13
| | | | | | | | | | | | | We were incorrectly removing cookies /w all origins while deleting cookies for a specific origin within a range (storage_partition_impl.cc, ClearCookiesOnIOThread). BUG=180118 Test=MultiThreadedCookieMonsterTest.ThreadCheckDeleteAllCreatedBetweenForHost Review URL: https://chromiumcodereview.appspot.com/20745004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216116 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PepperHelperImpl.jam@chromium.org2013-08-0727-919/+437
| | | | | | | | | BUG=263054 R=scottmg@chromium.org Review URL: https://codereview.chromium.org/22502003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216101 0039d316-1c4b-4281-b951-d872f2087c98