summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_util.cc
Commit message (Collapse)AuthorAgeFilesLines
* TabContentsWrapper -> TabContents, part 6.avi@chromium.org2012-06-081-11/+12
| | | | | | | | | | | | Automation. BUG=131026 TEST=no change Review URL: https://chromiumcodereview.appspot.com/10536058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141127 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of the RenderViewType concept in content, since it was only used by ↵jam@chromium.org2012-05-231-3/+3
| | | | | | | | | Chrome. Store the enum value in the WebContents' property bag. BUG=98716 Review URL: https://chromiumcodereview.appspot.com/10409088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138434 0039d316-1c4b-4281-b951-d872f2087c98
* Move Extension into extensions namespaceaa@chromium.org2012-05-211-4/+4
| | | | | | | | | 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
* Remove EPM:all_hosts_ and use all_extension_views_ instead.benwells@chromium.org2012-04-261-10/+12
| | | | | | | | | | | | | | | | EPM:all_hosts_ is used to look for extension render view hosts, under the assumption it has all of them. This assumption is wrong, and the name is confusing, so we're removing all_hosts_. A different container can be used: all_extension_views, which contains all the RenderViewHosts for extensions. BUG=102617 TEST=Covered by existing tests Review URL: http://codereview.chromium.org/10113005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134028 0039d316-1c4b-4281-b951-d872f2087c98
* Update net/base/cookie_*.h includes to net/cookies/cookie_*.h .erikwright@chromium.org2012-03-151-2/+2
| | | | | | | | | | | | Once complete, forwarding headers will be removed from net/base/ . TEST=none R=willchan Review URL: http://codereview.chromium.org/9703062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126999 0039d316-1c4b-4281-b951-d872f2087c98
* Add print preview constrained windows to the list of views that WebDriver cankkania@chromium.org2012-03-081-0/+15
| | | | | | | | | | | interact with. BUG=chromedriver:19 TEST=none Review URL: http://codereview.chromium.org/9602024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125703 0039d316-1c4b-4281-b951-d872f2087c98
* Move Render(View|Widget)Host and associated classes to content namespace.joi@chromium.org2012-03-071-0/+1
| | | | | | | | | TBR=jam@chromium.org BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9600036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125388 0039d316-1c4b-4281-b951-d872f2087c98
* Move RenderWidgetHost and RenderViewHost interfaces to their own files.joi@chromium.org2012-03-061-2/+2
| | | | | | | | | | | This also finishes breaking the Chrome dependency on RenderWidgetHostImpl and RenderViewHostImpl. TBR=jam@chromium.org BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9599011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125166 0039d316-1c4b-4281-b951-d872f2087c98
* Extract minimal RenderViewHost interface for embedders, leavingjoi@chromium.org2012-03-051-1/+1
| | | | | | | | | | | | RenderViewHostImpl for content. TBR=darin@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/9473001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124941 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup extension permissions module.jstritar@chromium.org2012-01-061-1/+2
| | | | | | | | | | | | | | - renames ExtensionPermissionsManager to extensions::PermissionsUpdater - PermissionsUpdaters are now created on demand (vs one per ExtensionService) - move some includes into the *.cc files - moves a couple common methods to extension_permissions_api_helpers.cc BUG=none TEST=existing Review URL: http://codereview.chromium.org/8493017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116673 0039d316-1c4b-4281-b951-d872f2087c98
* Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers.jam@chromium.org2012-01-041-10/+10
| | | | | | | | BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9085006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116322 0039d316-1c4b-4281-b951-d872f2087c98
* Convert chrome users of NavigationController::tab_contents() to use ↵jam@chromium.org2012-01-021-4/+5
| | | | | | | | | | GetWebContents() instead. BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/8986009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116086 0039d316-1c4b-4281-b951-d872f2087c98
* Rename TabContents::browser_context() to GetBrowserContext and put it into ↵jam@chromium.org2011-12-211-1/+1
| | | | | | | | | the WebContents interface. BUG=98716 Review URL: http://codereview.chromium.org/9021022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115435 0039d316-1c4b-4281-b951-d872f2087c98
* Rename TabContents::render_view_host() to GetRenderViewHost and put it into ↵jam@chromium.org2011-12-201-2/+2
| | | | | | | | | the WebContents interface. BUG=98716 Review URL: http://codereview.chromium.org/9007026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115200 0039d316-1c4b-4281-b951-d872f2087c98
* Have ChromeDriver return the correct error code for alerts.kkania@chromium.org2011-12-161-2/+2
| | | | | | | | | | | | Also, don't throw an alert error in set selected if the selection causes an alert. BUG=94959 TEST=none Review URL: http://codereview.chromium.org/8965008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114874 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused view_type determination code from automation_util.cc.kkania@chromium.org2011-12-071-15/+0
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8771065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113320 0039d316-1c4b-4281-b951-d872f2087c98
* Allow AutomationProvider to work with other render view containers besideskkania@chromium.org2011-12-051-0/+173
| | | | | | | | | | | | tabs, particularly extension bg pages, infobars, and popups. This is needed to enable WebDriver to work with these views. BUG=93571 TEST=none Review URL: http://codereview.chromium.org/8790003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113023 0039d316-1c4b-4281-b951-d872f2087c98
* Define the public interface for content browser RenderProcessHost. This ↵ananta@chromium.org2011-11-181-1/+1
| | | | | | | | | | | | | | | interface is implemented by the RenderProcessHostImpl class which lives in content\browser\renderer_host\render_process_host_impl.cc/.h. The RenderProcessHostImpl class is a consolidation of the RenderProcessHost and BrowserRenderProcessHost classes. The RenderProcessHost public interface was created from the now deleted RenderProcessHost class defined in content\browser\renderer_host\render_process_host.h. Additional methods have been added to the interface to ensure that it works correctly with the MockRenderProcessHost class used by unit tests. I had to implement a number of overrides in the MockRenderProcessHost class to ensure that tests work correctly. This was because of assumptions in the tests that the MockRPH class was a real RPH which it was till now. Added a TODO for the methods which could potentially be removed from this interface. Will revisit that in a subsequent CL. BUG=98716 TEST=No change in functionality. Hopefully it all compiles and works. Review URL: http://codereview.chromium.org/8515027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110615 0039d316-1c4b-4281-b951-d872f2087c98
* CookieMonster: Store expiration time also for session cookies.marja@chromium.org2011-11-101-1/+1
| | | | | | | | | | | | | This enables short-lived session-only cookies which get deleted as soon as they expire, not only when the session ends. Short-lived session-only cookies are created e.g., when content settings allow only session-only cookies. BUG=NONE TEST=CookieMonsterTest.ShortLivedSessionCookies Review URL: http://codereview.chromium.org/8507006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109415 0039d316-1c4b-4281-b951-d872f2087c98
* Remove needless include of the content/browser/render_process_host.h header ↵ananta@chromium.org2011-11-041-1/+0
| | | | | | | | | | | file. Part 1 of upcoming changes to move RPH/BRPH to a public interface. BUG=98716 Review URL: http://codereview.chromium.org/8451012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108608 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
* base::Bind: Cleanup in automation.jhawkins@chromium.org2011-10-171-19/+15
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8212006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105761 0039d316-1c4b-4281-b951-d872f2087c98
* Third try at committing this.erikwright@chromium.org2011-09-131-1/+1
| | | | | | | | | | | | | | | | | | Patchset 1 is the original patch ( http://codereview.chromium.org/7833042/ ). Patchset 2 is the original patch plus a fix to a memory leak from the initial commit ( http://codereview.chromium.org/7831056/ ) On the first try there was a memory leak in a test. I fixed that, but made a mistake in the commit (the committed code did not correspond to the reviewed code). Both commits were reverted. I then landed a new CL ( http://codereview.chromium.org/7860039/ ) that contained the correct changes combining the first two CLs. This caused an error in heapchecker for which a suppression has subsequently been defined ( http://codereview.chromium.org/7780010 ). In summary, all of this is reviewed, minus some lint fixes. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* TBR=estade Review URL: http://codereview.chromium.org/7891008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100932 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100415 - Re-land http://codereview.chromium.org/7831056/ and ↵erikwright@chromium.org2011-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | http://codereview.chromium.org/7833042/ . Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the IO thread. They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. This entire CL has been previously reviewed by the appropriate owners, however an error was made during the submit. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7860039 TBR=erikwright@chromium.org Review URL: http://codereview.chromium.org/7862002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100460 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land http://codereview.chromium.org/7831056/ and ↵erikwright@chromium.org2011-09-091-1/+1
| | | | | | | | | | | | | | | | | | http://codereview.chromium.org/7833042/ . Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the IO thread. They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. This entire CL has been previously reviewed by the appropriate owners, however an error was made during the submit. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7860039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100415 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 100188 - Finalize a CL originally by departed intern ycxiao@ that ↵estade@chromium.org2011-09-091-1/+1
| | | | | | | | | | | | | | | | | | detaches the loading of cookies from the IO thread. They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7833042 TBR=erikwright@chromium.org Review URL: http://codereview.chromium.org/7860026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100335 0039d316-1c4b-4281-b951-d872f2087c98
* Finalize a CL originally by departed intern ycxiao@ that detaches the ↵erikwright@chromium.org2011-09-081-1/+1
| | | | | | | | | | | | | | | loading of cookies from the IO thread. They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7833042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100188 0039d316-1c4b-4281-b951-d872f2087c98
* Removal of Profile from content part 3.avi@chromium.org2011-07-281-1/+1
| | | | | | | | | BUG=76788 TEST=no change visible Review URL: http://codereview.chromium.org/7522018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94511 0039d316-1c4b-4281-b951-d872f2087c98
* In chromedriver, do not hang when an alert becomes active during an action.kkania@chromium.org2011-07-251-0/+11
| | | | | | | | | | Prohibit certain actions when an alert is active. BUG=87679 TEST=none Review URL: http://codereview.chromium.org/7492016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93983 0039d316-1c4b-4281-b951-d872f2087c98
* Apply the asynchronous CookieMonster API to AutomationUtil.ycxiao@chromium.org2011-07-181-14/+40
| | | | | | | | | BUG=68657 TEST=XXXX Review URL: http://codereview.chromium.org/7363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92878 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Value::GetAsInteger() calls.yusukes@google.com2011-05-051-4/+1
| | | | | | | | | | | Since r83705, Value::GetAsDouble() can return an integer value as double. We no longer need to call Value::GetAsInteger() explicitly. BUG=None TEST=ran try Review URL: http://codereview.chromium.org/6901084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84263 0039d316-1c4b-4281-b951-d872f2087c98
* MAC Cookies (patch 1 of N)abarth@chromium.org2011-04-301-1/+9
| | | | | | | | | | | | This is the first patch towards implementing https://github.com/hueniverse/draft-hammer-http-mac/raw/master/draft-hammer-oauth-v2-mac-token.txt Parse MAC-Key and MAC-Algorithm from Set-Cookie and store the values in memory. Future patches will use these values to sign requests. Review URL: http://codereview.chromium.org/6883253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83649 0039d316-1c4b-4281-b951-d872f2087c98
* Stop refcounting ProxyService.willchan@chromium.org2011-04-271-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6873096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83222 0039d316-1c4b-4281-b951-d872f2087c98
* Don't hold the installed app in BrowserProcessRenderHost, since that's in ↵jam@chromium.org2011-04-231-19/+12
| | | | | | | | content layer now. ExtensionService keeps a map from renderer child ids to installed extensions instead. Review URL: http://codereview.chromium.org/6880089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82797 0039d316-1c4b-4281-b951-d872f2087c98
* Move BrowserRenderProcessHost to content. It should have been moved earlier.jam@chromium.org2011-04-191-1/+1
| | | | | | Review URL: http://codereview.chromium.org/6877019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82037 0039d316-1c4b-4281-b951-d872f2087c98
* Moved URLRequestContextGetter to net/ so it can be used by projects such as ↵sanjeevr@chromium.org2011-03-311-12/+12
| | | | | | | | | | jingle. BUG=None TEST=Build. Review URL: http://codereview.chromium.org/6778025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80033 0039d316-1c4b-4281-b951-d872f2087c98
* Rename URLRequestContextGetter::GetCookieStore() --> ↵eroman@chromium.org2011-03-301-6/+12
| | | | | | | | | DONTUSEME_GetCookieStore(), to emphasize that it is deprecated and prevent new usages. BUG=77835 Review URL: http://codereview.chromium.org/6775010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79893 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Part2 of Convert ChromeDriver to use only the JSON automation interface.kkania@chromium.org2011-03-261-0/+19
| | | | | | | | | | Move common functions to automation_util. BUG=none TEST=none Review URL: http://codereview.chromium.org/6614023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79496 0039d316-1c4b-4281-b951-d872f2087c98
* Return the full cookie details in TestingAutomationProvider and pass aroundkkania@chromium.org2011-03-261-29/+107
| | | | | | | | | | | | | | | | a JSON dictionary instead of a cookie string. Deprecate the old JSON cookie interface, but do not remove because it is still being used by old automation servers. Will remove when version 12 reaches stable. Also fix the stack trace in response errors to conform to the spec. BUG=none TEST=none Review URL: http://codereview.chromium.org/6705004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79495 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-03-241-1/+1
| | | | | | | | | | | | CID=14390,14587,14798,14825,14990,15376,15500,15654,15731,15777,15857 BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/6696052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79319 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for partitioning cookies for isolated apps.creis@google.com2011-03-151-0/+248
This CL adds experimental support for letting installed apps request isolated storage in their manifest. An isolated app will have its own cookie store that is not shared with other apps or normal pages, even if they share an origin. The feature is currently behind a --enable-experimental-app-manifests flag. BUG=69335 TEST=ExtensionManifestTest.IsolatedApps TEST=IsolatedAppApiTest.CookieIsolation* Review URL: http://codereview.chromium.org/6201005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78301 0039d316-1c4b-4281-b951-d872f2087c98