OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 // output: { "url": "http://www.google.com" } | 856 // output: { "url": "http://www.google.com" } |
857 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message); | 857 void GetTabURLJSON(DictionaryValue* args, IPC::Message* reply_message); |
858 | 858 |
859 // Get the current url of the specified tab. Uses the JSON interface. | 859 // Get the current url of the specified tab. Uses the JSON interface. |
860 // Example: | 860 // Example: |
861 // input: { "windex": 1, "tab_index": 1 } | 861 // input: { "windex": 1, "tab_index": 1 } |
862 // output: { "title": "Google" } | 862 // output: { "title": "Google" } |
863 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message); | 863 void GetTabTitleJSON(DictionaryValue* args, IPC::Message* reply_message); |
864 | 864 |
865 // Gets the cookies for the given URL. Uses the JSON interface. | 865 // Gets the cookies for the given URL. Uses the JSON interface. |
| 866 // "expiry" refers to the amount of seconds since the Unix epoch. |
866 // Example: | 867 // Example: |
867 // input: { "windex": 1, "tab_index": 1, "url": "http://www.google.com" } | 868 // input: { "url": "http://www.google.com" } |
868 // output: { "cookies": "PREF=12012" } | 869 // output: { "cookies": [ |
| 870 // { |
| 871 // "name": "PREF", |
| 872 // "value": "123101", |
| 873 // "path": "/", |
| 874 // "domain": "www.google.com", |
| 875 // "secure": false, |
| 876 // "expiry": 1401982012 |
| 877 // } |
| 878 // ] |
| 879 // } |
869 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); | 880 void GetCookiesJSON(DictionaryValue* args, IPC::Message* reply_message); |
870 | 881 |
871 // Deletes the cookie with the given name for the URL. Uses the JSON | 882 // Deletes the cookie with the given name for the URL. Uses the JSON |
872 // interface. | 883 // interface. |
873 // Example: | 884 // Example: |
874 // input: { "windex": 1, | 885 // input: { |
875 // "tab_index": 1, | |
876 // "url": "http://www.google.com", | 886 // "url": "http://www.google.com", |
877 // "name": "my_cookie" | 887 // "name": "my_cookie" |
878 // } | 888 // } |
879 // output: none | 889 // output: none |
880 void DeleteCookieJSON(DictionaryValue* args, IPC::Message* reply_message); | 890 void DeleteCookieJSON(DictionaryValue* args, IPC::Message* reply_message); |
881 | 891 |
882 // Sets a cookie for the given URL. Uses the JSON interface. | 892 // Sets a cookie for the given URL. Uses the JSON interface. |
| 893 // "expiry" refers to the amount of seconds since the Unix epoch. |
883 // Example: | 894 // Example: |
884 // input: { "windex": 1, | 895 // input: { "url": "http://www.google.com", |
885 // "tab_index": 1, | 896 // "cookie": { |
886 // "url": "http://www.google.com", | 897 // "name": "PREF", |
887 // "cookie": "PREF=21321" | 898 // "value": "123101", |
| 899 // "path": "/", // optional |
| 900 // "domain": ".www.google.com", // optional |
| 901 // "secure": false, // optional |
| 902 // "expiry": 1401982012 // optional |
| 903 // } |
888 // } | 904 // } |
889 // output: none | 905 // output: none |
890 void SetCookieJSON(DictionaryValue* args, IPC::Message* reply_message); | 906 void SetCookieJSON(DictionaryValue* args, IPC::Message* reply_message); |
891 | 907 |
892 // Gets the ID for every open tab. This ID is unique per session. | 908 // Gets the ID for every open tab. This ID is unique per session. |
893 // Example: | 909 // Example: |
894 // input: none | 910 // input: none |
895 // output: { "ids": [4124, 213, 1] } | 911 // output: { "ids": [4124, 213, 1] } |
896 void GetTabIds(DictionaryValue* args, IPC::Message* reply_message); | 912 void GetTabIds(DictionaryValue* args, IPC::Message* reply_message); |
897 | 913 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 // Used to enumerate browser profiles. | 1065 // Used to enumerate browser profiles. |
1050 scoped_refptr<ImporterList> importer_list_; | 1066 scoped_refptr<ImporterList> importer_list_; |
1051 | 1067 |
1052 // The stored data for the ImportSettings operation. | 1068 // The stored data for the ImportSettings operation. |
1053 ImportSettingsData import_settings_data_; | 1069 ImportSettingsData import_settings_data_; |
1054 | 1070 |
1055 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1071 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1056 }; | 1072 }; |
1057 | 1073 |
1058 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1074 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |