Index: chrome/browser/automation/automation_tab_helper.h |
diff --git a/chrome/browser/automation/automation_tab_helper.h b/chrome/browser/automation/automation_tab_helper.h |
index d3016d854efcddad1fde91bf74e8df8d238f3793..a8ddef7e09598814ba1c7b2ca3802dfd111fb0bc 100644 |
--- a/chrome/browser/automation/automation_tab_helper.h |
+++ b/chrome/browser/automation/automation_tab_helper.h |
@@ -48,6 +48,12 @@ class TabEventObserver { |
// This method will always be called if |OnFirstPendingLoad| was called. |
virtual void OnNoMorePendingLoads(TabContents* tab_contents) { } |
+ // Called as a result of a tab being snapshotted. |
+ virtual void OnSnapshotEntirePageACK( |
+ bool success, |
+ const std::vector<unsigned char>& png_data, |
+ const std::string& error_msg) { } |
+ |
protected: |
TabEventObserver(); |
virtual ~TabEventObserver(); |
@@ -84,6 +90,9 @@ class AutomationTabHelper |
void AddObserver(TabEventObserver* observer); |
void RemoveObserver(TabEventObserver* observer); |
+ // Snapshots the entire page without resizing. |
+ void SnapshotEntirePage(); |
+ |
// Returns true if the tab is loading or the tab is scheduled to load |
// immediately. Note that scheduled loads may be canceled. |
bool has_pending_loads() const; |
@@ -91,6 +100,11 @@ class AutomationTabHelper |
private: |
friend class AutomationTabHelperTest; |
+ void OnSnapshotEntirePageACK( |
+ bool success, |
+ const std::vector<unsigned char>& png_data, |
+ const std::string& error_msg); |
+ |
// TabContentsObserver implementation. |
virtual void DidStartLoading(); |
virtual void DidStopLoading(); |