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

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

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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_DEVICE_MANAGEMENT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 DeviceManagementRequestJob::JobType type); 97 DeviceManagementRequestJob::JobType type);
98 98
99 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed. 99 // Schedules a task to run |Initialize| after |delay_milliseconds| had passed.
100 void ScheduleInitialization(int64 delay_milliseconds); 100 void ScheduleInitialization(int64 delay_milliseconds);
101 101
102 // Makes the service stop all requests and drop the reference to the request 102 // Makes the service stop all requests and drop the reference to the request
103 // context. 103 // context.
104 void Shutdown(); 104 void Shutdown();
105 105
106 private: 106 private:
107 typedef std::map<const content::URLFetcher*, 107 typedef std::map<const net::URLFetcher*,
108 DeviceManagementRequestJobImpl*> JobFetcherMap; 108 DeviceManagementRequestJobImpl*> JobFetcherMap;
109 typedef std::deque<DeviceManagementRequestJobImpl*> JobQueue; 109 typedef std::deque<DeviceManagementRequestJobImpl*> JobQueue;
110 110
111 friend class DeviceManagementRequestJobImpl; 111 friend class DeviceManagementRequestJobImpl;
112 112
113 // content::URLFetcherDelegate override. 113 // content::URLFetcherDelegate override.
114 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; 114 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
115 115
116 // Does the actual initialization using the request context specified for 116 // Does the actual initialization using the request context specified for
117 // |PrepareInitialization|. This will also fire any pending network requests. 117 // |PrepareInitialization|. This will also fire any pending network requests.
118 void Initialize(); 118 void Initialize();
119 119
120 // Starts a job. 120 // Starts a job.
121 void StartJob(DeviceManagementRequestJobImpl* job, bool bypass_proxy); 121 void StartJob(DeviceManagementRequestJobImpl* job, bool bypass_proxy);
122 122
123 // Adds a job. Caller must make sure the job pointer stays valid until the job 123 // Adds a job. Caller must make sure the job pointer stays valid until the job
124 // completes or gets canceled via RemoveJob(). 124 // completes or gets canceled via RemoveJob().
(...skipping 21 matching lines...) Expand all
146 146
147 // Used to create tasks to run |Initialize| delayed on the UI thread. 147 // Used to create tasks to run |Initialize| delayed on the UI thread.
148 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_; 148 base::WeakPtrFactory<DeviceManagementService> weak_ptr_factory_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService); 150 DISALLOW_COPY_AND_ASSIGN(DeviceManagementService);
151 }; 151 };
152 152
153 } // namespace policy 153 } // namespace policy
154 154
155 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_ 155 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/sdch_dictionary_fetcher.cc ('k') | chrome/browser/policy/device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698