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

Side by Side Diff: components/translate/ios/browser/ios_translate_driver.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_IOS_TRANSLATE_DRIVER_H_ 5 #ifndef COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_
6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ 6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
12 #include "components/translate/core/browser/translate_driver.h" 13 #include "components/translate/core/browser/translate_driver.h"
13 #include "components/translate/ios/browser/language_detection_controller.h" 14 #include "components/translate/ios/browser/language_detection_controller.h"
14 #include "components/translate/ios/browser/translate_controller.h" 15 #include "components/translate/ios/browser/translate_controller.h"
15 #include "ios/web/public/web_state/web_state_observer.h" 16 #include "ios/web/public/web_state/web_state_observer.h"
16 17
17 @class CRWJSInjectionReceiver; 18 @class CRWJSInjectionReceiver;
18 19
19 namespace web { 20 namespace web {
20 class NavigationManager; 21 class NavigationManager;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 std::string target_language_; 119 std::string target_language_;
119 120
120 base::WeakPtrFactory<IOSTranslateDriver> weak_method_factory_; 121 base::WeakPtrFactory<IOSTranslateDriver> weak_method_factory_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(IOSTranslateDriver); 123 DISALLOW_COPY_AND_ASSIGN(IOSTranslateDriver);
123 }; 124 };
124 125
125 } // namespace translate 126 } // namespace translate
126 127
127 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ 128 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698