summaryrefslogtreecommitdiffstats
path: root/webkit/glue/user_agent.cc
Commit message (Collapse)AuthorAgeFilesLines
* Re-land r102336 (remove webkit_glue::BuildUserAgent) w/ fix.dpranke@chromium.org2011-09-261-4/+2
| | | | | | | | | | | | | | | | | | | | | | Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so that SetUserAgent() must be called before GetUserAgent(). This was causing a dependency inversion between webkit_support and its clients, and was needed for the content component build. For content users, calling SetContentClient() will automatically initialize the user agent (retrieved from client->GetUserAgent()). As a bonus, fixing this allowed me to re-test the "mimic_windows" code path and it looks like we no longer need it. R=jam@chromium.org,rsesek@chromium.org BUG=11136, 90442 TEST=visit yahoo! mail using Chromium on Linux, ensure that we don't get an "unsupported browser" warning. Review URL: http://codereview.chromium.org/8045005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102763 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Remove webkit_glue::BuildUserAgent(), change the contract in ↵dpranke@chromium.org2011-09-221-2/+4
| | | | | | | | | | | | webkit_glue" TBR=jam@chromium.org BUG=90442 TEST=none Review URL: http://codereview.chromium.org/8002003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102353 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so ↵dpranke@chromium.org2011-09-221-4/+2
| | | | | | | | | | | | | | | | | | that SetUserAgent() must be called before GetUserAgent(). This was causing a dependency inversion between webkit_support and its clients, and was needed for the content component build. For content users, calling SetContentClient() will automatically initialize the user agent (retrieved from client->GetUserAgent()). As a bonus, fixing this allowed me to re-test the "mimic_windows" code path and it looks like we no longer need it. R=jam@chromium.org,tony@chromium.org BUG=11136,90442 TEST=visit yahoo! mail using Chromium on Linux, ensure that we don't get an "unsupported browser" warning. Review URL: http://codereview.chromium.org/7922023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102336 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the GetProductVersion function from webkit_glue and replace it with ↵ananta@chromium.org2011-06-161-11/+18
| | | | | | | | | | | | | | | | | | the BuildUserAgent function. The BuildUserAgent function has been deleted from user_agent.cc. The implementation of this function in content\renderer_glue.cc calls the GetUserAgent API in ContentClient which is implemented by the embedder (Chrome). Added implementations of the BuildUserAgent function for test_shell and DumpRenderTree. To build the user agent string we need the webkit major and minor versions. Added getters for them in the webkit_glue namespace in the user_agent.h/.cc files. This helps reduce the implicit dependency of content on chrome. BUG=82454 Review URL: http://codereview.chromium.org/7166004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89415 0039d316-1c4b-4281-b951-d872f2087c98
* Make the windows_version.h functions threadsafe by using a singleton. Add ↵pkasting@chromium.org2011-04-071-6/+7
| | | | | | | | | | | | accessors to the singleton for more values that various code wants, then convert almost everyone using OSVERSIONINFO or SYSTEM_INFO structs to calling these accessors. Declare an AtExitManager in the out-of-process test runner since it didn't have one and that breaks singleton-using code in the test executable (as opposed to in chrome.dll). A few other minor cleanups along the way (binding of "*", shorter code, etc.). Because I ran into problems with it while modifying gcapi.cc, I cleaned up our usage of strsafe.h a bit, so that files that don't need it don't include it and files that do use STRSAFE_NO_DEPRECATE instead of a modified #include order. BUG=none TEST=none Review URL: http://codereview.chromium.org/6816027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80851 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 80819 due to failed testsmmenke@chromium.org2011-04-071-7/+6
| | | | | | | TBR=pkasting@chromium.org Review URL: http://codereview.chromium.org/6816024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80824 0039d316-1c4b-4281-b951-d872f2087c98
* Make the windows_version.h functions threadsafe by using a singleton. Add ↵pkasting@chromium.org2011-04-071-6/+7
| | | | | | | | | | | | accessors to the singleton for more values that various code wants, then convert almost everyone using OSVERSIONINFO or SYSTEM_INFO structs to calling these accessors. Declare an AtExitManager in the out-of-process test runner since it didn't have one and that breaks singleton-using code in the test executable (as opposed to in chrome.dll). A few other minor cleanups along the way (binding of "*", shorter code, etc.). Because I ran into problems with it while modifying gcapi.cc, I cleaned up our usage of strsafe.h a bit, so that files that don't need it don't include it and files that do use STRSAFE_NO_DEPRECATE instead of a modified #include order. BUG=none TEST=none Review URL: http://codereview.chromium.org/6713107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80819 0039d316-1c4b-4281-b951-d872f2087c98
* Tweak UserAgent string for Touch_UI ChromeOS buildsrbyers@chromium.org2011-03-161-1/+5
| | | | | | | | | | | | | | | | | Use 'CrOS Touch' as the OS instead of just 'CrOS' for TOUCH_UI builds of ChromeOS. This lets websites that are already customizing for tablet experiences easily adapt to support tablet ChromeOS devices. In particular, this will result in UA strings like the following: Mozilla/5.0 (X11; CrOS Touch x86_64 10.4.0) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.692.0 Safari/534.24 BUG=74942 TEST=None Review URL: http://codereview.chromium.org/6627010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78368 0039d316-1c4b-4281-b951-d872f2087c98
* Add 64-bit Windows tokens to the UA string. This parallels ↵pkasting@chromium.org2011-03-051-2/+21
| | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=55226 as well as Firefox and IE. BUG=none TEST=none Review URL: http://codereview.chromium.org/6627019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77012 0039d316-1c4b-4281-b951-d872f2087c98
* Drop "Windows;" from the UA string. This parallels ↵pkasting@chromium.org2011-03-031-8/+8
| | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=54567 and also matches a change in Firefox 4. BUG=none TEST=none Review URL: http://codereview.chromium.org/6581054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76775 0039d316-1c4b-4281-b951-d872f2087c98
* Drop "U;" from the UA string. This parallels ↵pkasting@chromium.org2011-02-241-4/+1
| | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=54566 and also matches a change in Firefox 4. BUG=none TEST=none Review URL: http://codereview.chromium.org/6576043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75955 0039d316-1c4b-4281-b951-d872f2087c98
* Drop the language tag from the UA string. This parallels ↵pkasting@chromium.org2011-02-231-5/+1
| | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=54560 and also matches a change in Firefox 4. BUG=none TEST=none Review URL: http://codereview.chromium.org/6541076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75755 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: expose webkit branch and revision number in about pagesevan@chromium.org2011-01-221-2/+8
| | | | | | | | | | | | | | | - Change lastchange.py to work in other directories and to provide SVN URL. - Use lastchange.py in place where we generate WebKit versioning info. - Include branch@revision string in glue API. BUG=41264 TEST=compiles Review URL: http://codereview.chromium.org/6354014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72245 0039d316-1c4b-4281-b951-d872f2087c98
* base: Get rid of 'using' declaration of StringAppendF.tfarina@chromium.org2010-11-151-2/+2
| | | | | | | | | | | Update the callers to append base:: in the calls to StringAppendF. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/4974001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66116 0039d316-1c4b-4281-b951-d872f2087c98
* webkit: Append base:: in the StringPrintf calls.tfarina@chromium.org2010-09-291-1/+3
| | | | | | | | | | | (Note: This is a TODO in string_util.h) BUG=None TEST=None Review URL: http://codereview.chromium.org/3404027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60885 0039d316-1c4b-4281-b951-d872f2087c98
* Second attempt at landing http://codereview.chromium.org/3214005tommi@chromium.org2010-08-271-0/+119
| | | | | | | | | | | Factoring BuildUserAgent out to a separate lib for GCF can use it. TEST=There should be no functional change. If anything breaks it should be the build. BUG=50788 Review URL: http://codereview.chromium.org/3225003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57717 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 57692 - Factoring BuildUserAgent out to a separate lib for GCF can ↵dmazzoni@chromium.org2010-08-271-115/+0
| | | | | | | | | | | | | | use it. TEST=There should be no functional change. If anything breaks it should be the build. BUG=50788 Review URL: http://codereview.chromium.org/3214005 TBR=tommi@chromium.org Review URL: http://codereview.chromium.org/3275001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57696 0039d316-1c4b-4281-b951-d872f2087c98
* Factoring BuildUserAgent out to a separate lib for GCF can use it.tommi@chromium.org2010-08-271-0/+115
TEST=There should be no functional change. If anything breaks it should be the build. BUG=50788 Review URL: http://codereview.chromium.org/3214005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57692 0039d316-1c4b-4281-b951-d872f2087c98