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

Side by Side Diff: content/browser/tab_contents/language_state.cc

Issue 6537015: Start moving core pieces of Chrome multi-process code to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/language_state.h ('k') | content/browser/tab_contents/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698