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

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

Issue 9234042: Re-land alexbost's experimental offscreenTabs API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 9 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
« no previous file with comments | « chrome/browser/extensions/extension_tab_util.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tabs_module.h
diff --git a/chrome/browser/extensions/extension_tabs_module.h b/chrome/browser/extensions/extension_tabs_module.h
index 7038bc25c1c3afd680eb62eccb5a1ee49daf6f8b..7738d75be6f4a6554f2fad5d5b5dd0115fed3bd7 100644
--- a/chrome/browser/extensions/extension_tabs_module.h
+++ b/chrome/browser/extensions/extension_tabs_module.h
@@ -17,13 +17,17 @@
#include "googleurl/src/gurl.h"
class BackingStore;
+class Extension;
+class GURL;
class SkBitmap;
+class TabContentsWrapper;
namespace base {
class DictionaryValue;
} // namespace base
namespace content {
class WebContents;
} // namespace content
+
// Windows
class GetWindowFunction : public SyncExtensionFunction {
virtual ~GetWindowFunction() {}
@@ -110,17 +114,23 @@ class UpdateTabFunction : public AsyncExtensionFunction,
public content::WebContentsObserver {
public:
UpdateTabFunction();
- private:
+
+ protected:
virtual ~UpdateTabFunction() {}
+ virtual bool UpdateURLIfPresent(base::DictionaryValue* update_props,
+ bool* is_async);
+ virtual void PopulateResult();
+
+ content::WebContents* web_contents_;
+
+ private:
virtual bool RunImpl() OVERRIDE;
virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
void OnExecuteCodeFinished(int request_id,
bool success,
const std::string& error);
- void PopulateResult();
- content::WebContents* web_contents_;
DECLARE_EXTENSION_FUNCTION_NAME("tabs.update")
};
class MoveTabsFunction : public SyncExtensionFunction {
@@ -153,7 +163,7 @@ class DetectTabLanguageFunction : public AsyncExtensionFunction,
};
class CaptureVisibleTabFunction : public AsyncExtensionFunction,
public content::NotificationObserver {
- private:
+ protected:
enum ImageFormat {
FORMAT_JPEG,
FORMAT_PNG
@@ -164,10 +174,11 @@ class CaptureVisibleTabFunction : public AsyncExtensionFunction,
virtual ~CaptureVisibleTabFunction() {}
virtual bool RunImpl() OVERRIDE;
+ virtual bool GetTabToCapture(content::WebContents** web_contents,
+ TabContentsWrapper** wrapper);
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- bool CaptureSnapshotFromBackingStore(BackingStore* backing_store);
void SendResultFromBitmap(const SkBitmap& screen_capture);
content::NotificationRegistrar registrar_;
« no previous file with comments | « chrome/browser/extensions/extension_tab_util.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698