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

Unified Diff: chrome/renderer/chrome_render_view_observer.h

Issue 14769004: Translate: infobars should not appear when a page has a refresh meta tag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (rebase) Created 7 years, 7 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/renderer/chrome_render_view_observer.h
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h
index eda1d90d7a629e6bbe72b57d175697f1ebf7312b..b8a5c8bda352d2d16c2765979ae18eea18e2c06a 100644
--- a/chrome/renderer/chrome_render_view_observer.h
+++ b/chrome/renderer/chrome_render_view_observer.h
@@ -61,6 +61,8 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
bool notify_result;
};
+ static bool HasRefreshMetaTag(WebKit::WebFrame* frame);
+
// RenderViewObserver implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void DidStartLoading() OVERRIDE;
@@ -140,11 +142,13 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
void OnAddStrictSecurityHost(const std::string& host);
void OnNPAPINotSupported();
- void CapturePageInfoLater(bool preliminary_capture, base::TimeDelta delay);
+ void CapturePageInfoLater(int page_id,
+ bool preliminary_capture,
+ base::TimeDelta delay);
// Captures the thumbnail and text contents for indexing for the given load
// ID. Kicks off analysis of the captured text.
- void CapturePageInfo(bool preliminary_capture);
+ void CapturePageInfo(int page_id, bool preliminary_capture);
// Retrieves the text from the given frame contents, the page text up to the
// maximum amount kMaxIndexChars will be placed into the given buffer.
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | chrome/renderer/chrome_render_view_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698