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

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

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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 <string> 8 #include <string>
9 9
10 #include "base/callback_list.h" 10 #include "base/callback_list.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/mac/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
16 #include "components/prefs/pref_member.h" 17 #include "components/prefs/pref_member.h"
17 #include "ios/web/public/web_state/web_state_observer.h" 18 #include "ios/web/public/web_state/web_state_observer.h"
18 19
19 class GURL; 20 class GURL;
20 @class JsLanguageDetectionManager; 21 @class JsLanguageDetectionManager;
21 class PrefService; 22 class PrefService;
22 23
23 namespace base { 24 namespace base {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 base::scoped_nsobject<JsLanguageDetectionManager> js_manager_; 87 base::scoped_nsobject<JsLanguageDetectionManager> js_manager_;
87 BooleanPrefMember translate_enabled_; 88 BooleanPrefMember translate_enabled_;
88 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_; 89 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController); 91 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController);
91 }; 92 };
92 93
93 } // namespace translate 94 } // namespace translate
94 95
95 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ 96 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698