summaryrefslogtreecommitdiffstats
path: root/chromecast
Commit message (Collapse)AuthorAgeFilesLines
* Call ComputeWebKitPrefs on the correct RVH, and remove dead code.creis2015-02-122-2/+0
| | | | | | | | | | | | | | | | | | RenderViewHost was calling out to WebContents to get the URL, but it was getting the wrong URL (e.g., possibly the transient one) and then never looking at it. Worse, WebContents then called ComputeWebkitPrefs on the wrong RVH (the old one, not the pending one). This only seems to come up in corner cases, like chrome://history on Android when Javascript is disabled. BUG=454063 TEST=See bug. TBR=jam Review URL: https://codereview.chromium.org/919933002 Cr-Commit-Position: refs/heads/master@{#316081}
* chromecast: Fix action_name naming typo.tfarina2015-02-111-1/+1
| | | | | | | | | | | | | | | It is just a small correction, it should be 'repack_cast_shell_pak' rather than 'repack_cast_shell_pack'. Notice the end is 'pak', because that is the term for these files and also the output is called cast_shell.pak. BUG=None TEST=cast_shell R=lcwu@chromium.org,gunsch@chromiuum.org Review URL: https://codereview.chromium.org/918573002 Cr-Commit-Position: refs/heads/master@{#315857}
* Chromecast: makes CastWindowAndroid use CastContentWindow.gunsch2015-02-112-55/+31
| | | | | | | | | | | This unifies the WebContents creation code between each platform. R=lcwu@chromium.org,byungchul@chromium.org BUG=internal b/18934906 Review URL: https://codereview.chromium.org/874683006 Cr-Commit-Position: refs/heads/master@{#315818}
* Chromecast: allow platform to add custom native bindings (take 2).gunsch2015-02-111-0/+14
| | | | | | | | | | | Forgot to 'git add' on the previous CL. R=lcwu@chromium.org BUG=internal b/19004169 Review URL: https://codereview.chromium.org/914863005 Cr-Commit-Position: refs/heads/master@{#315811}
* Chromecast: allow platform to add custom native bindings.gunsch2015-02-113-1/+4
| | | | | | | | | R=lcwu@chromium.org BUG=internal b/19004169 Review URL: https://codereview.chromium.org/915923002 Cr-Commit-Position: refs/heads/master@{#315716}
* Chromecast: re-enables image loading in headless mode.gunsch2015-02-111-4/+0
| | | | | | | | | R=lcwu@chromium.org,wzhong@chromium.org BUG=internal b/18512518 Review URL: https://codereview.chromium.org/912143003 Cr-Commit-Position: refs/heads/master@{#315693}
* Chromecast: Remove useless log in BufferingControllerservolk2015-02-091-1/+0
| | | | | | | | | | | | This log statement is useless, since we already have another log statement inside that loop, that will give us enough information. BUG=none Review URL: https://codereview.chromium.org/908023002 Cr-Commit-Position: refs/heads/master@{#315407}
* Chromecast: change BrowserCdmCast threading model.gunsch2015-02-094-10/+42
| | | | | | | | | | | | Per crbug/444930 discussion, BrowserCdm should generally remain on UI thread. Interactions between the CMA pipeline and BrowserCdm should remain thread-safe. R=erickung@chromium.org,lcwu@chromium.org Review URL: https://codereview.chromium.org/903083003 Cr-Commit-Position: refs/heads/master@{#315359}
* Get SIGTERM when parent process dies.byungchul2015-02-091-0/+6
| | | | | | | | | | Cast shell needs to exist when the parent process dies. BUG=internal b/19182288 Review URL: https://codereview.chromium.org/872073005 Cr-Commit-Position: refs/heads/master@{#315356}
* Adds hook for content embedders to get media::BrowserCdm*.gunsch2015-02-064-8/+34
| | | | | | | | | R=jam@chromium.org,erickung@chromium.org BUG=444930 Review URL: https://codereview.chromium.org/894173002 Cr-Commit-Position: refs/heads/master@{#314937}
* Remove kolla from chromecast/OWNERS.lcwu2015-02-041-1/+0
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/897123002 Cr-Commit-Position: refs/heads/master@{#314646}
* Chromecast Android: fix for 100% crash when child process is launched.gunsch2015-02-041-11/+11
| | | | | | | | | | | | | | GPU process is launching before CrashDumpManager is initialized, calling into CastContentBrowserClient::GetAdditionalMappedFilesForProcess. Make sure to start CrashDumpManager earlier. R=lcwu@chromium.org,kjoswiak@chromium.org BUG=None Review URL: https://codereview.chromium.org/893303002 Cr-Commit-Position: refs/heads/master@{#314449}
* Rename initial_pos to initial_rect in ShowWidget and ShowView IPCs.bokan2015-02-032-2/+2
| | | | | | | | | | | | | | | These IPCs hold this param as a gfx::Rect and the RenderWidget and RenderView set the size. On the receiving end, the size is sometimes used so initial_pos was a misnomer. This is a mechanical rename, there should be no functional difference. TBR= BUG= Review URL: https://codereview.chromium.org/889403004 Cr-Commit-Position: refs/heads/master@{#314430}
* Chromecast: Makes cast_crash_client common across builds.gunsch2015-02-031-24/+24
| | | | | | | | | R=lcwu@chromium.org,byungchul@chromium.org BUG=internal b/18934906 Review URL: https://codereview.chromium.org/876633003 Cr-Commit-Position: refs/heads/master@{#314413}
* Chromecast: updates BrowserCdmCast to handle new BrowserCdm API.gunsch2015-02-025-29/+90
| | | | | | | | | R=lcwu@chromium.org BUG=451482 Review URL: https://codereview.chromium.org/874663002 Cr-Commit-Position: refs/heads/master@{#314178}
* Renamed the dns_prefetch component to network_predictorpmeenan2015-01-306-13/+13
| | | | | | | | | | | | | | This is in preparation for adding preconnect support which goes through the same underlying plumbing. dns_prefetch was too restrictive of a component name and was only exposing the single method. There are no functionality changes in this CL, just the rename (the namespace was also renamed) BUG=450682 Review URL: https://codereview.chromium.org/848303005 Cr-Commit-Position: refs/heads/master@{#314001}
* Chromecast: connect CastBrowserCdmFactory during startup.gunsch2015-01-281-0/+9
| | | | | | | | | R=lcwu@chromium.org,erickung@chromium.org BUG=408189 Review URL: https://codereview.chromium.org/886583002 Cr-Commit-Position: refs/heads/master@{#313552}
* Chromecast: rpath for loading NSS module in cast_shell directory.gunsch2015-01-281-0/+5
| | | | | | | | | R=lcwu@chromium.org,dougsteed@chromium.org BUG=336640 Review URL: https://codereview.chromium.org/876373004 Cr-Commit-Position: refs/heads/master@{#313424}
* Chromecast Android buildfix: use new ContentViewCore.initialize API.gunsch2015-01-272-3/+3
| | | | | | | | | | | See: https://codereview.chromium.org/831523005 R=dtrainor@chromium.org,lcwu@chromium.org BUG=None Review URL: https://codereview.chromium.org/879073002 Cr-Commit-Position: refs/heads/master@{#313391}
* Chromecast: update VideoPlane CoordinateType list.gunsch2015-01-271-3/+2
| | | | | | | | | R=lcwu@chromium.org,servolk@chromium.org BUG=None Review URL: https://codereview.chromium.org/878843004 Cr-Commit-Position: refs/heads/master@{#313352}
* Chromecast: #elif --> #else.gunsch2015-01-271-1/+1
| | | | | | | | | | | | Damien mentioned an odd issue when adding this about it not compiling correctly at the time. It compiles fine for me now. R=lcwu@chromium.org BUG=None Review URL: https://codereview.chromium.org/881043002 Cr-Commit-Position: refs/heads/master@{#313333}
* Chromecast: fixes CMA renderer initialization crash.gunsch2015-01-271-2/+2
| | | | | | | | | R=lcwu@chromium.org,erickung@chromium.org BUG=None Review URL: https://codereview.chromium.org/882563002 Cr-Commit-Position: refs/heads/master@{#313211}
* Chromecast buildfix: update CmaRenderer for Initialize API change.gunsch2015-01-272-21/+30
| | | | | | | | | | | See: https://codereview.chromium.org/870693002 R=erickung@chromium.org,dalecurtis@chromium.org BUG=450764 Review URL: https://codereview.chromium.org/869283003 Cr-Commit-Position: refs/heads/master@{#313195}
* Replace CAST_BUILD_REVISION with <major>.<minor>.<incremental>.byungchul2015-01-232-3/+9
| | | | | | | | | | Old <incremental>-only number is preserved in CAST_BUILD_INCREMENTAL. BUG= Review URL: https://codereview.chromium.org/866843004 Cr-Commit-Position: refs/heads/master@{#312887}
* Fix assertion starting cast_shell (breaking thread IO restrictions).halliwell2015-01-232-3/+4
| | | | | | | | | | | cast_shell creates aura::WindowTreeHost during main loop, and when running with ozone-platform=egltest this causes a thread_restriction I/O FATAL. BUG=448802 Review URL: https://codereview.chromium.org/853073003 Cr-Commit-Position: refs/heads/master@{#312869}
* Chromecast: Remove the notification of moderate memory pressure.lcwu2015-01-221-13/+6
| | | | | | | | | | | | | | | Sending the moderate memory pressure notification now has the same effect on v8's garbage collection as sending critical memory pressure notification, which will trigger immediate gargabe collection and cause some unexpected (performance) side effect. Given that render_thread_impl is already asking v8 periodically to do idle garbage collection, we should remove the moderate memory pressure notification. BUG= Review URL: https://codereview.chromium.org/798043008 Cr-Commit-Position: refs/heads/master@{#312675}
* Fix key input.sfunkenhauser2015-01-222-1/+11
| | | | | | | | | | | | The cast web content window wasn't properly gaining focus which caused all of the key input events to be dispatched to the wrong window where they were silently dropped. BUG= Review URL: https://codereview.chromium.org/797023005 Cr-Commit-Position: refs/heads/master@{#312649}
* Chromecast ATV: distinguish actual shutdown vs. lifecycle from sleep.gunsch2015-01-221-5/+21
| | | | | | | | | | | | | | | Activity lifecycle is different when coming out of sleep mode, since the activity doesn't actually have focus. For whatever reason, this results in an extra onPause/onStop/onStart/onResume sequence before the app is "started". Details: http://stackoverflow.com/questions/25369909/ R=lcwu@chromium.org,byungchul@chromium.org Review URL: https://codereview.chromium.org/864923003 Cr-Commit-Position: refs/heads/master@{#312550}
* Chromecast: adds hook for internal code to set command-line flags.gunsch2015-01-224-0/+19
| | | | | | | | | R=lcwu@chromium.org BUG=internal b/16490877 Review URL: https://codereview.chromium.org/859863003 Cr-Commit-Position: refs/heads/master@{#312546}
* Initialize url_request_context_factory after cast service initialization.byungchul2015-01-221-5/+6
| | | | | | | | | | | CastNetworkDelegate in url_request_context_factory may use components initialized by cast service. BUG= Review URL: https://codereview.chromium.org/862203002 Cr-Commit-Position: refs/heads/master@{#312517}
* Ipclist fixes.Abhishek Arya2015-01-211-1/+1
| | | | | | | | | | | | | | | | 1. Make it work with Windows. 2. Remove non-existent messages. 3. Use _generator.h files where possible, e.g. adds missing extension_utility_messages.h. R=gunsch@chromium.org, tsepez@chromium.org TBR=ttuttle@chromium.org BUG=450268 Committed: https://chromium.googlesource.com/chromium/src/+/faf8b453fa03869b3109258702ca7cf7b8157f5b Review URL: https://codereview.chromium.org/848453003 Cr-Commit-Position: refs/heads/master@{#312466}
* Revert of Ipclist fixes. (patchset #2 id:20001 of ↵Nico Weber2015-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://codereview.chromium.org/848453003/) Reason for revert: The review doesn't show it, but this added back third_party/libc++(abi) for some reason: https://chromium.googlesource.com/chromium/src/+/faf8b453fa03869b3109258702ca7cf7b8157f5b This was moved elsewhere in https://codereview.chromium.org/788063003 and it being back causes all kinds of things, for example me being unable to run `git cl upload`. Please reland this without adding back libc++. This reverts commit faf8b453fa03869b3109258702ca7cf7b8157f5b. Original issue's description: > Ipclist fixes. > > 1. Make it work with Windows. > 2. Remove non-existent messages. > 3. Use _generator.h files where possible, e.g. adds missing extension_utility_messages.h. > > R=gunsch@chromium.org, tsepez@chromium.org > TBR=ttuttle@chromium.org > BUG=450268 > > Committed: https://chromium.googlesource.com/chromium/src/+/faf8b453fa03869b3109258702ca7cf7b8157f5b TBR=tsepez@chromium.org,gunsch@chromium.org,jar@chromium.org,ttuttle@chromium.org,inferno@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=450268 Review URL: https://codereview.chromium.org/862043003 Cr-Commit-Position: refs/heads/master@{#312455}
* Chromecast buildfix: updates BrowserCdmFactory for new API.gunsch2015-01-213-23/+24
| | | | | | | | | | | See: https://codereview.chromium.org/850183002/ R=lcwu@chromium.org,xhwang@chromium.org BUG=None Review URL: https://codereview.chromium.org/861153004 Cr-Commit-Position: refs/heads/master@{#312444}
* Ipclist fixes.Abhishek Arya2015-01-211-1/+1
| | | | | | | | | | | | | | 1. Make it work with Windows. 2. Remove non-existent messages. 3. Use _generator.h files where possible, e.g. adds missing extension_utility_messages.h. R=gunsch@chromium.org, tsepez@chromium.org TBR=ttuttle@chromium.org BUG=450268 Review URL: https://codereview.chromium.org/848453003 Cr-Commit-Position: refs/heads/master@{#312315}
* Chromecast test build fix: add mojo dep for direct_dependent includes.gunsch2015-01-201-0/+1
| | | | | | | | | | | | | See internal build failures for "content_shell_clang_tot_public". Initially triggered in https://codereview.chromium.org/814543006/ R=lcwu@chromium.org BUG=None Review URL: https://codereview.chromium.org/861843002 Cr-Commit-Position: refs/heads/master@{#312294}
* Fix chromium-style errors for WeakPtrFactory member order in Chromecasthalliwell2015-01-164-4/+4
| | | | | | | | | | This check just got turned on upstream, see crrev.com/803603003 BUG= Review URL: https://codereview.chromium.org/857573004 Cr-Commit-Position: refs/heads/master@{#311920}
* Fix GPU process crash in ChromecastShellBrowserTest.EmptyTesthalliwell2015-01-162-7/+1
| | | | | | | | | | | | | | | | | Using --disable-gpu to fix the GPU process crash. Unfortunately this exposed a different crash in our teardown process. For now, I've removed the test code that shuts down render processes. The problem with this is Chromecast code reacts to the render process dying and tries to start the error screen just as it's about to be shut down. This ultimately leads to a crash. Chromecast code shuts down the render processes itself, so I don't believe we need the FastShutdownIfPossible calls in this test. BUG= Review URL: https://codereview.chromium.org/818803004 Cr-Commit-Position: refs/heads/master@{#311801}
* Chromecast: add a CastRenderViewObserver for wiring up native bindings.gunsch2015-01-151-0/+20
| | | | | | | | | R=lcwu@chromium.org BUG=internal b/19004169 Review URL: https://codereview.chromium.org/801153003 Cr-Commit-Position: refs/heads/master@{#311686}
* Remove command line flag --disable-pluginsmohan.reddy2015-01-141-1/+0
| | | | | | | | BUG=366349 Review URL: https://codereview.chromium.org/829133009 Cr-Commit-Position: refs/heads/master@{#311475}
* Merge TagAppStart and UpdateCurrentAppInfo.derekjchow2015-01-133-26/+28
| | | | | | | | | | | | Removes TagAppStart as its functionality is redundant. Also separates out updating SDK info into UpdateSDKInfo. R=byungchul@chromium.org BUG= Review URL: https://codereview.chromium.org/836923003 Cr-Commit-Position: refs/heads/master@{#311300}
* [DevTools] Move CreateSocketForTethering to ServerSocketFactoryvkuzkokov2015-01-133-17/+26
| | | | | | | | | | DevToolsManagerDelegate::CreateSocketForTethering was called from handler thread where there is no control over DevToolsManagerDelegate's lifetime. BUG= Review URL: https://codereview.chromium.org/820693003 Cr-Commit-Position: refs/heads/master@{#311235}
* Fix broken android build.gfhuang2015-01-111-0/+4
| | | | | | Review URL: https://codereview.chromium.org/844253002 Cr-Commit-Position: refs/heads/master@{#311007}
* (1) ExternalMetrics has to destroy itself in file thread due to weakptr.gfhuang2015-01-104-4/+25
| | | | | | | | (2) MetricsService has to stop before destruction of CastBrowserProcess, which is referenced inside MetricsService's stopping code. Review URL: https://codereview.chromium.org/845003002 Cr-Commit-Position: refs/heads/master@{#310958}
* Chromecast buildfix: include missing headers.gunsch2015-01-101-0/+3
| | | | | | | | | | R=lcwu@chromium.org TBR=lcwu@chromium.org BUG=None Review URL: https://codereview.chromium.org/844683005 Cr-Commit-Position: refs/heads/master@{#310942}
* Chromecast: propagate kEnableCrashReporter switch to child processes.gunsch2015-01-101-0/+7
| | | | | | | | | R=lcwu@chromium.org BUG=336640 Review URL: https://codereview.chromium.org/843173002 Cr-Commit-Position: refs/heads/master@{#310925}
* Chromecast Android buildfix: remove repeated 'conditions' GYP block.gunsch2015-01-091-2/+0
| | | | | | | | | | | See recent "content_shell_androidtv_tot_x86" build failures. R=lcwu@chromium.org BUG=None Review URL: https://codereview.chromium.org/843933003 Cr-Commit-Position: refs/heads/master@{#310875}
* Chromecast: attach the crash signal FD to the child process FD list.gunsch2015-01-093-0/+63
| | | | | | | | | R=lcwu@chromium.org BUG=336640 Review URL: https://codereview.chromium.org/838213004 Cr-Commit-Position: refs/heads/master@{#310829}
* Use webview settings to disable off-line application cache instead of the ↵lcwu2015-01-092-1/+4
| | | | | | | | | | | | | command-line flag. The command-line flag --disable-application-cache is slated to be removed. See https://codereview.chromium.org/837363002/. BUG= Review URL: https://codereview.chromium.org/845803002 Cr-Commit-Position: refs/heads/master@{#310827}
* (1) Hook up clean_shutdown bit for metrics components.gfhuang2015-01-094-3/+18
| | | | | | | | | (2) Re-order class members inside cast_browser_process, so that they are destructed in correct order. Review URL: https://codereview.chromium.org/839153004 Cr-Commit-Position: refs/heads/master@{#310813}
* Split Intialize/Finalize from Start/Stop in CastService.byungchul2015-01-093-13/+81
| | | | | | | | | | | | | Initialize() and Finalize() are for tasks which should be done when IO is allowed. Start() and Stop() are for tasks which should be done when RenderProcesses are valid. For example, web_contents are not accessible during CastBrowserMainParts::PostMainMessageLoopRun() because RendererProcessHost is already destroyed. In addition, handle SIGTERM and SIGINT to exit cast_shell properly on those signals. BUG= Review URL: https://codereview.chromium.org/834923002 Cr-Commit-Position: refs/heads/master@{#310641}