Index: chrome/browser/extensions/extension_tabs_module.h |
=================================================================== |
--- chrome/browser/extensions/extension_tabs_module.h (revision 24584) |
+++ chrome/browser/extensions/extension_tabs_module.h (working copy) |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "chrome/browser/extensions/extension_function.h" |
+#include "chrome/browser/net/url_fetcher.h" |
#include "chrome/common/notification_service.h" |
#include "chrome/common/notification_registrar.h" |
@@ -101,5 +102,18 @@ |
class CaptureVisibleTabFunction : public SyncExtensionFunction { |
virtual bool RunImpl(); |
}; |
+class ExecuteScriptWithUrlFunction : public AsyncExtensionFunction, |
+ public URLFetcher::Delegate { |
+ virtual bool RunImpl(); |
+ private: |
+ virtual void OnURLFetchComplete(const URLFetcher* source, |
+ const GURL& url, |
+ const URLRequestStatus& status, |
+ int response_code, |
+ const ResponseCookies& cookies, |
+ const std::string& data); |
+ scoped_ptr<URLFetcher> script_fetcher_; |
+}; |
+ |
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TABS_MODULE_H__ |