summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_browser_context.cc
Commit message (Collapse)AuthorAgeFilesLines
* Create Content API around HostZoomMap.jam@chromium.org2012-01-301-2/+2
| | | | | | | 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-6/+2
| | | | | | | | | 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-3/+3
| | | | | | | | | 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
* Content: First draft at a content_shell on GTK.erg@chromium.org2012-01-141-1/+15
| | | | | | | | | | | | | | | | | THIS IS NOT READY FOR DAILY USE. The shell, in its current state, can bring up the default google.com homepage. And that's about it. There are problems with the url bar, scrolling (weird crashes complaining about not having a ResourceBundle), it breaks badly on popups, et cetera. BUG=90445 TEST=none; this is a testing tool. Review URL: http://codereview.chromium.org/9213012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117768 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate WEBKIT threadjoth@chromium.org2011-12-201-1/+2
| | | | | | | | | | BUG=106839 TEST=try servers pass Review URL: http://codereview.chromium.org/8879013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115116 0039d316-1c4b-4281-b951-d872f2087c98
* Remove BrowserThread::UnsafeGetBrowserThread, add UnsafeGetMessageLoopForThread.joi@chromium.org2011-12-071-4/+2
| | | | | | | | | | | | | | This also removes several accessors on BrowserProcess that are no longer used. I wanted to remove all retrieval of MessageLoop objects via BrowserThread, but this proved harder than it looked, because several net:: classes use MessageLoop and have fairly deep assumptions that it is a real MessageLoop, e.g. they use MessageLoopForIO with its IO observers and so forth. Therefore, we now have UnsafeGetMessageLoopForThread but UnsafeGetBrowserThread is gone. TBR=abodenha@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/8769013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113377 0039d316-1c4b-4281-b951-d872f2087c98
* Hide geolocation_messages.h from chrome. It was only used in a test. Instead ↵jam@chromium.org2011-11-301-1/+2
| | | | | | | | | of having the GeolocationPermissionContext implementation have to call a static method in the interface, give it a callback when requesting permission. That way in tests we can just give a different callback. Also removed two trivial includes in this change. BUG=98716 Review URL: http://codereview.chromium.org/8662041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112085 0039d316-1c4b-4281-b951-d872f2087c98
* Have content/ create and destroy its own threads. (Re-land)joi@chromium.org2011-11-281-2/+5
| | | | | | | | | | | | | | | | | | | Change embedding API and embedders to allow for this. Push inheritance of base::Thread down to content::BrowserThreadImpl so that content::BrowserThread is just a namespace for API functions. This change temporarily disables chrome_frame_net_tests as agreed by the CF lead, see bug 105435. TBR=ben@chromium.org (IWYU change only) BUG=98716,104578,105435 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111695 Reverted (problems on official bot): r111698 Review URL: http://codereview.chromium.org/8477004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111705 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111695 - Have content/ create and destroy its own threads.joi@chromium.org2011-11-281-5/+2
| | | | | | | | | | | | | | | | | | | | | Reason: Problems on official builders. Change embedding API and embedders to allow for this. Push inheritance of base::Thread down to content::BrowserThreadImpl so that content::BrowserThread is just a namespace for API functions. This change temporarily disables chrome_frame_net_tests as agreed by the CF lead, see bug 105435. TBR=ben@chromium.org (IWYU change only) BUG=98716,104578,105435 Review URL: http://codereview.chromium.org/8477004 TBR=joi@chromium.org Review URL: http://codereview.chromium.org/8718012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111698 0039d316-1c4b-4281-b951-d872f2087c98
* Have content/ create and destroy its own threads.joi@chromium.org2011-11-281-2/+5
| | | | | | | | | | | | | | | | Change embedding API and embedders to allow for this. Push inheritance of base::Thread down to content::BrowserThreadImpl so that content::BrowserThread is just a namespace for API functions. This change temporarily disables chrome_frame_net_tests as agreed by the CF lead, see bug 105435. TBR=ben@chromium.org (IWYU change only) BUG=98716,104578,105435 Review URL: http://codereview.chromium.org/8477004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111695 0039d316-1c4b-4281-b951-d872f2087c98
* Created a DownloadManager interface, for use in unit tests..ahendrickson@chromium.org2011-11-171-4/+4
| | | | | | | | | | Bug=None Test=None Review URL: http://codereview.chromium.org/8351052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110499 0039d316-1c4b-4281-b951-d872f2087c98
* Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind().dcheng@chromium.org2011-11-151-5/+6
| | | | | | | | | BUG=none TEST=compiles and tests pass. Review URL: http://codereview.chromium.org/8556001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110164 0039d316-1c4b-4281-b951-d872f2087c98
* Move BrowserThread to content namespace.joi@chromium.org2011-11-021-0/+2
| | | | | | | | | TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8437002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108270 0039d316-1c4b-4281-b951-d872f2087c98
* Fix history importing by delaying DownloadManager creation. Replace ↵benjhayden@chromium.org2011-10-291-2/+5
| | | | | | | | | | | | | | | | | | | | 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
* Split BrowserThread into public API and private implementation, step 1.joi@chromium.org2011-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | Only content/ now has the ability to create BrowserThread objects, with the exception that tests can create the content::TestBrowserThread subclass, and (temporarily) code in chrome/ can create the DeprecatedBrowserThread subclass. A follow-up change will make content/ take care of its own thread creation, remove DeprecatedBrowserThread, and move all state and non-trivial constructors from BrowserThread down to BrowserThreadImpl. Also moved BrowserProcessSubThread into content/ namespace. As part of follow-up cleanup, chrome/ will stop using this class. BUG=98716 TEST=existing Review URL: http://codereview.chromium.org/8392042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107718 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor downloads into a ProfileKeyedService.rdsmith@chromium.org2011-10-121-4/+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
* Fixing misleading name in a speech input setting and related variables.leandrogracia@chromium.org2011-10-081-2/+2
| | | | | | | | | | | This patch replaces all occurrences of 'censor results' with 'filter profanities', which is a much accurate description of what it does and avoids unfortunate confusions. BUG=79991 TEST=none Review URL: http://codereview.chromium.org/8199010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104653 0039d316-1c4b-4281-b951-d872f2087c98
* Add a content_shell specific DownloadManagerDelegate.jam@chromium.org2011-09-291-4/+6
| | | | | | | | | 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/+24
| | | | | | | | | | | | 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
* Split off content_shell's ResourceContext and URLRequestContextGetter ↵jam@chromium.org2011-09-271-163/+2
| | | | | | | | implementations into separate files to improve readability.BUG=90445 Review URL: http://codereview.chromium.org/8037037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102851 0039d316-1c4b-4281-b951-d872f2087c98
* A few improvements to content_shell:jam@chromium.org2011-09-261-10/+16
| | | | | | | | | | | | | -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
* Set the ChromeBlobStorageContext on content_shell's content::ResourceContext ↵jam@chromium.org2011-09-191-3/+8
| | | | | | | | | so that gmail sign-in doesn't crash. BUG=90445 Review URL: http://codereview.chromium.org/7966003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101864 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in include from r101438rsimha@chromium.org2011-09-161-1/+1
| | | | | | | | | | | | | | | r101438 included a typo in the line #include "net/http/http_auth_handler_factory.gh". This patch fixes the typo. TBR=jam@chromium.org BUG=90445 TEST= Review URL: http://codereview.chromium.org/7926004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101439 0039d316-1c4b-4281-b951-d872f2087c98
* Get the content shell to paint!jam@chromium.org2011-09-161-1/+6
| | | | | | | BUG=90445 Review URL: http://codereview.chromium.org/7920003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101438 0039d316-1c4b-4281-b951-d872f2087c98
* Create a very simple TabContentsView (and not fully implemented yet) and add ↵jam@chromium.org2011-09-151-0/+380
more supporting code to be able to load a page. Right now it's not rendering, but I suspect it's something small, and the patch has gotten large so I figure it's time to send it for review. BUG=90445 Review URL: http://codereview.chromium.org/7906008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101395 0039d316-1c4b-4281-b951-d872f2087c98