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

Side by Side Diff: chrome/browser/translate/translate_infobar_delegate.h

Issue 10879037: Rename InfoBarTabService -> InfoBarService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include guard Created 8 years, 4 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
« no previous file with comments | « chrome/browser/plugin_infobar_delegates.cc ('k') | chrome/browser/ui/android/infobar_stubs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 InfoBarTabHelper* infobar_helper, 156 InfoBarTabHelper* infobar_helper,
157 PrefService* prefs, 157 PrefService* prefs,
158 const std::string& original_language, 158 const std::string& original_language,
159 const std::string& target_language); 159 const std::string& target_language);
160 Type type_; 160 Type type_;
161 161
162 private: 162 private:
163 typedef std::pair<std::string, string16> LanguageNamePair; 163 typedef std::pair<std::string, string16> LanguageNamePair;
164 164
165 // InfoBarDelegate: 165 // InfoBarDelegate:
166 virtual InfoBar* CreateInfoBar(InfoBarTabService* infobar_helper) OVERRIDE; 166 virtual InfoBar* CreateInfoBar(InfoBarService* infobar_helper) OVERRIDE;
167 virtual void InfoBarDismissed() OVERRIDE; 167 virtual void InfoBarDismissed() OVERRIDE;
168 virtual gfx::Image* GetIcon() const OVERRIDE; 168 virtual gfx::Image* GetIcon() const OVERRIDE;
169 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE; 169 virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE;
170 virtual bool ShouldExpire( 170 virtual bool ShouldExpire(
171 const content::LoadCommittedDetails& details) const OVERRIDE; 171 const content::LoadCommittedDetails& details) const OVERRIDE;
172 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE; 172 virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE;
173 173
174 // Gets the host of the page being translated, or an empty string if no URL is 174 // Gets the host of the page being translated, or an empty string if no URL is
175 // associated with the current page. 175 // associated with the current page.
176 std::string GetPageHost(); 176 std::string GetPageHost();
(...skipping 27 matching lines...) Expand all
204 // The current infobar view. 204 // The current infobar view.
205 TranslateInfoBarView* infobar_view_; 205 TranslateInfoBarView* infobar_view_;
206 206
207 // The translation related preferences. 207 // The translation related preferences.
208 TranslatePrefs prefs_; 208 TranslatePrefs prefs_;
209 209
210 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); 210 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
211 }; 211 };
212 212
213 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_ 213 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugin_infobar_delegates.cc ('k') | chrome/browser/ui/android/infobar_stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698