summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_browser_context.h
Commit message (Collapse)AuthorAgeFilesLines
* Adding a first prototype of guest mode.jwd@chromium.org2013-07-171-1/+1
| | | | | | | | | | | | | | This currently doesn't support the guest contract (fresh profile each session). That will come in a future CL. Screenshot of UI available at https://docs.google.com/file/d/0B2G_JZ2jrki9VFdQem1GRkp2RWM/edit?usp=sharing BUG=103846 TEST=Launch chrome with the flag enable-desktop-guest-mode. The avatar menu should be shown even when there is only one profile, there should be a guest link in the menu and it should launch a new window with no avatar menu. Launching that window will also cause a directory called "Guest Profile" to be created in the user data dir. Review URL: https://chromiumcodereview.appspot.com/11877033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211931 0039d316-1c4b-4281-b951-d872f2087c98
* Web MIDI: add RequestMIDISysExPermission to BrowserContexttoyoshim@chromium.org2013-07-121-0/+5
| | | | | | | | | | | | | Add RequestMIDISysExPermission to handle Web MIDI API permissions for system exclusive messages in content embedder. BUG=163795, 257618 TEST=none TBR=benm@chromium.org Review URL: https://chromiumcodereview.appspot.com/18647002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211437 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of the SpeechRecognitionPreferences interface. It only had one ↵jam@chromium.org2013-07-091-2/+0
| | | | | | | | | | method, and we can roll that into SpeechRecognitionDelegate instead to simplify things. This also allows us to get rid of ChromeSpeechRecognitionPreferences. R=tommi@chromium.org Review URL: https://codereview.chromium.org/18487007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210616 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for NetLog logging to json file in content_shell.kouhei@chromium.org2013-07-031-1/+6
| | | | | | | | | | | This patch adds support for "--log-net-log" command line option in content_shell. When the commandline option is specified, NetLogLogger is used to log all network activities to a file. BUG=None Review URL: https://chromiumcodereview.appspot.com/17633005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209993 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome-search: access from Instant overlaydhollowa@chromium.org2013-03-071-20/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables the Instant NTP page access to: chrome-search://theme/*, chrome-search://favicon/*, and chrome-search://thumb/*. This CL has a number of aspects to make the installed theme background image available to the Instant overlay: 1. Utilizes the new chrome-search: scheme that is accessible only to the Instant overlay's render process. This is enforced on the renderer side by WebKit::WebSecurityPolicy facilities. This is enforced on the browser side by the InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. 2. Whitelists the chrome-search://theme origin to be made available to the specific Instant overlay's origin/url. 3. Backend CSS that sets the appropriate background image that resides in the chrome-search://theme origin. 4. A small refactoring of the Instant tests to support mix-in usage of InstantTestBase. BUG=172408, 134937 TEST=InstantPolicyTest.SearchSchemePolicy R=sreeram@chromium.org, creis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186347 Review URL: https://chromiumcodereview.appspot.com/11896113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186680 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 186347jochen@chromium.org2013-03-061-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broke MalwareDetailsTest: [ RUN ] MalwareDetailsTest.HTTPCache Received signal 11 SEGV_MAPERR 00010000001e [0x00000285f2ee] base::debug::StackTrace::StackTrace() [0x00000285f3f6] base::debug::(anonymous namespace)::StackDumpSignalHandler() [0x7f5274c148f0] <unknown> [0x0000028a82f7] base::SupportsUserData::GetUserData() [0x00000215307f] (anonymous namespace)::GetDataForResourceContext() [0x00000215315c] InstantIOContext::RemoveInstantProcessOnIO() [0x000002881dd9] MessageLoop::RunTask() [0x00000288261b] MessageLoop::DeferOrRunPendingTask() [0x000002882c28] MessageLoop::DoWork() [0x000002853f4a] base::MessagePumpLibevent::Run() [0x00000287d8f2] MessageLoop::RunInternal() [0x00000289966d] base::RunLoop::Run() [0x00000287cca5] MessageLoop::Run() [0x0000042ee488] content::BrowserThreadImpl::IOThreadRun() [0x0000042ef28b] content::BrowserThreadImpl::Run() [0x0000028b4d88] base::Thread::ThreadMain() [0x0000028afc01] base::(anonymous namespace)::ThreadFunc() [0x7f5274c0b9ca] start_thread [0x7f5272728cdd] clone > Add chrome-search: access from Instant overlay > > Enables the Instant NTP page access to: > chrome-search://theme/*, > chrome-search://favicon/*, and > chrome-search://thumb/*. > > This CL has a number of aspects to make the installed theme > background image available to the Instant overlay: > 1. Utilizes the new chrome-search: scheme that is accessible only > to the Instant overlay's render process. This is enforced > on the renderer side by WebKit::WebSecurityPolicy > facilities. This is enforced on the browser side by the > InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. > 2. Whitelists the chrome-search://theme origin to be made > available to the specific Instant overlay's origin/url. > 3. Backend CSS that sets the appropriate background image > that resides in the chrome-search://theme origin. > 4. A small refactoring of the Instant tests to support mix-in > usage of InstantTestBase. > > BUG=172408, 134937 > TEST=InstantPolicyTest.SearchSchemePolicy > R=sreeram@chromium.org, creis@chromium.org > > > Review URL: https://chromiumcodereview.appspot.com/11896113 TBR=dhollowa@chromium.org Review URL: https://codereview.chromium.org/12521005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186371 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome-search: access from Instant overlaydhollowa@chromium.org2013-03-061-20/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enables the Instant NTP page access to: chrome-search://theme/*, chrome-search://favicon/*, and chrome-search://thumb/*. This CL has a number of aspects to make the installed theme background image available to the Instant overlay: 1. Utilizes the new chrome-search: scheme that is accessible only to the Instant overlay's render process. This is enforced on the renderer side by WebKit::WebSecurityPolicy facilities. This is enforced on the browser side by the InstantIOContext::ShouldServiceRequest and URLDataSource::ShouldServiceRequest facilities. 2. Whitelists the chrome-search://theme origin to be made available to the specific Instant overlay's origin/url. 3. Backend CSS that sets the appropriate background image that resides in the chrome-search://theme origin. 4. A small refactoring of the Instant tests to support mix-in usage of InstantTestBase. BUG=172408, 134937 TEST=InstantPolicyTest.SearchSchemePolicy R=sreeram@chromium.org, creis@chromium.org Review URL: https://chromiumcodereview.appspot.com/11896113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186347 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Replace all FilePath with base::FilePath in content.brettw@chromium.org2013-02-161-1/+1
| | | | | | | | This is im preparation for removing the 'using" in file_path.h Review URL: https://codereview.chromium.org/12226120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182940 0039d316-1c4b-4281-b951-d872f2087c98
* Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. pauljensen@chromium.org2013-02-081-5/+31
| | | | | | | | | | | Previously they were added later which doesn't mesh with pending URLRequestJobFactory API changes. BUG=146602,161529 Review URL: https://chromiumcodereview.appspot.com/11308362 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181519 0039d316-1c4b-4281-b951-d872f2087c98
* Add explicit base to FilePath.brettw@chromium.org2013-02-071-4/+4
| | | | | | | | This changes the "easy" content subdirectories (everything but browser, renderer, and common) and the ppapi top level directory. Review URL: https://codereview.chromium.org/12208057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181191 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] when running in layout test mode, create the temp directory ↵jochen@chromium.org2012-12-111-2/+0
| | | | | | | | | | | | | | | used for the browser context outside of the browser context The directory needs to be still around during the BrowserContext destructor which runs however, after the ShellBrowserContext destructor. BUG=111316 R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/11537006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172345 0039d316-1c4b-4281-b951-d872f2087c98
* Move scoped_temp_dir from base to base/filesbrettw@chromium.org2012-11-161-2/+2
| | | | | | | | | | Also add to base namespace. BUG= Review URL: https://codereview.chromium.org/11359217 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168281 0039d316-1c4b-4281-b951-d872f2087c98
* For storage partitions to work properly, we need to know whether a storage ↵nasko@chromium.org2012-10-301-2/+4
| | | | | | | | | | | | | partition is in-memory only and what directory it is supposed to live under. This information is currently not available on the IO thread, where we create the cookie store and HTTP cache. This CL is an the first step, aiming to to get profiles to propagate storage partition details from GetResourceContext* methods on the UI thread to the IO thread. BUG=145500,138296 Review URL: https://chromiumcodereview.appspot.com/11147026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165057 0039d316-1c4b-4281-b951-d872f2087c98
* Removes BrowserContext::DidLastSessionExitCleanly() and makessky@chromium.org2012-10-041-1/+0
| | | | | | | | | | | | | NavigationController::Restore() take an enum instead that encapsculates this. BUG=90737 TEST=none R=avi@chromium.org,sail@chromium.org Review URL: https://chromiumcodereview.appspot.com/11016038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160052 0039d316-1c4b-4281-b951-d872f2087c98
* continuing from http://http://codereview.chromium.org/10823241ajwong@chromium.org2012-09-181-0/+3
| | | | | | | | | | | | | This intentionally doesn't change the ChromeOS behavior at all. They all still use the default FileSystemContext. This code also exposes the normal and media URLRequestGetters via the StoragePartition, and cleans up a bit of code that was accessing the URLRequestGetter in odd ways. Also, it makes Workers correctly use the Media Cache for Media fetches. TBR=benjhyden,sky,davemoore,piman,mkwst,kalman BUG=85121 Review URL: https://chromiumcodereview.appspot.com/10909182 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157284 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache and StoragePartition'ingmichaeln@chromium.org2012-09-151-0/+2
| | | | | | | | | | | | | | | | | | | * Get rid of BrowserContext::GetAppCacheService and ResourceContext::GetAppCacheService as they've been replace by accessors on the StoragePartition and WorkerStoragePartition classes. * Added a BrowsingContext::GetRequestContextForStoragePartition(id) accessor so the constellation of storage context + main request context can initialized properly. Implemented that method in chrome's Profile class in terms of the existing GetRequestContextForIsolatedApp(id) accessor. * Hold references to the ChromeAppCacheService and ChromeBlobStorageContext inside of ResourceMessageFilter and provide accessors to them. These are for use by the ResourceDispatcherHost singleton which would otherwise not have enough context to get needed references to partitioned things. * Widen the ResourceDispatcherHostDelegate::RequestBeginning method to also take an AppCacheService* parameter since that value can no longer be retrieved via the ResourceContext. Chrome's impl of this delegate interface needs that value to construct OfflineResourceThrottles. * Poke at WorkerProcessHost to create ResourceMessageFilters and others to utlize the correct URLRequestContext so the right set of cookies are used in shared workers. TBR=mihaip,sail,thakis BUG=85121 Review URL: https://chromiumcodereview.appspot.com/10916132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156991 0039d316-1c4b-4281-b951-d872f2087c98
* Remove static variables from HttpStreamFactory.szager@chromium.org2012-09-071-0/+1
| | | | | | | | | | | Refresh of issue 10389162. BUG=124900 Review URL: https://chromiumcodereview.appspot.com/10834215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155485 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure that isolated apps use the right cookies for media requests.creis@chromium.org2012-08-211-1/+3
| | | | | | | | | | | | Also abstract out the media URLRequestContext logic from ProfileImpl. BUG=141172 TEST=Check cookies attached to video tag request inside an isolated app. Review URL: https://chromiumcodereview.appspot.com/10836305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152604 0039d316-1c4b-4281-b951-d872f2087c98
* Add a menu item to content_shell to open devtools to make it more discoverable.jam@chromium.org2012-08-091-1/+0
| | | | | | | | | | | Since the devtools server is running for each content shell browser process, the user doesn't specify a server port anymore. Instead I let the system pick. This made it necessary to plumb the data back from net::HttpServer. For now I only added Windows and Linux UI. Mac UI will be done later. BUG=90445 Review URL: https://chromiumcodereview.appspot.com/10837177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150808 0039d316-1c4b-4281-b951-d872f2087c98
* Move all the layout tests that ran under browser_tests to run under ↵jam@chromium.org2012-07-251-1/+2
| | | | | | | | | | | content_browsertests. To support the new tests, I added new methods to create new normal/incognito windows in content_browsertests. BUG=90448 Review URL: https://chromiumcodereview.appspot.com/10820007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148349 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from contentajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10696166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
* Use a fresh, temporary profile when running content_shell in DRT modejochen@chromium.org2012-06-081-0/+2
| | | | | | | | | | | | Also fix layout test controller bindings after my last change BUG=none TEST=manual Review URL: https://chromiumcodereview.appspot.com/10545087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141227 0039d316-1c4b-4281-b951-d872f2087c98
* Support NULL geolocation and speech delegates to make embedding content easier.jam@chromium.org2012-06-071-2/+0
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/10542059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141074 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation and ownership of DownloadManager from the embedder to content. ↵jam@chromium.org2012-06-061-4/+1
| | | | | | | | | | | This matches all the other objects that content depends on. In a followup change, I'll make content support NULL DownloadManagerDelegates to match the rest of the delegate interfaces. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/10535026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140761 0039d316-1c4b-4281-b951-d872f2087c98
* Beginnings of a WebView.ben@chromium.org2012-04-111-3/+1
| | | | | | | | | http://crbug.com/105557 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131837 Review URL: https://chromiumcodereview.appspot.com/10024081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131863 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 131837 - Beginnings of a WebView.ben@chromium.org2012-04-111-1/+3
| | | | | | | | | | | http://crbug.com/105557 TEST=none Review URL: https://chromiumcodereview.appspot.com/10024081 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10054030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131838 0039d316-1c4b-4281-b951-d872f2087c98
* Beginnings of a WebView.ben@chromium.org2012-04-111-3/+1
| | | | | | | | http://crbug.com/105557 TEST=none Review URL: https://chromiumcodereview.appspot.com/10024081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131837 0039d316-1c4b-4281-b951-d872f2087c98
* Mac content shell: Fix new browser window.avi@chromium.org2012-04-041-6/+5
| | | | | | | | | | | This is a revert of most of r130140, and a better re-implementation thereof. BUG=120153 TEST=as described Review URL: https://chromiumcodereview.appspot.com/9982011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130723 0039d316-1c4b-4281-b951-d872f2087c98
* Mac content shell: File > New makes a new browser window.avi@chromium.org2012-04-021-5/+6
| | | | | | | | | BUG=120153 TEST=as described Review URL: https://chromiumcodereview.appspot.com/9965064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130140 0039d316-1c4b-4281-b951-d872f2087c98
* Add methods to close individual or all open windows to Shelljochen@chromium.org2012-03-301-0/+3
| | | | | | | | | BUG=111316 TEST=none Review URL: https://chromiumcodereview.appspot.com/9909015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129828 0039d316-1c4b-4281-b951-d872f2087c98
* Renamed speech recognition code in preparation for introducing a new speech ↵primiano@chromium.org2012-03-071-2/+3
| | | | | | | | | | | | | | | implementation. - The general-purpose speech recognition classes (that will be needed also by future code) have been renamed to SpeechRecognition*; - The IPC Messages and dispatcher(host) classes that are only related to the current input tag (x-webkit-speech) support have been renamed to InputTagSpeech*; - The namespace has been renamed from speech_input to speech; BUG=116954 TEST= Review URL: https://chromiumcodereview.appspot.com/9568002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125378 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up password manager code.isherman@chromium.org2012-03-021-1/+1
| | | | | | | | | | BUG=none TEST=password saving should continue to work Review URL: http://codereview.chromium.org/9564001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124735 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation and ownership of HostZoomMap to content instead of having ↵jam@chromium.org2012-02-221-2/+0
| | | | | | | | | every embedder do this. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9416070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123002 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of BrowserContext objects that live in content to content, ↵jam@chromium.org2012-02-201-13/+1
| | | | | | | | | | instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122521 Review URL: https://chromiumcodereview.appspot.com/9419033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122768 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting to green up the memory waterfall.jhawkins@chromium.org2012-02-191-1/+13
| | | | | | | | | | | | | | BUG=114787 Revert 122521 - Move creation of BrowserContext objects that live in content to content, instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9419033 TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/9421023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122705 0039d316-1c4b-4281-b951-d872f2087c98
* Move creation of BrowserContext objects that live in content to content, ↵jam@chromium.org2012-02-171-13/+1
| | | | | | | | | instead of depending on the embedder. Apart from allowing us to hide more of content from embedders, it simplifies the work that every embedder has to do (see the change the shell_browser_context.cc as an example). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9419033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122521 0039d316-1c4b-4281-b951-d872f2087c98
* Remove ssl_host_state.h dependency from chrome.jam@chromium.org2012-02-131-3/+0
| | | | | | | | | I suspect there'll be a few objects that hang off BrowserContext/ResourceContext which are per profile that we don't want chrome to know about or even to create. For now, I did a one-off by manually keeping a map and deleting it when the BrowserContext goes away. If we hit others, we can generalize this into a template, perhaps like RenderViewHostObserverTracker. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9384029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121706 0039d316-1c4b-4281-b951-d872f2087c98
* Make content::ResourceContext be a real interface like the rest of the ↵jam@chromium.org2012-02-091-1/+1
| | | | | | | | | Content API (i.e. don't have setters/getters on it, and make all the functions pure virtual). BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9369009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121287 0039d316-1c4b-4281-b951-d872f2087c98
* Remove DownloadManager* dependency on DownloadStatusUpdater rdsmith@chromium.org2012-02-041-3/+1
| | | | | | | | | | | by making DownloadStatusUpdater an observer of DownloadManager. BUG=107264 Review URL: http://codereview.chromium.org/9005027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120487 0039d316-1c4b-4281-b951-d872f2087c98
* Create Content API around HostZoomMap.jam@chromium.org2012-01-301-1/+0
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9296041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119684 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of DownloadIdFactory and instead get the next id from ↵jam@chromium.org2012-01-271-2/+0
| | | | | | | | | DownloadManagerDelegate. I've also moved DownloadId to the public directory and into the content namespace. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9169036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119310 0039d316-1c4b-4281-b951-d872f2087c98
* Hide geolocation_provider.h from chrome, and move ↵jam@chromium.org2012-01-241-1/+0
| | | | | | | | | geolocation_permission_context.h to content\public and into the content namespace. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9160008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118767 0039d316-1c4b-4281-b951-d872f2087c98
* Trivial move of content::BrowserContext to content/public.joi@chromium.org2011-12-151-1/+1
| | | | | | | | | | | R=avi@chromium.org TBR=rlp@chromium.org BUG=98716 TEST= Review URL: http://codereview.chromium.org/8921021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114651 0039d316-1c4b-4281-b951-d872f2087c98
* Fix history importing by delaying DownloadManager creation. Replace ↵benjhayden@chromium.org2011-10-291-0/+2
| | | | | | | | | | | | | | | | | | | | GetNextIdThunkType with DownloadIdFactory (RefCountedThreadSafe, created by DownloadService). DownloadService uses the same DownloadIdFactory for an OTR profile as its original profile. DownloadService passes the DownloadIdFactory into the DownloadManager so that the DownloadManager can allocate new valid ids for items loaded from the history or downloads started on the ui thread. Since the DownloadService precedes and outlives its DownloadManager, DownloadManager does not have a scoped_refptr<DownloadIdFactory>. Objects that do have a scoped_refptr<DownloadIdFactory>: DownloadService, ProfileIOData, ShellBrowserContext, ShellResourceContext. The DownloadIdFactory must be RefCountedThreadSafe because ProfileIOData outlives Profile and because it's used in both the OTR and original profiles. Longer term, the import process should strictly precede profile initialization, and the next_download_id counter should be loaded from the History db strictly before DownloadService is created and creates a DownloadIdFactory. BUG=98966 Review URL: http://codereview.chromium.org/8401001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107836 0039d316-1c4b-4281-b951-d872f2087c98
* Move ResourceDispatcherHostDelegate and DownloadManagerDelegate to /public/.joi@chromium.org2011-10-201-1/+1
| | | | | | | | | | | | | | To avoid proliferation of folders, drop the /download/ and /render_host/ bits of those files' original paths when moving to /public/. BUG=98716 TEST=it builds Review URL: http://codereview.chromium.org/8352023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106456 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor downloads into a ProfileKeyedService.rdsmith@chromium.org2011-10-121-1/+0
| | | | | | | | | | BUG=94383 TEST= Review URL: http://codereview.chromium.org/8135017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105115 0039d316-1c4b-4281-b951-d872f2087c98
* Add a content_shell specific DownloadManagerDelegate.jam@chromium.org2011-09-291-1/+2
| | | | | | | | | Also fix a race condition that existed in resource dispatching but was never tickled by Chrome. The problem is if in BufferedResourceHandler::OnReadCompleted(), CompleteResponseStarted calls the next handler's OnResponseStarted. If that pauses the request, then the next handler's OnReadCompleted() would still get called which is not correct. BUG=90445 Review URL: http://codereview.chromium.org/8065019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103331 0039d316-1c4b-4281-b951-d872f2087c98
* Remove use of default request context and fix use of speech censor flagallanwoj@chromium.org2011-09-291-0/+2
| | | | | | | | | | | | Now gets the request context and censor preference in BrowserRenderProcessHost and passes them through to the SpeechInputDispatcherHost. Each time a speech request is made, the SpeechInputDispatcherHost passes through these values to the SpeechInputManager. Also each time the censor preference changes, RenderViewContextMenu updates the current profile's SpeechInputPreferences. BUG=92366 TEST=Speech recognition works. Review URL: http://codereview.chromium.org/7989001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103278 0039d316-1c4b-4281-b951-d872f2087c98
* A few improvements to content_shell:jam@chromium.org2011-09-261-0/+2
| | | | | | | | | | | | | -support multiple windows, this allows window.open to work -add menu to create new windows-update buttons and url bar -ensure we destruct ResourceContext on the right thread -ensure we destruct BrowserContext while all the threads are still alive -add http:// to the url if the user forgot to enter it BUG= 90445 Review URL: http://codereview.chromium.org/8043011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102749 0039d316-1c4b-4281-b951-d872f2087c98