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

Unified Diff: chrome/renderer/navigation_state.h

Issue 577032: The translate feature was only translating the main frame of the page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/navigation_state.h
===================================================================
--- chrome/renderer/navigation_state.h (revision 38414)
+++ chrome/renderer/navigation_state.h (working copy)
@@ -211,6 +211,10 @@
void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; }
bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; }
+ // Whether the frame text contents was translated to a different language.
+ void set_was_translated(bool value) { was_translated_ = value; }
+ bool was_translated() const { return was_translated_; }
+
private:
NavigationState(PageTransition::Type transition_type,
const base::Time& request_time,
@@ -227,7 +231,8 @@
cache_policy_override_set_(false),
cache_policy_override_(WebKit::WebURLRequest::UseProtocolCachePolicy),
user_script_idle_scheduler_(NULL),
- was_fetched_via_spdy_(false) {
+ was_fetched_via_spdy_(false),
+ was_translated_(false) {
}
PageTransition::Type transition_type_;
@@ -258,6 +263,8 @@
bool was_fetched_via_spdy_;
+ bool was_translated_;
+
DISALLOW_COPY_AND_ASSIGN(NavigationState);
};
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698