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

Side by Side Diff: components/policy/core/browser/browser_policy_connector.h

Issue 1543423002: Switch to standard integer types in components/policy/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 6 #define COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "components/policy/core/browser/browser_policy_connector_base.h" 13 #include "components/policy/core/browser/browser_policy_connector_base.h"
11 #include "components/policy/policy_export.h" 14 #include "components/policy/policy_export.h"
12 15
13 class PrefRegistrySimple; 16 class PrefRegistrySimple;
14 class PrefService; 17 class PrefService;
15 18
16 namespace net { 19 namespace net {
17 class URLRequestContextGetter; 20 class URLRequestContextGetter;
18 } 21 }
19 22
(...skipping 13 matching lines...) Expand all
33 // tests that don't require the full policy system running. 36 // tests that don't require the full policy system running.
34 virtual void Init( 37 virtual void Init(
35 PrefService* local_state, 38 PrefService* local_state,
36 scoped_refptr<net::URLRequestContextGetter> request_context) = 0; 39 scoped_refptr<net::URLRequestContextGetter> request_context) = 0;
37 40
38 // Cleans up the connector before it can be safely deleted. 41 // Cleans up the connector before it can be safely deleted.
39 void Shutdown() override; 42 void Shutdown() override;
40 43
41 // Schedules initialization of the cloud policy backend services, if the 44 // Schedules initialization of the cloud policy backend services, if the
42 // services are already constructed. 45 // services are already constructed.
43 void ScheduleServiceInitialization(int64 delay_milliseconds); 46 void ScheduleServiceInitialization(int64_t delay_milliseconds);
44 47
45 DeviceManagementService* device_management_service() { 48 DeviceManagementService* device_management_service() {
46 return device_management_service_.get(); 49 return device_management_service_.get();
47 } 50 }
48 51
49 // Check whether a user is known to be non-enterprise. Domains such as 52 // Check whether a user is known to be non-enterprise. Domains such as
50 // gmail.com and googlemail.com are known to not be managed. Also returns 53 // gmail.com and googlemail.com are known to not be managed. Also returns
51 // false if the username is empty. 54 // false if the username is empty.
52 static bool IsNonEnterpriseUser(const std::string& username); 55 static bool IsNonEnterpriseUser(const std::string& username);
53 56
(...skipping 18 matching lines...) Expand all
72 scoped_ptr<PolicyStatisticsCollector> policy_statistics_collector_; 75 scoped_ptr<PolicyStatisticsCollector> policy_statistics_collector_;
73 76
74 scoped_ptr<DeviceManagementService> device_management_service_; 77 scoped_ptr<DeviceManagementService> device_management_service_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 79 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
77 }; 80 };
78 81
79 } // namespace policy 82 } // namespace policy
80 83
81 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_ 84 #endif // COMPONENTS_POLICY_CORE_BROWSER_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « components/policy/core/browser/autofill_policy_handler.h ('k') | components/policy/core/browser/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698