summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_apitest.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix PrerenderBrowserTestWithExtensions.WebNavigation test.davidben@chromium.org2013-10-291-0/+5
| | | | | | | | | | | | | | | | | It got broken after it was disabled. Fix it and bring its disabled configs in line with other extension browser_test flakes. This is on the theory that this is the only source of the flake. If the test still fails, it can be disabled again. Also remove a chrome.tabs.update call in PrerenderBrowserTestWithExtensions.TabsApi that wasn't doing anything. BUG=177163,249179 TEST=PrerenderBrowserTestWithExtensions.* Review URL: https://codereview.chromium.org/28273007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231451 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Use std::string in ExtensionApiTest.thestig@chromium.org2013-09-241-12/+15
| | | | | | Review URL: https://chromiumcodereview.appspot.com/23531076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224891 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: convert some tests in chrome to use EmbeddedTestServer patch nr 1phajdan.jr@chromium.org2013-06-261-1/+1
| | | | | | | | | | | | This eliminates a whole class of problems with SpawnedTestServer failing to start. BUG=96594, 98194 R=asargent@chromium.org, rsleevi@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/16268017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208784 0039d316-1c4b-4281-b951-d872f2087c98
* Begin to merge dup code for embedder in webview tests.lazyboy@chromium.org2013-06-131-0/+5
| | | | | | | | BUG=244912 Review URL: https://chromiumcodereview.appspot.com/15998003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206139 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: rename net::TestServer -> net::SpawnedTestServerphajdan.jr@chromium.org2013-05-031-1/+1
| | | | | | | | | | | | This is a part of replacing most usages of the Python test server with an in-process C++ test server that should be easier to debug. BUG=96594 R=rch@chromium.org Review URL: https://codereview.chromium.org/14702004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198151 0039d316-1c4b-4281-b951-d872f2087c98
* Add FilePath to base namespace.brettw@chromium.org2013-02-021-2/+3
| | | | | | | This updates headers that forward-declare it and a few random places to use the namespace explicitly. There us a using declaration in file_path.h that makes the rest compile, which we can do in future passes. Review URL: https://codereview.chromium.org/12163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180245 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 170660benwells@chromium.org2012-12-041-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change causes shutdown crashes when chrome menu is used to exit. > Keep browser process alive while there are platform apps with background pages running. This does not happen on Android or ChromeOS builds: Android does not support browser process keep alive, and ChromeOS does not need or like it. > > This change prevents platform apps getting killed unceremoniously while they have background pages active. > > This also delays the process being shutdown after closing the last platform app window, as background pages are kept alive for 15 seconds after their last activity is completed. > > This change re-lands r165772 which caused problems on Google branded ChromeOS. This version does not add keep alives for ChromeOS and was tested on the ChromeOS try bots. > > TBR=davemoore@chromium.org for the ash launcher test change. > > BUG=155457 > TEST=Make sure platform apps can be used from the launcher without chrome windows open; make sure Chrome shuts down properly in all cases. > > > Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165772 > > Review URL: https://chromiumcodereview.appspot.com/11117011 TBR=benwells@chromium.org Review URL: https://codereview.chromium.org/11299326 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170891 0039d316-1c4b-4281-b951-d872f2087c98
* Keep browser process alive while there are platform apps with background ↵benwells@chromium.org2012-12-011-1/+7
| | | | | | | | | | | | | | | | | | | | | | pages running. This does not happen on Android or ChromeOS builds: Android does not support browser process keep alive, and ChromeOS does not need or like it. This change prevents platform apps getting killed unceremoniously while they have background pages active. This also delays the process being shutdown after closing the last platform app window, as background pages are kept alive for 15 seconds after their last activity is completed. This change re-lands r165772 which caused problems on Google branded ChromeOS. This version does not add keep alives for ChromeOS and was tested on the ChromeOS try bots. TBR=davemoore@chromium.org for the ash launcher test change. BUG=155457 TEST=Make sure platform apps can be used from the launcher without chrome windows open; make sure Chrome shuts down properly in all cases. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165772 Review URL: https://chromiumcodereview.appspot.com/11117011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170660 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r165772: Keep browser process alive while there are platform apps ↵davidjames@google.com2012-11-081-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | with background pages running. Change r165772 broke logout on official Chrome OS, such that Chrome crashes every time you log out. This was caught by our bots which immediately started failing every time, starting with r165772. I tested this change on Chrome OS bots and confirmed that the Chrome OS bots were fixed. TBR=benwells@chromium.org BUG=chromium:155457, chromium-os:36058 TEST=Run Chrome and Chrome OS trybots on several architectures. Verify Chrome OS build is reliable now and that all Chrome browser tests still pass. Original CL description: This change prevents platform apps getting killed unceremoniously while they have background pages active. This also delays the process being shutdown after closing the last platform app window, as background pages are kept alive for 15 seconds after their last activity is completed. Review URL: https://codereview.chromium.org/11275209 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166715 0039d316-1c4b-4281-b951-d872f2087c98
* Keep browser process alive while there are platform apps with background ↵benwells@chromium.org2012-11-021-1/+7
| | | | | | | | | | | | | | | | | | pages running. This change prevents platform apps getting killed unceremoniously while they have background pages active. This also delays the process being shutdown after closing the last platform app window, as background pages are kept alive for 15 seconds after their last activity is completed. TBR=davemoore@chromium.org for the ash launcher test change. BUG=155457 TEST=Make sure platform apps can be used from the launcher without chrome windows open; make sure Chrome shuts down properly in all cases. Review URL: https://chromiumcodereview.appspot.com/11117011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165772 0039d316-1c4b-4281-b951-d872f2087c98
* PlatformAppApiTest class should not enable experimental APIs by defaultasargent@chromium.org2012-10-151-10/+0
| | | | | | | | | | | | | Now that some of our APIs are out of experimental, the ones still in experimental should append the command line individually in their tests as needed. BUG=155430 Review URL: https://chromiumcodereview.appspot.com/11145006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162004 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket test server migration on ExtensionApiTest.WebSocket (fourth trial)toyoshim@chromium.org2012-10-131-5/+1
| | | | | | | | | | | | | | | | | | | | | | WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_tests --gtest_filter='ExtensionApiTest.WebSocket' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161304 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161542 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161572 Review URL: https://chromiumcodereview.appspot.com/11087027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161773 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 161572 - WebSocket test server migration on ↵mrossetti@chromium.org2012-10-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | ExtensionApiTest.WebSocket (third trial) WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161304 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161542 Review URL: https://chromiumcodereview.appspot.com/11087027 TBR=toyoshim@chromium.org Review URL: https://codereview.chromium.org/11115011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161575 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket test server migration on ExtensionApiTest.WebSocket (third trial)toyoshim@chromium.org2012-10-121-5/+1
| | | | | | | | | | | | | | | | | | | | WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161304 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161542 Review URL: https://chromiumcodereview.appspot.com/11087027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161572 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 161542 - WebSocket test server migration on ↵kochi@chromium.org2012-10-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | ExtensionApiTest.WebSocket (retry) WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161304 Review URL: https://chromiumcodereview.appspot.com/11087027 TBR=toyoshim@chromium.org Review URL: https://codereview.chromium.org/11114015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161549 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket test server migration on ExtensionApiTest.WebSocket (retry)toyoshim@chromium.org2012-10-121-5/+1
| | | | | | | | | | | | | | | | | | WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161304 Review URL: https://chromiumcodereview.appspot.com/11087027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161542 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 161304 - WebSocket test server migration on ExtensionApiTest.WebSockettoyoshim@chromium.org2012-10-111-1/+5
| | | | | | | | | | | | | | | | | | | WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Review URL: https://chromiumcodereview.appspot.com/11087027 TBR=toyoshim@chromium.org Review URL: https://codereview.chromium.org/11091059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161308 0039d316-1c4b-4281-b951-d872f2087c98
* WebSocket test server migration on ExtensionApiTest.WebSockettoyoshim@chromium.org2012-10-111-5/+1
| | | | | | | | | | | | | | | | WebSocket test server migration from content::TestWebSocketServer to net::TestServer. This is the first change to use net::TestServer as a WebSocket test server. Other changes will follow to obsoelte content::TestWebSocketServer. BUG=137639 TEST=browser_test --gtest_filter='ExtensionApiTest.WebSocket' Review URL: https://chromiumcodereview.appspot.com/11087027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161304 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow packing or loading unpacked manifest v1 extensions.aa@chromium.org2012-09-021-4/+11
| | | | | | | | | BUG=132718 Review URL: https://chromiumcodereview.appspot.com/10912041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154637 0039d316-1c4b-4281-b951-d872f2087c98
* Check for warnings when loading extensions in browser tests.mihaip@chromium.org2012-08-101-1/+8
| | | | | | | | | Test extension should be well-formed. Having warnings is often an early indicator that something else is wrong (see for example https://chromiumcodereview.appspot.com/10852016/). Review URL: https://chromiumcodereview.appspot.com/10826157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151123 0039d316-1c4b-4281-b951-d872f2087c98
* Move TestWebSocketServer from ui_test_utils.h to browser_test_utils.h since ↵jam@chromium.org2012-07-241-4/+5
| | | | | | | | | it'll be used by worker_browsertest.cc inside content_browsertests. BUG=90448 Review URL: https://chromiumcodereview.appspot.com/10796110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148139 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Fix extension event name for managedModePrivate.onChange (whoops).bauerb@chromium.org2012-06-041-1/+2
| | | | | | | | | | | | Add an API test for the event. BUG=120635 TEST=ExtensionApiTest.ManagedModeOnChange Review URL: https://chromiumcodereview.appspot.com/10447141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140298 0039d316-1c4b-4281-b951-d872f2087c98
* Move Extension into extensions namespaceaa@chromium.org2012-05-211-4/+7
| | | | | | | | | BUG=117262 TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/10375021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138074 0039d316-1c4b-4281-b951-d872f2087c98
* Switch platform apps from a declarative launch container to handling an ↵asargent@chromium.org2012-04-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | onLaunched event. Platform apps must now have a background page. For the handling of launches, the background page registers an onLaunched event handler, and creates UI as appropriate via the chrome.windows.* API. Updates all tests to use the new window model. Also makes created shell window respect the bounds that were passed into the chrome.windows.create() call. Also fixes bug by resizing windows in PlatformAppBrowserTest.WindowsApi to a size that matches the Aura grid. This CL was originally written by mihaip@chromium.org - the original is: http://codereview.chromium.org/9969087/ TBR=mihaip@chromium.org BUG=119410 TEST=Platform apps should now require a background page. Review URL: https://chromiumcodereview.appspot.com/10080017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133555 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure app bundles can be installed from incognito windows.jstritar@chromium.org2012-04-061-0/+1
| | | | | | | | | | BUG=122414 TEST=ExtensionWebstorePrivateBundleTest.InstallBundleIncognito Review URL: http://codereview.chromium.org/10008062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131213 0039d316-1c4b-4281-b951-d872f2087c98
* Eliminate VerifyPermissions. Propagate --enable-platform-apps to utility ↵miket@chromium.org2012-03-291-8/+1
| | | | | | | | | | | | | | | process. VerifyPermissions was replaced with something simpler in http://codereview.chromium.org/9867003/, and another simple browser test in chrome/browser/extensions/crx_installer_browsertest.cc. We weren't copying --enable-platform-apps to the utility process that unzipped CRX files, so it wasn't able to load platform app CRXes. BUG=120075, also in-person reported during hackathon TEST=added (and refactored others) Review URL: https://chromiumcodereview.appspot.com/9839106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129556 0039d316-1c4b-4281-b951-d872f2087c98
* Expand usage of platform-apps flag and permission features.miket@chromium.org2012-03-251-0/+17
| | | | | | | | | | | | | Reapplication of http://codereview.chromium.org/9837045/. BUG=119758 TEST=added TBR=asargent@chromium.org,jstritar@chromium.org Review URL: http://codereview.chromium.org/9839105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128838 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128610 - Expand usage of platform-apps flag and permission features.nduca@google.com2012-03-241-17/+0
| | | | | | | | | | | | | | | Reapplication of http://codereview.chromium.org/9834022/ with the VerifyPermissions test #ifdefed out for Windows. BUG=119758 TEST=added Review URL: https://chromiumcodereview.appspot.com/9837045 TBR=miket@chromium.org Review URL: https://chromiumcodereview.appspot.com/9808096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128620 0039d316-1c4b-4281-b951-d872f2087c98
* Expand usage of platform-apps flag and permission features.miket@chromium.org2012-03-231-0/+17
| | | | | | | | | | | | Reapplication of http://codereview.chromium.org/9834022/ with the VerifyPermissions test #ifdefed out for Windows. BUG=119758 TEST=added Review URL: https://chromiumcodereview.appspot.com/9837045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128610 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash in AppNotifyChannelSetup when incognito profiles are used.jstritar@chromium.org2012-03-231-22/+24
| | | | | | | | | BUG=118258 TEST=see bug Review URL: http://codereview.chromium.org/9737001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128560 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128355 - Expand usage of platform-apps flag and permission features.gman@chromium.org2012-03-231-17/+0
| | | | | | | | | | | | | BUG=none TEST=added Review URL: http://codereview.chromium.org/9834022 TBR=miket@chromium.org Review URL: https://chromiumcodereview.appspot.com/9834038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128377 0039d316-1c4b-4281-b951-d872f2087c98
* Expand usage of platform-apps flag and permission features.miket@chromium.org2012-03-231-0/+17
| | | | | | | | | | BUG=none TEST=added Review URL: http://codereview.chromium.org/9834022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128355 0039d316-1c4b-4281-b951-d872f2087c98
* Enable ExtensionApiTest.WebSocket with using a random port for WebSocket servertoyoshim@chromium.org2012-03-201-0/+13
| | | | | | | | | | | | | | This test was flaky. It must come from the server port confliction. Now, other WebSocket tests use a random port for WebSocket server. This test also must follow them. BUG=118460 TEST=browser_tests --gtest_filter='ExtensionApiTest.WebSocket' Review URL: http://codereview.chromium.org/9716001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127596 0039d316-1c4b-4281-b951-d872f2087c98
* Check file permissions before doing filesystemoperations for external ↵tbarzic@chromium.org2012-03-011-0/+4
| | | | | | | | | | | | filesystem files. BUG=chromium-os:26673 TEST=*FileBrowser* Review URL: http://codereview.chromium.org/9465001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124366 0039d316-1c4b-4281-b951-d872f2087c98
* Disable modal JavaScript dialogs for platform apps.jstritar@chromium.org2012-01-241-3/+12
| | | | | | | | | | | | | - window.alert is silently ignored - window.confirm returns false - window.prompt returns null BUG=none TEST=PlatformAppBrowserTest.DisallowModalDialogs Review URL: https://chromiumcodereview.appspot.com/9195018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118874 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly report new navigation targets in incognito profilesjochen@chromium.org2012-01-021-1/+9
| | | | | | | | | | BUG=107147 TEST=browser_tests:ExtensionApiTest.WebNavigationTargetBlank* Review URL: http://codereview.chromium.org/9028005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116101 0039d316-1c4b-4281-b951-d872f2087c98
* Move NotificationObserver, NotificationSource, and NotificationDetails to ↵jam@chromium.org2011-10-191-5/+5
| | | | | | | | | | | content/public/browser. This patch got way bigger than I wanted, but once I moved NotificationDetails, I figured I might as well mvoe the others since they're in the same files. In hindsight, I should have converted a subset of files at a time by leaving a using statement in the header. BUG=98716 TBR=joi git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106196 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete TODO and add a bunch of OVERRIDEs.mihaip@chromium.org2011-08-311-4/+5
| | | | | | | | | R=aa@chromium.org Review URL: http://codereview.chromium.org/7806009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99070 0039d316-1c4b-4281-b951-d872f2087c98
* Moving notification types which are chrome specific to a new header file ↵ananta@chromium.org2011-07-101-1/+1
| | | | | | | | | | | | | chrome_notification_types.h. This file lives in chrome\common. The chrome specific notifications start from NOTIFICATION_CONTENT_END which defines the end of the enum used by content to define notification types. The notificaton_type.h file in content\common has been renamed to content_notification_types.h BUG=76698 Review URL: http://codereview.chromium.org/7327007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91972 0039d316-1c4b-4281-b951-d872f2087c98
* Add tests for chrome.tabs.captureVisibleTab working for file:/// URLs.mihaip@chromium.org2011-06-161-0/+4
| | | | | | | | | | | | | | | | | These tests were originally in http://codereview.chromium.org/6696090 (which never got landed). The actual behavior was fixed with r80213, but we didn't have a test case for bug 76816. Getting the tests to pass involved some ExtensionBrowserTest tweaks, since unpacked extensions default to always allowing file:/// access, but we want to disallow that for some tests. BUG=76816 TEST=no R=mpcomplete@chromium.org Review URL: http://codereview.chromium.org/7155012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89340 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual destructors should have virtual keyword.hans@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | | | | | | Make sure user-declared virtual destructors always have the virtual keyword. The Clang style-check plugin will check for this soon. No functionality change: virtual is only added to destructors that are already implicitly virtual. Also fix a couple of in-line destructor definitions. BUG=83408 TEST=none Review URL: http://codereview.chromium.org/7064033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
* Private API for extensions like ssh-client that need access to ↵dilmah@chromium.org2011-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | websocket-to-tcp proxy. Access to TCP is obtained in following way: (1) extension requests authentication token via call to private API like: chrome.webSocketProxyPrivate.getPassportForTCP('netbsd.org', 25, callback); if API validates this request then extension obtains some string token (in callback). (2) open websocket connection to local websocket-to-tcp proxy ws://127.0.0.1:10101/tcpproxy (3) pass header containing hostname, port and token obtained at step (1) (4) communicate (in base64 encoding at this moment). Proxy (running in chrome process) verifies those tokens by calls to InternalAuthVerification::VerifyPassport Passports are one-time; no passport can be reused. Passports expire in short period of time (20 seconds). BUG=chromium-os:9667 TEST=unit_test,apitest Review URL: http://codereview.chromium.org/6683060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85757 0039d316-1c4b-4281-b951-d872f2087c98
* Added extensions API to provide customization values.altimofeev@chromium.org2011-03-241-1/+5
| | | | | | | | | | | | This CL adds API that could be used only by component extensions. Currently, API only returns device's HWID. BUG=chromium-os:13076 TEST=browser_tests Review URL: http://codereview.chromium.org/6681038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79264 0039d316-1c4b-4281-b951-d872f2087c98
* Exposing extension preferences via the `chrome.extension` API.bauerb@chromium.org2011-03-161-1/+8
| | | | | | | | | | | `chrome.extension.isAllowedIncognitoAccess` gives access to `chrome://extension`'s "Allowed in Incognito" checkbox's state, and `chrome.extension.isAllowedFileSchemeAccess` does the same for "Allow access to File URLs". Patch by Mike West <mkwst@google.com>. BUG=74694 TEST=Create an extension that checks whether 'Allow in Incognito' or 'Allow access to File URLs' is checked. It should work correctly. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78347 0039d316-1c4b-4281-b951-d872f2087c98
* Update a bunch of files to the new location of notification files.tfarina@chromium.org2011-03-081-1/+1
| | | | | | | | | | | First part of the remaining files. BUG=None TEST=None Review URL: http://codereview.chromium.org/6649001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77330 0039d316-1c4b-4281-b951-d872f2087c98
* Continuing with the out-of-lining of test code.erg@google.com2011-02-111-0/+4
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6485015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74660 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded includes of notification_registrar.h.thestig@chromium.org2011-01-271-1/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6309018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72874 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded includes of notification_service.h in other headers.thestig@chromium.org2010-12-151-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5783006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69321 0039d316-1c4b-4281-b951-d872f2087c98
* Part 3 of immutable Extension refactor.mpcomplete@chromium.org2010-10-291-1/+1
| | | | | | | | | | | | | Make ExtensionsService hold const Extension pointers only. This ensures that extensions can't be modified after they're created, and lets us share them between threads. BUG=56558 TEST=no functional change Review URL: http://codereview.chromium.org/4138006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64517 0039d316-1c4b-4281-b951-d872f2087c98