| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/tab_contents/language_state.h" | 5 #include "content/browser/tab_contents/language_state.h" |
| 6 | 6 |
| 7 #include "chrome/browser/tab_contents/navigation_controller.h" | 7 #include "content/browser/tab_contents/navigation_controller.h" |
| 8 #include "chrome/browser/tab_contents/navigation_entry.h" | 8 #include "content/browser/tab_contents/navigation_entry.h" |
| 9 | 9 |
| 10 LanguageState::LanguageState(NavigationController* nav_controller) | 10 LanguageState::LanguageState(NavigationController* nav_controller) |
| 11 : navigation_controller_(nav_controller), | 11 : navigation_controller_(nav_controller), |
| 12 page_translatable_(false), | 12 page_translatable_(false), |
| 13 translation_pending_(false), | 13 translation_pending_(false), |
| 14 translation_declined_(false), | 14 translation_declined_(false), |
| 15 in_page_navigation_(false) { | 15 in_page_navigation_(false) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 LanguageState::~LanguageState() { | 18 LanguageState::~LanguageState() { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 prev_original_lang_ != prev_current_lang_ && | 67 prev_original_lang_ != prev_current_lang_ && |
| 68 original_lang_ == current_lang_ && | 68 original_lang_ == current_lang_ && |
| 69 navigation_controller_->GetActiveEntry() && | 69 navigation_controller_->GetActiveEntry() && |
| 70 navigation_controller_->GetActiveEntry()->transition_type() == | 70 navigation_controller_->GetActiveEntry()->transition_type() == |
| 71 PageTransition::LINK) { | 71 PageTransition::LINK) { |
| 72 return prev_current_lang_; | 72 return prev_current_lang_; |
| 73 } | 73 } |
| 74 | 74 |
| 75 return std::string(); | 75 return std::string(); |
| 76 } | 76 } |
| OLD | NEW |