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

Unified Diff: chrome/browser/instant/instant_client.h

Issue 11833043: Instant Extended: Fallback to local preview if the remote instant page is not ready on user input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: Addressing sreeram's comments. Created 7 years, 11 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 | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_client.h
diff --git a/chrome/browser/instant/instant_client.h b/chrome/browser/instant/instant_client.h
index 0f448684e8fad500ab34034ad137af4481cd9227..dffdc6b085f9c84c392a7aa82d3eef038e9b9b51 100644
--- a/chrome/browser/instant/instant_client.h
+++ b/chrome/browser/instant/instant_client.h
@@ -68,6 +68,9 @@ class InstantClient : public content::WebContentsObserver {
virtual void NavigateToURL(const GURL& url,
content::PageTransition transition) = 0;
+ // Called when a RenderView is created, so that state can be initialized.
+ virtual void RenderViewCreated() = 0;
+
protected:
virtual ~Delegate();
};
@@ -104,6 +107,9 @@ class InstantClient : public content::WebContentsObserver {
// Tells the page what size start and end margins to use.
void SetMarginSize(const int start, const int end);
+ // Tells the page about the font information.
+ void InitializeFonts();
+
// Tells the renderer to determine if the page supports the Instant API, which
// results in a call to InstantSupportDetermined() when the reply is received.
void DetermineIfPageSupportsInstant();
@@ -133,6 +139,8 @@ class InstantClient : public content::WebContentsObserver {
private:
// Overridden from content::WebContentsObserver:
+ virtual void RenderViewCreated(
+ content::RenderViewHost* render_view_host) OVERRIDE;
virtual void DidFinishLoad(
int64 frame_id,
const GURL& validated_url,
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698