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

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

Issue 240903002: Add consumer_device_management_service() in BrowserPolicyConnectorChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "components/policy/core/browser/browser_policy_connector.h" 10 #include "components/policy/core/browser/browser_policy_connector.h"
11 11
12 class PrefService; 12 class PrefService;
13 13
14 namespace net { 14 namespace net {
15 class URLRequestContextGetter; 15 class URLRequestContextGetter;
16 } 16 }
17 17
18 namespace policy { 18 namespace policy {
19 19
20 class ConfigurationPolicyProvider; 20 class ConfigurationPolicyProvider;
21 21
22 // Extends BrowserPolicyConnector with the setup shared among the desktop 22 // Extends BrowserPolicyConnector with the setup shared among the desktop
23 // implementations and Android. 23 // implementations and Android.
24 class ChromeBrowserPolicyConnector : public BrowserPolicyConnector { 24 class ChromeBrowserPolicyConnector : public BrowserPolicyConnector {
25 public: 25 public:
26 // Service initialization delay time in millisecond on startup. (So that
27 // displaying Chrome's GUI does not get delayed.)
28 static const int64 kServiceInitializationStartupDelay = 5000;
29
26 // Builds an uninitialized ChromeBrowserPolicyConnector, suitable for testing. 30 // Builds an uninitialized ChromeBrowserPolicyConnector, suitable for testing.
27 // Init() should be called to create and start the policy machinery. 31 // Init() should be called to create and start the policy machinery.
28 ChromeBrowserPolicyConnector(); 32 ChromeBrowserPolicyConnector();
29 33
30 virtual ~ChromeBrowserPolicyConnector(); 34 virtual ~ChromeBrowserPolicyConnector();
31 35
32 virtual void Init( 36 virtual void Init(
33 PrefService* local_state, 37 PrefService* local_state,
34 scoped_refptr<net::URLRequestContextGetter> request_context) OVERRIDE; 38 scoped_refptr<net::URLRequestContextGetter> request_context) OVERRIDE;
35 39
36 private: 40 private:
37 ConfigurationPolicyProvider* CreatePlatformProvider(); 41 ConfigurationPolicyProvider* CreatePlatformProvider();
38 42
39 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector); 43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector);
40 }; 44 };
41 45
42 } // namespace policy 46 } // namespace policy
43 47
44 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ 48 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698