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

Side by Side Diff: ios/chrome/browser/prefs/pref_observer_bridge.h

Issue 2847963002: [ObjC ARC] Converts ios/chrome/browser/prefs:prefs to ARC. (Closed)
Patch Set: annotate variables Created 3 years, 7 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 | « ios/chrome/browser/prefs/BUILD.gn ('k') | ios/chrome/browser/prefs/pref_observer_bridge.mm » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_ 5 #ifndef IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_
6 #define IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_ 6 #define IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 class PrefChangeRegistrar; 12 class PrefChangeRegistrar;
13 13
14 @protocol PrefObserverDelegate 14 @protocol PrefObserverDelegate
15 - (void)onPreferenceChanged:(const std::string&)preferenceName; 15 - (void)onPreferenceChanged:(const std::string&)preferenceName;
16 @end 16 @end
17 17
18 class PrefObserverBridge { 18 class PrefObserverBridge {
19 public: 19 public:
20 explicit PrefObserverBridge(id<PrefObserverDelegate> delegate); 20 explicit PrefObserverBridge(id<PrefObserverDelegate> delegate);
21 virtual ~PrefObserverBridge(); 21 virtual ~PrefObserverBridge();
22 22
23 virtual void ObserveChangesForPreference(const std::string& pref_name, 23 virtual void ObserveChangesForPreference(const std::string& pref_name,
24 PrefChangeRegistrar* registrar); 24 PrefChangeRegistrar* registrar);
25 25
26 private: 26 private:
27 virtual void OnPreferenceChanged(const std::string& pref_name); 27 virtual void OnPreferenceChanged(const std::string& pref_name);
28 28
29 id<PrefObserverDelegate> delegate_; 29 __unsafe_unretained id<PrefObserverDelegate> delegate_;
30 }; 30 };
31 31
32 #endif // IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_ 32 #endif // IOS_CHROME_BROWSER_PREFS_PREF_OBSERVER_BRIDGE_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/prefs/BUILD.gn ('k') | ios/chrome/browser/prefs/pref_observer_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698