summaryrefslogtreecommitdiffstats
path: root/chrome/common
Commit message (Collapse)AuthorAgeFilesLines
* Create a ResourceMessageFilter to filter resource related IPCs. This gets ↵jam@chromium.org2010-12-152-31/+54
| | | | | | | | rid of the awkward ResourceDispatcherHost::Receiver interface and allows a bunch of cleanup. I've also generalized the filtering done in WorkerProcessHost and moved it to ChildProcessHost (since it's now used to add the ResourceMessageFilter). Review URL: http://codereview.chromium.org/5874002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69335 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 69320 - Migrate HostReferralList and StartupDNSPrefetchList from ↵mirandac@chromium.org2010-12-152-26/+6
| | | | | | | | | | | | | | local_state to user preferences, in preparation for multi-profile. BUG=66717 TEST=none. Review URL: http://codereview.chromium.org/5800004 TBR=mirandac@chromium.org Review URL: http://codereview.chromium.org/5921003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69327 0039d316-1c4b-4281-b951-d872f2087c98
* Migrate HostReferralList and StartupDNSPrefetchList from local_state to user ↵mirandac@chromium.org2010-12-152-6/+26
| | | | | | | | | | | preferences, in preparation for multi-profile. BUG=66717 TEST=none. Review URL: http://codereview.chromium.org/5800004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69320 0039d316-1c4b-4281-b951-d872f2087c98
* Add a preference to clear plugin data on browser shutdown.bauerb@chromium.org2010-12-152-0/+6
| | | | | | | | | BUG=58235 TEST=none Review URL: http://codereview.chromium.org/5579002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69315 0039d316-1c4b-4281-b951-d872f2087c98
* Make PepperFileMessageFilter be a BrowserMessageFilter.jam@chromium.org2010-12-156-73/+106
| | | | | | Review URL: http://codereview.chromium.org/5877002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69313 0039d316-1c4b-4281-b951-d872f2087c98
* Update pepper registry of internal plugins.abarth@chromium.org2010-12-152-0/+34
| | | | | | | | | | | | | | | | Added constants for NaCl. Register plugin (only if --enable-nacl) BUG= http://code.google.com/p/nativeclient/issues/detail?id=933 TEST=none Original patch by Noel Allen. Review URL: http://codereview.chromium.org/5848001/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69290 0039d316-1c4b-4281-b951-d872f2087c98
* Add path for NaCl pepper2 based plugin.abarth@chromium.org2010-12-152-0/+13
| | | | | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=933 TEST=none Original patch by Noel Allen. Review URL: http://codereview.chromium.org/5740007/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69285 0039d316-1c4b-4281-b951-d872f2087c98
* Handle download url list and binary hash list in safe browsing. Addedlzheng@chromium.org2010-12-154-2/+7
| | | | | | | | | | a switch to enable this feature on safebrowsing service level. TEST=safe_browsing_database_unittest.cc,safe_browsing_test.cc BUG=60822 Review URL: http://codereview.chromium.org/5209003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69275 0039d316-1c4b-4281-b951-d872f2087c98
* Keep deinlining stuff.erg@google.com2010-12-154-391/+776
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5783004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69273 0039d316-1c4b-4281-b951-d872f2087c98
* Plumbing load progress notifications to the browser.jcivelli@chromium.org2010-12-151-0/+4
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/4694006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69272 0039d316-1c4b-4281-b951-d872f2087c98
* Add a preference to clear Flash LSO data in the Clear Browsing Data dialog.bauerb@chromium.org2010-12-152-0/+6
| | | | | | | | | | | The preference defaults to false, so without UI it should do nothing. BUG=58235 TEST=none Review URL: http://codereview.chromium.org/5278001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69268 0039d316-1c4b-4281-b951-d872f2087c98
* Sitch the about:gpu implementation from an about handler to dom_ui.nduca@chromium.org2010-12-152-0/+10
| | | | | | | | | | | | Generalize tabswitcherview slightly so it doesn't rely on div naming to obtain its styling. BUG=none TEST=none Review URL: http://codereview.chromium.org/5228004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69211 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing icon image to the bookmarks sample extension.tessamac@google.com2010-12-152-0/+0
| | | | | | | | | BUG=62832 TEST=Copied zip to my machine, unzipped, loaded upacked extension. Review URL: http://codereview.chromium.org/5675002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69210 0039d316-1c4b-4281-b951-d872f2087c98
* seccomp: remove build-time flagsevan@chromium.org2010-12-152-12/+4
| | | | | | | | | | | | | | | Adjusting seccomp through the .gyp file is error-prone and confusing. Instead, because all callers call SeccompSandboxEnabled(), if I want to enable it for some build configuration I can adjust just that function. This change removes all the build-time seccomp configuration and leaves it defaulted off. It should have no change on whether seccomp is enabled. Review URL: http://codereview.chromium.org/5844001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69208 0039d316-1c4b-4281-b951-d872f2087c98
* Enable default apps by default.aa@chromium.org2010-12-142-9/+0
| | | | | | | | | | | | | | | | | | | | Also, always show the apps section. We were only hiding it when there was zero elements when we were in our transitionary phase. To make this look less weird when there are actually zero elements, add the webstore element to the miniview and closed menus. BUG=64737 TEST=In a fresh profile, go to chrome://extensions/ -> developer mode, and click 'update now'. Go to NTP. Should see default apps. Remove all default apps. Apps section should remain. Collapse apps section by clicking heading. Should see webstore item in minimized view. Hide apps section by clicking 'x'. Should see webstore item in closed section menu on bottom of page. Review URL: http://codereview.chromium.org/5804005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69180 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ExtensionsService to ExtensionService.tfarina@chromium.org2010-12-144-6/+6
| | | | | | | | | BUG=61409 TEST=trybots Review URL: http://codereview.chromium.org/5730004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69117 0039d316-1c4b-4281-b951-d872f2087c98
* Make members of Singleton<T> private and only visible to the singleton type. ↵satish@chromium.org2010-12-142-8/+11
| | | | | | | | | | | | | | | This enforces that the Singleton<T> pattern can only be used within classes which want singleton-ness. As part of this CL I have also fixed up files which got missed in my previous CLs to use a GetInstance() method and use Singleton<T> from the source file. There are a small number of places where I have also switched to LazyInstance as that was more appropriate for types used in a single source file. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5682008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69107 0039d316-1c4b-4281-b951-d872f2087c98
* Deinline even more destructors.erg@google.com2010-12-141-1/+1
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69084 0039d316-1c4b-4281-b951-d872f2087c98
* This adds some plumbing for propagating the status and error code of a ↵gspencer@chromium.org2010-12-143-8/+19
| | | | | | | | | | | | | | | | | | | | | renderer process that went away so that we can tell at the UI level what happened to the tab: did it crash, or was it killed by the OOM killer (or some other reason). This is in preparation for implementing a new UI for when a process is killed by the OOM on ChromeOS which handles it differently from a crash. Most of the changes are modifications of the argument list to include a status and error code for the exited process, but in addition the following was done: - Changed the name of DidProcessCrash to GetTerminationStatus. - Added TerminationStatus enum in process_util.h, so it can be used as the status returned by GetTerminationStatus. - Improved process_util_unittest to actually test for crashing and terminated processes on all platforms. - Added a new notification for renderers that were killed. - Added error code information to crash notification. - Added status and error code information to renderer IPC message for RenderViewGone. - Added a UMA histogram count for number of renderer kills. BUG=http://crosbug.com/8505 TEST=ran new unit test. Test passes on try servers. Review URL: http://codereview.chromium.org/5172009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69082 0039d316-1c4b-4281-b951-d872f2087c98
* Fix extension packer command-line code for Mac. Instead of blocking in a ↵andybons@chromium.org2010-12-131-0/+1
| | | | | | | | | | | | | janky way by running the message loop, I added an option to run the extension packer job synchronously. One thing to note as it pertains to the bug report is that the path must be fully qualified. ~/ for home directories doesn't work for me. BUG=65645 TEST=none Review URL: http://codereview.chromium.org/5703004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69073 0039d316-1c4b-4281-b951-d872f2087c98
* fix bad mergejam@chromium.org2010-12-131-1/+0
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69054 0039d316-1c4b-4281-b951-d872f2087c98
* Make IndexedDBDispatcherHost be a message filter and move its messages into ↵jam@chromium.org2010-12-137-804/+832
| | | | | | | | a separate file. Review URL: http://codereview.chromium.org/5680007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69050 0039d316-1c4b-4281-b951-d872f2087c98
* Make DOMStorageDispatcherHost be a message filter (and rename it ↵jam@chromium.org2010-12-137-198/+254
| | | | | | | | accordingly). It now derives from BrowserMessageFilter and hence gets message dispatching to different threads for free. Review URL: http://codereview.chromium.org/5722003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69049 0039d316-1c4b-4281-b951-d872f2087c98
* Even more virtual method deinlining.erg@google.com2010-12-134-4/+10
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5741001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69041 0039d316-1c4b-4281-b951-d872f2087c98
* Make DatabaseDispatcherHost be a message filter so that ↵jam@chromium.org2010-12-136-72/+101
| | | | | | | | ResourceMessageFilter doesn't have to know about it. Review URL: http://codereview.chromium.org/5757002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69031 0039d316-1c4b-4281-b951-d872f2087c98
* Update the links to the store to point at the new URL.aa@chromium.org2010-12-134-2/+4
| | | | | | | | | BUG=65385 TEST=hover over web store links in launcher -- should point to chrome.google.com/webstore, not /extensions. Links should still work. Click linked headings in chrome://extensions/, should go to extension detail page. Review URL: http://codereview.chromium.org/5700006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69011 0039d316-1c4b-4281-b951-d872f2087c98
* Switch a bunch of remaining filters to derive from BrowserMessageFilters so ↵jam@chromium.org2010-12-135-28/+79
| | | | | | | | that ResourceMessageFilter doesn't have to know about them and vice versa. A bunch of small cleanup in the process. I've added new message files for classes that want their messages dispatched on threads other than the IO. Review URL: http://codereview.chromium.org/5698008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69008 0039d316-1c4b-4281-b951-d872f2087c98
* Add utility function to determine if a locale is valid syntax; this willdmazzoni@chromium.org2010-12-134-48/+5
| | | | | | | | | | | | be used by the TTS extension API. Moved some locale utility functions from extension_l10n_util to l10n_util. BUG=none TEST=Adds new unit test Review URL: http://codereview.chromium.org/5643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69004 0039d316-1c4b-4281-b951-d872f2087c98
* Rename all methods accessing Singleton<T> as GetInstance().satish@chromium.org2010-12-133-10/+10
| | | | | | | | | | | | | This is in preparation to a subsequent CL where Singleton<T> will restrict access to only the type being made singleton. I also moved pepper::ResourceTracker to a lazy instance since there were too many places in code where this class was being accessed from and this was a smaller change than renaming methods in that case. BUG=65298 TEST=all existing tests should pass. Review URL: http://codereview.chromium.org/5685007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68982 0039d316-1c4b-4281-b951-d872f2087c98
* Some fields were getting dropped during the conversion ofaa@chromium.org2010-12-121-2/+21
| | | | | | | | | | | 'crx-less' web apps to extensions. BUG=66127 TEST= Review URL: http://codereview.chromium.org/5709004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68976 0039d316-1c4b-4281-b951-d872f2087c98
* Blacklist bad GPU drivers: currenly we disable all gpu related features if a ↵zmo@google.com2010-12-116-0/+163
| | | | | | | | | | | (os, device, driver) configuration is on the blacklist. BUG=58182 TEST=unittest Review URL: http://codereview.chromium.org/5612002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68948 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Add named testing interface."phajdan.jr@chromium.org2010-12-112-17/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=67300 The change has been approved conditionally, i.e. if the outstanding review comments are handled in a follow-up as the top priority. Two weeks have passed, and I have not seen the follow-up. It is risky to keep this change in the tree, as it is already non-trivial to revert. Conflicts: chrome/browser/automation/automation_provider.cc chrome/test/ui/named_interface_uitest.cc ipc/ipc_channel_posix.cc TBR=nirnimesh BUG=chromium-os:8512 TEST=none Review URL: http://codereview.chromium.org/5707006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68944 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 68932 - Make members of Singleton<T> private and only visible to the ↵satish@chromium.org2010-12-112-11/+8
| | | | | | | | | | | | | | | | | | singleton type. This enforces that the Singleton<T> pattern can only be used within classes which want singleton-ness. As part of this CL I have also fixed up files which got missed in my previous CLs to use a GetInstance() method and use Singleton<T> from the source file. There are a small number of places where I have also switched to LazyInstance as that was more appropriate for types used in a single source file. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5682008 TBR=satish@chromium.org Review URL: http://codereview.chromium.org/5721005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68936 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestJob URLRequestJob;tfarina@chromium.org2010-12-112-3/+3
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5607004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68935 0039d316-1c4b-4281-b951-d872f2087c98
* Make members of Singleton<T> private and only visible to the singleton type. ↵satish@chromium.org2010-12-112-8/+11
| | | | | | | | | | | | | | | This enforces that the Singleton<T> pattern can only be used within classes which want singleton-ness. As part of this CL I have also fixed up files which got missed in my previous CLs to use a GetInstance() method and use Singleton<T> from the source file. There are a small number of places where I have also switched to LazyInstance as that was more appropriate for types used in a single source file. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5682008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68932 0039d316-1c4b-4281-b951-d872f2087c98
* Release notes for M9.kathyw@chromium.org2010-12-106-41/+115
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/5748001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68895 0039d316-1c4b-4281-b951-d872f2087c98
* IndexedDB: Numeric keys are floating point.hans@chromium.org2010-12-103-7/+6
| | | | | | | | | | | Depends on WebKit r73697. BUG=65619 TEST=browser_tests Review URL: http://codereview.chromium.org/5695002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68851 0039d316-1c4b-4281-b951-d872f2087c98
* IndexedDB: Preparatory patch for https://bugs.webkit.org/show_bug.cgi?id=50674hans@chromium.org2010-12-101-1/+2
| | | | | | | | | | | | | WebIDBKey::number() will be changed to return a double. Cast this to int explicitly to avoid warnings in the mean time (esp. on Visual Studio). BUG=65619 TEST=none Review URL: http://codereview.chromium.org/5727002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68835 0039d316-1c4b-4281-b951-d872f2087c98
* An exprimental fix for Bug 65940.hbono@chromium.org2010-12-101-0/+5
| | | | | | | | | | It seems these leaks are caused by a reference-count mismatch for a ChannelProxy::Context object. (This class expects to increase its reference count in OnChannelOpened() and to decrease it in OnChannelClosed(). On the other hand, we cannot call OnChannelClosed() after calling ClearIPCMessageLoop() because it detaches the message loop of a ChannelProxy::Context object. That is, calling ChannelProxy::Close() in ChannelProxy::~ChannelProxy() cannot decrease the reference count to its context.) This change just explicitly calls ChannelProxy::Close() before calling ChannelProxy::ClearIPCMessageLoop(). BUG=65940 TEST=make the valgrind bot green without suppressions. Review URL: http://codereview.chromium.org/5706001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68831 0039d316-1c4b-4281-b951-d872f2087c98
* Send phishing model from the browser to the renderer.noelutz@google.com2010-12-093-1/+7
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/5206006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68791 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bad link reported in the chromium-extensions group bykathyw@chromium.org2010-12-092-2/+2
| | | | | | | | | | | | Blair Kutzman (forwarded by PhistucK). TBR=aa BUG=none TEST=link at bottom of analytics tutorial works Review URL: http://codereview.chromium.org/5713002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68756 0039d316-1c4b-4281-b951-d872f2087c98
* Start deinlining non-empty virtual methods. (This will be automatically checkederg@google.com2010-12-092-7/+14
| | | | | | | | | | | for in the future.) BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5574006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68746 0039d316-1c4b-4281-b951-d872f2087c98
* Resolve relative paths to a hypothetical root before fetching docs from ↵kurrik@chromium.org2010-12-091-2/+3
| | | | | | | | | | | source control. BUG=None TEST=None Review URL: http://codereview.chromium.org/5188003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68744 0039d316-1c4b-4281-b951-d872f2087c98
* Updating omnibox sample to use new XML formatting method.kurrik@chromium.org2010-12-093-71/+29
| | | | | | | | | BUG=65684 TEST=None Review URL: http://codereview.chromium.org/5638002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68743 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize PrefStore interface.mnissler@chromium.org2010-12-098-149/+185
| | | | | | | | | | | | | | | | | This reworks the PrefStore interface, specifically: - Split up the interface into PrefStore, which only provides reading functionality, and the derived PersistentPrefStore for the actual user pref store - Remove the hurt-me-plenty prefs() function from PrefStore, instead provide Get/Set/Remove operations - Remove special handling of default and user pref store from PrefValueStore and put it into PrefService - Pref change notification handling now almost exclusively handled through PrefValueStore - Adjust all consumers of these interfaces (but keep ConfigurationPolicyPrefStore untouched, that's up next on the list) BUG=64232 TEST=existing unit tests Review URL: http://codereview.chromium.org/5646003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68736 0039d316-1c4b-4281-b951-d872f2087c98
* Re-generate extension API docsgfeher@chromium.org2010-12-096-5/+5
| | | | | | | | | | | | | | Fix broken </ br> tags in extension_api.json For the zipfile changes: TBR=kurrik BUG=none TEST=none Review URL: http://codereview.chromium.org/5563012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68733 0039d316-1c4b-4281-b951-d872f2087c98
* Add a new GetInstance() method for singleton classes under chrome/service ↵satish@chromium.org2010-12-093-12/+36
| | | | | | | | | | | | | | | | | | | | and /net. This is a small step towards making all singleton classes use the Singleton<T> pattern within their code and not expect the callers to know about it. This CL includes files under chrome/service and /net with related files elsewhere. Suggested files to focus for reviewers: - @sanjeevr for chrome/common and chrome/service - @ukai for net/websockets - @agl for rest of net BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68722 0039d316-1c4b-4281-b951-d872f2087c98
* Follow pattern used for Linux and Windows to move the appropriate bits of ↵rickcam@chromium.org2010-12-092-7/+0
| | | | | | | | | | | | | Mac code to the file thread. BUG=59265 TEST=none This patch also splits platform-specific LaunchOnStartup code to platform-specific files, eliminating #if blocks from the primary source file. Review URL: http://codereview.chromium.org/5368002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68678 0039d316-1c4b-4281-b951-d872f2087c98
* Fix chromeos build errorsjam@chromium.org2010-12-091-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68673 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing new linejam@chromium.org2010-12-081-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68666 0039d316-1c4b-4281-b951-d872f2087c98