summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_applications/web_app.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move DownloadFile back to content\browser\download. Only static functions in ↵jam@chromium.org2012-01-311-1/+1
| | | | | | | | | that file are used by chrome. Will move them out in a separate change. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9303021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119862 0039d316-1c4b-4281-b951-d872f2087c98
* Move DownloadFile/DownloadItem/DownloadManager interfaces into ↵jam@chromium.org2011-12-201-1/+2
| | | | | | | | | content/public/browser, and also put them into the content namespace. BUG=98716 Review URL: http://codereview.chromium.org/9004005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115137 0039d316-1c4b-4281-b951-d872f2087c98
* Don't automatically create platform app shortcuts when testing.benwells@chromium.org2011-12-141-0/+11
| | | | | | | | | | | | | Running tests shouldn't create shortcuts all over your desktop. This change prevents this from happening. BUG=None TEST=Manually tested. Review URL: http://codereview.chromium.org/8937021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114429 0039d316-1c4b-4281-b951-d872f2087c98
* Remove custom Task implementations from VisitedLinkMaster and web_app.dcheng@chromium.org2011-12-081-114/+43
| | | | | | | | | | | | | | | | | | | Fairly straightforward conversion except for two things: - VisitedLinkMaster tries to be really clever and used StackVector. I converted it to use a plain old std::string since I don't think the cleverness adds anything. - web_app::CreateShortcut() sole caller doesn't even use the success callback, so it was removed. BUG=none TEST=trybots Do not submit. It's entirely possible we can just delete all the CreateShortcut related goop in web_app. Review URL: http://codereview.chromium.org/8885007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113662 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
* Split BrowserThread into public API and private implementation, step 1.joi@chromium.org2011-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | 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
* Remove the last Chrome include from content downloads code. This moves some ↵jam@chromium.org2011-08-231-3/+3
| | | | | | | | | methods from download_util related to adding a number to the end of a path, and generating a unique filename. BUG=82782 Review URL: http://codereview.chromium.org/7717003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97902 0039d316-1c4b-4281-b951-d872f2087c98
* base: Remove using declaration of MD5Digest now that hunspell was fixed.tfarina@chromium.org2011-08-081-5/+5
| | | | | | | | | | | BUG=None TEST=None R=evan@chromium.org Review URL: http://codereview.chromium.org/7585029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95804 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CommandLine::GetCommandLineString().msw@chromium.org2011-07-201-1/+1
| | | | | | | | | | | | Fix string hackery in net/tools/dump_cache/dump_cache.cc Fix const casts in chrome/installer/util/product.cc and base/process_util_win.cc. BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7386002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93165 0039d316-1c4b-4281-b951-d872f2087c98
* Replace many OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, since most of them ↵chromium@hybridsource.org2011-05-281-3/+3
| | | | | | | | apply to non-linux Unix also. Non-linux Unices tested are the BSDs and Solaris. Review URL: http://codereview.chromium.org/3556009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87156 0039d316-1c4b-4281-b951-d872f2087c98
* Show "About panel" bubble on Windows.jianli@chromium.org2011-05-251-0/+7
| | | | | | | | BUG=none TEST=panel_browser_view_browsertest Review URL: http://codereview.chromium.org/7011015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86712 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ShellIntegrationTest.GetDesktopFileContents.erg@google.com2011-04-061-1/+1
| | | | | | | | | | | (The test failure is harmless, but annoying.) BUG=20587 TEST=unit tests pass TBR=isherman@ TBR= git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80674 0039d316-1c4b-4281-b951-d872f2087c98
* Add the calculated WMClass to generated .desktop files.erg@google.com2011-04-061-8/+23
| | | | | | | | | | | | | (Also modifies it so that we only modify the wmclass_name, and not the wmclass_class because the internal application names aren't meant for display and are very ugly.) BUG=20587 TEST=Verify with xprop that the WM_CLASS of application desktop links mmatches the StartupWMClass key in the desktop file. Review URL: http://codereview.chromium.org/6759076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80656 0039d316-1c4b-4281-b951-d872f2087c98
* Split off web_app's ui into ui files, plumb TCW rather than TC.avi@chromium.org2011-03-241-332/+46
| | | | | | | | | BUG=71097 TEST=none; no visible change Review URL: http://codereview.chromium.org/6672059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79220 0039d316-1c4b-4281-b951-d872f2087c98
* fav icon -> favicon. Pass 5: fav_icon -> faviconavi@chromium.org2011-03-151-1/+1
| | | | | | | | | BUG=76073 TEST=none; no visible change Review URL: http://codereview.chromium.org/6693021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78230 0039d316-1c4b-4281-b951-d872f2087c98
* fav icon -> favicon. Pass 2: GetFavIcon -> GetFaviconavi@chromium.org2011-03-151-1/+1
| | | | | | | | | BUG=76073 TEST=none; no visible change Review URL: http://codereview.chromium.org/6685059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78208 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Gears from Chrome.aa@chromium.org2011-03-111-2/+1
| | | | | | | | | | There are probably a few more bits and pieces that can be removed, but I think this is the majority of it. BUG=51934 Review URL: http://codereview.chromium.org/6576020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77888 0039d316-1c4b-4281-b951-d872f2087c98
* Update a bunch of files to the new location of notification files.tfarina@chromium.org2011-03-091-5/+5
| | | | | | | | | | | Fourth part of the remaining files. The last one will be deleting the stub files. BUG=None TEST=None Review URL: http://codereview.chromium.org/6657003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77511 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor GetCommandLineArgumentsCommon to not use strings.evan@chromium.org2011-03-081-7/+12
| | | | | | | | | | | | | | | | | Passing around command lines as strings is dangerous, because a given command line is interpretable only with respect to a given parser. This changes a function to instead pass a CommandLine object for carrying the arguments around, and relies on the callers to stringify that as necessary. It turns out that the Linux desktop file format has a well-defined syntax that is different than the syntax we were using. BUG=69467 Review URL: http://codereview.chromium.org/6624072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77338 0039d316-1c4b-4281-b951-d872f2087c98
* Extension ids are ASCII.evan@chromium.org2011-03-041-2/+2
| | | | | | | | This is preliminary cleanup for a larger change. Review URL: http://codereview.chromium.org/6613032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76941 0039d316-1c4b-4281-b951-d872f2087c98
* Update a bunch of files to the new location of browser_thread.h jam@chromium.org2011-03-011-2/+2
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6591066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76390 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-1/+1
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* Set Browser::app_name_ in a reasonable way for extension apps.skerner@chromium.org2011-01-141-17/+50
| | | | | | | | | BUG=67702 TEST=BrowserTest.OpenAppWindowLikeNtp,BrowserTest.AppIdSwitch,manually open a few apps and see that windows taskbar hilights the right window. Review URL: http://codereview.chromium.org/6086004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71442 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/thread.h to base/threading, fix up callers to use the new location.brettw@chromium.org2011-01-011-1/+1
| | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/win_util to the base/win directory and use the base::win namespace.brettw@google.com2010-12-311-1/+1
| | | | | | | | | Fix up includes, many files including base/win_util don't actually need it. TEST=it compiles BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70341 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded includes of notification_service.h.thestig@chromium.org2010-12-171-1/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5875005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69507 0039d316-1c4b-4281-b951-d872f2087c98
* Move:ben@chromium.org2010-12-021-1/+1
| | | | | | | | | | | | | | | file_path_watcher into subdir profile* into profiles/ subdir login* into ui/login visitedlink* into subdir BUG=none TEST=none TBR=brettw Review URL: http://codereview.chromium.org/5606002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68069 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Implement web app definition parsing.""aa@chromium.org2010-11-171-7/+5
| | | | | | | | This reverts commit 8d410ce0aae7acbbcd816425ba49e79d8d7b9a1d. TBR=aa@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66398 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Implement web app definition parsing."aa@chromium.org2010-11-171-5/+7
| | | | | | | | This reverts commit 24e3962db61243eea4976bead441c6206cd4f21e. TBR=aa@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66394 0039d316-1c4b-4281-b951-d872f2087c98
* Implement web app definition parsing.aa@chromium.org2010-11-171-7/+5
| | | | | | | | | | | | | This required moving some code from webkit/glue to chrome/common/web_apps.cc so that it could rely on chrome/common/json_schema_validator.h. BUG=49233 TEST=Convered by unit tests. Review URL: http://codereview.chromium.org/4979003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66386 0039d316-1c4b-4281-b951-d872f2087c98
* Move windows version-related stuff out of base/win_util and into ↵brettw@chromium.org2010-10-151-4/+5
| | | | | | | | | | | | | | base/win/windows_version. Many files now only need to include this instead of all of win_util. Remove a bunch of unused code from base/win_util. There was a surprising amount. Replace the AppUserModel property key with the one from the SDK now that we use the Win7 SDK. Move GetLogonSessionOnlyDACL from win_util to ipc since it's only used in that one place. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62694 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part22:tfarina@chromium.org2010-10-121-1/+1
| | | | | | | | | | | | | | | | - Include browser_thread instead of chrome_thread in more 97 files. Now the remaining files that are including chrome_thread.h are: chrome_thread.cc and browser_thread.h. They will be fixed next. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3717004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62312 0039d316-1c4b-4281-b951-d872f2087c98
* Rename ChromeThread to BrowserThread Part3:tfarina@chromium.org2010-10-071-9/+9
| | | | | | | | | | | | - Rename entries under task_manager, themes, views, web_applications, web_resource, webdata and worker_host. BUG=56926 TEST=trybots Review URL: http://codereview.chromium.org/3579014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61756 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a bunch of clang warnings/errors.thakis@chromium.org2010-09-211-1/+3
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/3473006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60109 0039d316-1c4b-4281-b951-d872f2087c98
* Submitting for Erik:tommi@chromium.org2010-08-261-0/+1
| | | | | | | | | | | | | | | | | | | (http://codereview.chromium.org/3167040/show) In IE8, on Vista, when the user deletes their browsing data, the IDeleteBrowsingHistory interface is invoked twice - once in a low integrity process and once in a medium integrity process. Only the medium integrity process may succeed, but the low integrity process will restart the automation server after failing to connect to it. Upon invocation by IE, check the integrity level of the current process - if it is low, exit. GetProcessIntegrityLevel was adapted from rlz. A follow-up changeset will modify rlz to use this implementation. During editing, some unnecessary headers were removed from win_util.h and correspondingly added to win_util.cc and certain clients who were depending on transient includes. BUG=56212 TEST=Load some pages using Chrome Frame. Close IE. Verify that the Chrome Frame cache has grown and that the accessed domains appear in the history files. Launch IE, load a page using Chrome Frame. Delete Browsing Data. Note that the tab does not crash, that the on-disk cache files shrink, and that the accessed domains no longer appear in the history file Review URL: http://codereview.chromium.org/3171033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57567 0039d316-1c4b-4281-b951-d872f2087c98
* Make prefs use std::string for keys rather than wstrings.viettrungluu@chromium.org2010-08-111-4/+4
| | | | | | | | | | | Much remains to be converted. BUG=23581 TEST=builds and passes tests Review URL: http://codereview.chromium.org/3076037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55660 0039d316-1c4b-4281-b951-d872f2087c98
* base: Rename EnvVarGetter to Environment.tfarina@chromium.org2010-08-031-3/+3
| | | | | | | | | | | | | | | Now EnvVarGetter do much more than getting environment variables. Per suggestion from Pawel in http://codereview.chromium.org/3043018/. BUG=None TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3052034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54696 0039d316-1c4b-4281-b951-d872f2087c98
* file_util: Get rid of file_util::AppendToPath in icon_util_unittest.cctfarina@chromium.org2010-07-301-1/+1
| | | | | | | | | | | | | | Use AppendASCII from FilePath API instead of the deprecated AppendToPath function. BUG=24672 TEST=trybots Signed-off-by: Thiago Farina <tfarina@chromium.org> Review URL: http://codereview.chromium.org/3046020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54311 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for chrome/browser/web_applications and mark some code as Win32 ↵thestig@chromium.org2010-06-251-5/+5
| | | | | | | | | | and/or Views only. (TTF) BUG=none TEST=included. Review URL: http://codereview.chromium.org/2826019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50897 0039d316-1c4b-4281-b951-d872f2087c98
* Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in ↵ajwong@chromium.org2010-06-161-5/+1
| | | | | | | | | | | RunnableMethods easier. BUG=none TEST=none Review URL: http://codereview.chromium.org/2830006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
* Win: Use different AppUserModelID for SxS installs.mattm@chromium.org2010-06-111-2/+2
| | | | | | | | | BUG=44572 TEST=see bug Review URL: http://codereview.chromium.org/2616002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49477 0039d316-1c4b-4281-b951-d872f2087c98
* Allow "chrome-extension://" to be used as web app url.xiyuan@chromium.org2010-05-261-0/+1
| | | | | | | | | BUG=29201 TEST=Verify a web app shortcut for "chrome-extension://" url could be created. Review URL: http://codereview.chromium.org/2193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48294 0039d316-1c4b-4281-b951-d872f2087c98
* Use FilePath::DirName instead of the deprecated file_util::GetDirectoryFromPath.tfarina@chromium.org2010-05-241-4/+4
| | | | | | | | | BUG=24672 TEST=compiles Review URL: http://codereview.chromium.org/2110021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48014 0039d316-1c4b-4281-b951-d872f2087c98
* Move EnvironmentVariableGetter from base/linux_util.h to base/env_var.h and ↵thestig@chromium.org2010-04-031-4/+3
| | | | | | | | | | rename it EnvVarGetter. Label base::SysInfo::{Get,Has}EnvVar as deprecated. BUG=none TEST=none Review URL: http://codereview.chromium.org/1606007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43559 0039d316-1c4b-4281-b951-d872f2087c98
* Append a number to make app shortcut name unique.xiyuan@chromium.org2010-03-261-4/+23
| | | | | | | | | | | | - Move DownloadManager's unique path helpers into download utils; - Use those functions to make shortcut file name unqiue. BUG=642 TEST=Verify fixes for issue 642. Review URL: http://codereview.chromium.org/1276003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42769 0039d316-1c4b-4281-b951-d872f2087c98
* Create a toplevel gfx/ dir and seed it with icon_util.ben@chromium.org2010-03-131-1/+1
| | | | | | | | | | TBR=darin BUG=none TEST=none Review URL: http://codereview.chromium.org/915002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41528 0039d316-1c4b-4281-b951-d872f2087c98
* Fix build. linux_util.h caused a weird compile error when #included on Windows.phajdan.jr@chromium.org2010-03-121-1/+4
| | | | | | | | | | TBR=evan BUG=30785 TEST=none Review URL: http://codereview.chromium.org/874005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41427 0039d316-1c4b-4281-b951-d872f2087c98
* Add missing tests for Linux desktop shortcuts logic.phajdan.jr@chromium.org2010-03-121-1/+7
| | | | | | | | | | | | | | | This also makes the code use EnvironmentVariableGetter instead of calling getenv directly because we need the control in tests. This is a follow-up after http://codereview.chromium.org/607001 TEST=ShellIntegrationTest.GetDesktopShortcutTemplate BUG=30785 Review URL: http://codereview.chromium.org/798002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41423 0039d316-1c4b-4281-b951-d872f2087c98
* Use web app icon as ICON_BIG for Windowsxiyuan@chromium.org2010-03-081-0/+1
| | | | | | | | | | | | | | | | | - Add a WindowDelegate::GetWindowAppIcon for BrowserView to expose an icon to use as ICON_BIG; - Add an app_icon_ memeber and accessor functions to TabContents; - Update/Set the app_icon_ of TabContents when web app icon is downloaded for converting a tab to app or for chrome web app shortcuts update (this happens when chrome is opened as an app; - Use the app icon as ICON_BIG in WindowWin::UpdateWindowIcon; BUG=32039 TEST=Verify fix for issue 32039 and also Alt-Tab list on XP/Vista uses big icon. Review URL: http://codereview.chromium.org/668265 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40962 0039d316-1c4b-4281-b951-d872f2087c98
* chrome 3: string_util.h -> utf_string_conversions.h fix.jhawkins@chromium.org2010-03-081-1/+5
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/671014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40959 0039d316-1c4b-4281-b951-d872f2087c98