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

Side by Side Diff: components/translate/ios/browser/language_detection_controller.h

Issue 2645603002: [ObjC ARC] Converts components/translate/ios/browser:browser to ARC. (Closed)
Patch Set: Removed include Created 3 years, 11 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
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_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ 5 #ifndef COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_
6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ 6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback_list.h" 11 #include "base/callback_list.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/mac/scoped_nsobject.h"
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
16 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
17 #include "components/prefs/pref_member.h" 16 #include "components/prefs/pref_member.h"
18 #include "ios/web/public/web_state/web_state_observer.h" 17 #include "ios/web/public/web_state/web_state_observer.h"
19 18
20 class GURL; 19 class GURL;
21 @class JsLanguageDetectionManager; 20 @class JsLanguageDetectionManager;
22 class PrefService; 21 class PrefService;
23 22
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const base::string16& text); 76 const base::string16& text);
78 77
79 // web::WebStateObserver implementation: 78 // web::WebStateObserver implementation:
80 void PageLoaded( 79 void PageLoaded(
81 web::PageLoadCompletionStatus load_completion_status) override; 80 web::PageLoadCompletionStatus load_completion_status) override;
82 void UrlHashChanged() override; 81 void UrlHashChanged() override;
83 void HistoryStateChanged() override; 82 void HistoryStateChanged() override;
84 void WebStateDestroyed() override; 83 void WebStateDestroyed() override;
85 84
86 CallbackList language_detection_callbacks_; 85 CallbackList language_detection_callbacks_;
87 base::scoped_nsobject<JsLanguageDetectionManager> js_manager_; 86 JsLanguageDetectionManager* js_manager_;
88 BooleanPrefMember translate_enabled_; 87 BooleanPrefMember translate_enabled_;
89 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_; 88 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_;
90 89
91 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController); 90 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController);
92 }; 91 };
93 92
94 } // namespace translate 93 } // namespace translate
95 94
96 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ 95 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698