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

Side by Side Diff: chrome/browser/chromeos/mobile/mobile_activator.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 protected: 149 protected:
150 // For unit tests. 150 // For unit tests.
151 void set_state_for_test(PlanActivationState state) { 151 void set_state_for_test(PlanActivationState state) {
152 state_ = state; 152 state_ = state;
153 } 153 }
154 virtual const NetworkState* GetNetworkState(const std::string& service_path); 154 virtual const NetworkState* GetNetworkState(const std::string& service_path);
155 virtual const NetworkState* GetDefaultNetwork(); 155 virtual const NetworkState* GetDefaultNetwork();
156 156
157 private: 157 private:
158 friend struct DefaultSingletonTraits<MobileActivator>; 158 friend struct base::DefaultSingletonTraits<MobileActivator>;
159 friend class TestMobileActivator; 159 friend class TestMobileActivator;
160 friend class MobileActivatorTest; 160 friend class MobileActivatorTest;
161 161
162 MobileActivator(); 162 MobileActivator();
163 ~MobileActivator() override; 163 ~MobileActivator() override;
164 164
165 // NetworkStateHandlerObserver overrides. 165 // NetworkStateHandlerObserver overrides.
166 void DefaultNetworkChanged(const NetworkState* network) override; 166 void DefaultNetworkChanged(const NetworkState* network) override;
167 void NetworkPropertiesUpdated(const NetworkState* network) override; 167 void NetworkPropertiesUpdated(const NetworkState* network) override;
168 168
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 base::ObserverList<Observer> observers_; 321 base::ObserverList<Observer> observers_;
322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; 322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_;
323 323
324 DISALLOW_COPY_AND_ASSIGN(MobileActivator); 324 DISALLOW_COPY_AND_ASSIGN(MobileActivator);
325 }; 325 };
326 326
327 } // namespace chromeos 327 } // namespace chromeos
328 328
329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ 329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/user_adding_screen.cc ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698