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

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

Issue 8054013: Recover from bad proxy settings pointing to non-proxy servers that reply anyway. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, reviewed Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/policy/device_management_service.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CLOUD_POLICY_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 CloudPolicyController(DeviceManagementService* service, 30 CloudPolicyController(DeviceManagementService* service,
31 CloudPolicyCacheBase* cache, 31 CloudPolicyCacheBase* cache,
32 DeviceTokenFetcher* token_fetcher, 32 DeviceTokenFetcher* token_fetcher,
33 CloudPolicyDataStore* data_store, 33 CloudPolicyDataStore* data_store,
34 PolicyNotifier* notifier); 34 PolicyNotifier* notifier);
35 virtual ~CloudPolicyController(); 35 virtual ~CloudPolicyController();
36 36
37 // Sets the refresh rate at which to re-fetch policy information. 37 // Sets the refresh rate at which to re-fetch policy information.
38 void SetRefreshRate(int64 refresh_rate_milliseconds); 38 void SetRefreshRate(int64 refresh_rate_milliseconds);
39 39
40 // Triggers an immediate retry of of the current operation. 40 // Triggers an immediate retry of the current operation.
41 void Retry(); 41 void Retry();
42 42
43 // Stops any pending activity and resets the controller to unenrolled state. 43 // Stops any pending activity and resets the controller to unenrolled state.
44 void Reset(); 44 void Reset();
45 45
46 // DevicePolicyResponseDelegate implementation: 46 // DevicePolicyResponseDelegate implementation:
47 virtual void HandlePolicyResponse( 47 virtual void HandlePolicyResponse(
48 const em::DevicePolicyResponse& response) OVERRIDE; 48 const em::DevicePolicyResponse& response) OVERRIDE;
49 virtual void OnError(DeviceManagementBackend::ErrorCode code) OVERRIDE; 49 virtual void OnError(DeviceManagementBackend::ErrorCode code) OVERRIDE;
50 50
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int64 effective_policy_refresh_error_delay_ms_; 121 int64 effective_policy_refresh_error_delay_ms_;
122 122
123 scoped_ptr<DelayedWorkScheduler> scheduler_; 123 scoped_ptr<DelayedWorkScheduler> scheduler_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(CloudPolicyController); 125 DISALLOW_COPY_AND_ASSIGN(CloudPolicyController);
126 }; 126 };
127 127
128 } // namespace policy 128 } // namespace policy
129 129
130 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_ 130 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698