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

Side by Side Diff: chrome/browser/policy/managed_mode_policy_provider_factory.h

Issue 10698145: Remove #pragma once from chrome/browser/policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_
6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ 6 #define CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_
7 #pragma once
8 7
9 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
10 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 9 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
11 10
12 class Profile; 11 class Profile;
13 12
14 namespace policy { 13 namespace policy {
15 class ManagedModePolicyProvider; 14 class ManagedModePolicyProvider;
16 } 15 }
17 16
18 class ManagedModePolicyProviderFactory : public ProfileKeyedServiceFactory { 17 class ManagedModePolicyProviderFactory : public ProfileKeyedServiceFactory {
19 public: 18 public:
20 static ManagedModePolicyProviderFactory* GetInstance(); 19 static ManagedModePolicyProviderFactory* GetInstance();
21 20
22 static policy::ManagedModePolicyProvider* GetForProfile(Profile* profile); 21 static policy::ManagedModePolicyProvider* GetForProfile(Profile* profile);
23 22
24 private: 23 private:
25 friend struct DefaultSingletonTraits<ManagedModePolicyProviderFactory>; 24 friend struct DefaultSingletonTraits<ManagedModePolicyProviderFactory>;
26 25
27 ManagedModePolicyProviderFactory(); 26 ManagedModePolicyProviderFactory();
28 virtual ~ManagedModePolicyProviderFactory(); 27 virtual ~ManagedModePolicyProviderFactory();
29 28
30 virtual ProfileKeyedService* BuildServiceInstanceFor( 29 virtual ProfileKeyedService* BuildServiceInstanceFor(
31 Profile* profile) const OVERRIDE; 30 Profile* profile) const OVERRIDE;
32 31
33 DISALLOW_COPY_AND_ASSIGN(ManagedModePolicyProviderFactory); 32 DISALLOW_COPY_AND_ASSIGN(ManagedModePolicyProviderFactory);
34 }; 33 };
35 34
36 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_ 35 #endif // CHROME_BROWSER_POLICY_MANAGED_MODE_POLICY_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_mode_policy_provider.h ('k') | chrome/browser/policy/mock_cloud_policy_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698