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

Unified Diff: chrome/browser/automation/automation_tab_helper.h

Issue 8416024: Re-land 107645 with static initializers removed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove static initializers Created 9 years, 2 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/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();
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/automation_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698