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

Side by Side Diff: components/translate/content/browser/content_translate_driver.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « components/sync_driver/sync_prefs.h ('k') | components/ui/zoom/zoom_controller.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void OnPageTranslated(const std::string& original_lang, 102 void OnPageTranslated(const std::string& original_lang,
103 const std::string& translated_lang, 103 const std::string& translated_lang,
104 TranslateErrors::Type error_type); 104 TranslateErrors::Type error_type);
105 105
106 private: 106 private:
107 // The navigation controller of the tab we are associated with. 107 // The navigation controller of the tab we are associated with.
108 content::NavigationController* navigation_controller_; 108 content::NavigationController* navigation_controller_;
109 109
110 TranslateManager* translate_manager_; 110 TranslateManager* translate_manager_;
111 111
112 ObserverList<Observer, true> observer_list_; 112 base::ObserverList<Observer, true> observer_list_;
113 113
114 // Max number of attempts before checking if a page has been reloaded. 114 // Max number of attempts before checking if a page has been reloaded.
115 int max_reload_check_attempts_; 115 int max_reload_check_attempts_;
116 116
117 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_; 117 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); 119 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver);
120 }; 120 };
121 121
122 } // namespace translate 122 } // namespace translate
123 123
124 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ 124 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/sync_prefs.h ('k') | components/ui/zoom/zoom_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698