summaryrefslogtreecommitdiffstats
path: root/chrome/browser/background_contents_service.h
Commit message (Collapse)AuthorAgeFilesLines
* Moved files related to background mode to browser/background.atwilson@chromium.org2011-06-171-178/+0
| | | | | | | | | BUG=none TEST=If it compiles, it works. Review URL: http://codereview.chromium.org/7187028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89497 0039d316-1c4b-4281-b951-d872f2087c98
* Profile shouldn't own background page stuff.torne@chromium.org2011-04-151-1/+3
| | | | | | | | | | | | | | BackgroundContentsService and BackgroundModeManager now have factories which own them, using Profile as a key. This uses the ProfileKeyedService infrastructure. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6831016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81723 0039d316-1c4b-4281-b951-d872f2087c98
* apps: Add 'background_page' support for hosted apps.sadrul@chromium.org2011-04-131-2/+8
| | | | | | | | | | | | | | A hosted app can have a 'background_page' if it has 'background' 'permission'. The 'background_page' will launch immediately after the app is installed. BUG=77718 TEST=AppBackgroundPageApiTest.ManifestBackgroundPage, and existing tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81438 Review URL: http://codereview.chromium.org/6708100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81467 0039d316-1c4b-4281-b951-d872f2087c98
* Caused compile failure on Lunux Builder x64.ctguil@chromium.org2011-04-131-8/+2
| | | | | | | | Revert 81438 - apps: Add 'background_page' support for hosted apps.A hosted app can have a 'background_page' if it has 'background' 'permission'.The 'background_page' will launch immediately after the app is installed.BUG=77718TEST=AppBackgroundPageApiTest.ManifestBackgroundPage, and existing tests.Review URL: http://codereview.chromium.org/6708100 TBR=sadrul@chromium.org Review URL: http://codereview.chromium.org/6834035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81442 0039d316-1c4b-4281-b951-d872f2087c98
* apps: Add 'background_page' support for hosted apps.sadrul@chromium.org2011-04-131-2/+8
| | | | | | | | | | | | A hosted app can have a 'background_page' if it has 'background' 'permission'. The 'background_page' will launch immediately after the app is installed. BUG=77718 TEST=AppBackgroundPageApiTest.ManifestBackgroundPage, and existing tests. Review URL: http://codereview.chromium.org/6708100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81438 0039d316-1c4b-4281-b951-d872f2087c98
* apps: Notify the user if an app's background page crashes.sadrul@chromium.org2011-04-021-0/+16
| | | | | | | | | | | | | | | Add a new notification for when an app's background page crashes, and use this notification message to show a message to the user and allow to restart the app. Extension-crashes also create balloon notifications instead of infobars. BUG=78167,78126 TEST=existing ExtensionCrashRecoveryTest.* tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80128 Review URL: http://codereview.chromium.org/6731038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80259 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80128 - apps: Notify the user if an app's background page crashes.sadrul@chromium.org2011-04-011-12/+0
| | | | | | | | | | | | | | | | Add a new notification for when an app's background page crashes, and use this notification message to show a message to the user and allow to restart the app. Extension-crashes also create balloon notifications instead of infobars. BUG=none TEST=existing ExtensionCrashRecoveryTest.* tests. Review URL: http://codereview.chromium.org/6731038 TBR=sadrul@chromium.org Review URL: http://codereview.chromium.org/6788018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80193 0039d316-1c4b-4281-b951-d872f2087c98
* apps: Notify the user if an app's background page crashes.sadrul@chromium.org2011-04-011-0/+12
| | | | | | | | | | | | | Add a new notification for when an app's background page crashes, and use this notification message to show a message to the user and allow to restart the app. Extension-crashes also create balloon notifications instead of infobars. BUG=none TEST=existing ExtensionCrashRecoveryTest.* tests. Review URL: http://codereview.chromium.org/6731038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80128 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of renderer->browser messages to content.jam@chromium.org2011-03-231-1/+1
| | | | | | | TBR=tsepez Review URL: http://codereview.chromium.org/6721021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79152 0039d316-1c4b-4281-b951-d872f2087c98
* Removing references to off the record in comments and log messages.akalin@chromium.org2011-03-081-1/+1
| | | | | | | | | | | Original patch by vipul.bhasin@gmail.com. BUG=3333 TEST=None Review URL: http://codereview.chromium.org/6625076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77331 0039d316-1c4b-4281-b951-d872f2087c98
* Update a bunch of files to the new location of notification files.tfarina@chromium.org2011-03-081-3/+3
| | | | | | | | | | | First part of the remaining files. BUG=None TEST=None Review URL: http://codereview.chromium.org/6649001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77330 0039d316-1c4b-4281-b951-d872f2087c98
* Blow away BackgroundContents when RenderView goes away.atwilson@chromium.org2011-01-181-0/+2
| | | | | | | | | | | | | Reopening, because this CL broke NoticeNotificationChanges on XP for some reason, so I'm going to undo my (now superfluous) changes to flush the queue in WaitForResourceChange(). BUG=65189 TEST=TaskManagerBrowserTest.KillBGContents Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71458 Review URL: http://codereview.chromium.org/6226002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71688 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 71458 - Blow away BackgroundContents when RenderView goes away.atwilson@chromium.org2011-01-151-2/+0
| | | | | | | | | | | | | | Rolling this out because it breaks NoticeNotificationChanges on XP for some reason. BUG=65189 TEST=TaskManagerBrowserTest.KillBGContents Review URL: http://codereview.chromium.org/6226002 TBR=atwilson@chromium.org Review URL: http://codereview.chromium.org/6310008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71536 0039d316-1c4b-4281-b951-d872f2087c98
* Blow away BackgroundContents when RenderView goes away.atwilson@chromium.org2011-01-141-0/+2
| | | | | | | | | BUG=65189 TEST=TaskManagerBrowserTest.KillBGContents Review URL: http://codereview.chromium.org/6226002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71458 0039d316-1c4b-4281-b951-d872f2087c98
* Added support for displaying BackgroundContents in the task manager.atwilson@chromium.org2010-11-101-12/+32
| | | | | | | | | | | | Previously BackgroundContents would get created, but since they were not TabContents, they would not show up. BUG=62105 TEST=TaskManagerBrowserTest.NoticeBGContentsChanges Review URL: http://codereview.chromium.org/4760001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65690 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring select popup on Mac.jcivelli@google.com2010-10-261-1/+0
| | | | | | | | | | | | | | The select popup on Mac was based on a hack: we would create an invisible RenderWidget and redirect mouse and keyboard events to it and we would display a native Cocoa menu. With this CL we do not use a RenderWidget anymore, we send the user selection to the RenderView which in turns communicates to WebKit that selection. BUG=None TEST=On Mac, ensures the select popup works as expected. Also test that for an extension with a browser action containing a select popup, the select popup does work. Also ensures autocomplete/autofill still works (especially popups). Original review: http://codereview.chromium.org/3795006/show Review URL: http://codereview.chromium.org/4078003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63906 0039d316-1c4b-4281-b951-d872f2087c98
* Added BackgroundModeManager which tracks when background apps are ↵atwilson@chromium.org2010-08-181-4/+0
| | | | | | | | | | | | | | | | | | | | loaded/unloaded and puts Chrome into BackgroundMode appropriately. Added EXTENSION_UNINSTALLING notification which is sent out when a notification is about to be uninstalled. Refactored StatusTray code to move StatusTray under the profile rather than attaching it to the browser process, and removed StatusTrayManager which is no longer needed now that BackgroundModeManager handles creating status icons. BUG=43382 TEST=background_mode_manager_unittests.cc Review URL: http://codereview.chromium.org/3134011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56596 0039d316-1c4b-4281-b951-d872f2087c98
* Create BackgroundContents::Delegate interface to break dependency on browser.hrafaelw@chromium.org2010-08-161-1/+17
| | | | | | | | BUG=50554 Review URL: http://codereview.chromium.org/3106012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56243 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Use FRIEND_TEST_ALL_PREFIXES some more.phajdan.jr@chromium.org2010-07-261-3/+5
| | | | | | | | | TEST=compile BUG=44549 Review URL: http://codereview.chromium.org/3032025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53706 0039d316-1c4b-4281-b951-d872f2087c98
* Moved code that generates APP_TERMINATING notification into BrowserList so ↵atwilson@chromium.org2010-07-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | it can be used on all platforms. Updated observers (ExtensionProcessManager, BackgroundContents) to listen for APP_TERMINATING instead of listening for BROWSER_CLOSED on some platforms. APP_TERMINATING is now sent just before the main message loop exits rather than just after, but no code depends on this timing. Updated Mac code to always call BrowserList::CloseAllBrowsers() even if there are no open browsers, to ensure that APP_TERMINATING is always fired. Changed BackgroundContentsService to keep the browser process alive when there are BackgroundContents running and updated the unit tests. Renamed BrowserList::IsInPersistentMode() => WillShutdownWhenLastBrowserCloses() and AllBrowsersClosed() => AllBrowsersClosedAndAppExiting() to more precisely indicate their true functions. Exposed BrowserProcess::ModuleRefCount() so BrowserList can determine when the application is going to exit so the right notifications/callbacks can be generated. Updated background-auto-update-restart code to use new BrowserList APIs to determine whether the application is running "in the background". Added code to cancel shutdown on all plaforms if the user selects cancel in an onbeforeunload dialog. BUG=45275 TEST=RunInBackgroundTest (ui_test) Review URL: http://codereview.chromium.org/2866034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53092 0039d316-1c4b-4281-b951-d872f2087c98
* Create background contents on startup.atwilson@chromium.org2010-06-241-2/+3
| | | | | | | | Implement BackgroundContentsService::CreateBackgroundContents() to automatically relaunch registered BackgroundContents when the browser starts. Review URL: http://codereview.chromium.org/2862026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50770 0039d316-1c4b-4281-b951-d872f2087c98
* Added BackgroundContentsService to manage lifecycle of BackgroundContents.atwilson@chromium.org2010-06-211-0/+113
If --restore-background-contents flag is passed, stores the URLs of running BackgroundContents in preferences so they can be re-launched when the browser restarts. Moved logic to shutdown background contents into BackgroundContentsService so we can use this to coordinate when to keep the browser process running. BUG=43382 TEST=new tests Review URL: http://codereview.chromium.org/2104018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50329 0039d316-1c4b-4281-b951-d872f2087c98