Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4712)

Unified Diff: chrome/browser/extensions/extension_tabs_module.h

Issue 159067: Add API: getBackgroundPageView and getToolstripViews (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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__
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698