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

Unified Diff: chrome/browser/policy/device_management_service.h

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/device_management_service.h
===================================================================
--- chrome/browser/policy/device_management_service.h (revision 106929)
+++ chrome/browser/policy/device_management_service.h (working copy)
@@ -9,15 +9,19 @@
#include <deque>
#include <map>
#include <string>
+#include <vector>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
-#include "content/common/net/url_fetcher.h"
+#include "content/public/common/url_fetcher_delegate.h"
#include "googleurl/src/gurl.h"
namespace net {
class URLRequestContextGetter;
+class URLRequestStatus;
+typedef std::vector<std::string> ResponseCookies;
}
namespace policy {
@@ -28,7 +32,7 @@
// communication with the device management server. It creates the backends
// objects that the device management policy provider and friends use to issue
// requests.
-class DeviceManagementService : public URLFetcher::Delegate {
+class DeviceManagementService : public content::URLFetcherDelegate {
public:
// Describes a device management job handled by the service.
class DeviceManagementJob {
@@ -79,13 +83,8 @@
typedef std::map<const URLFetcher*, DeviceManagementJob*> JobFetcherMap;
typedef std::deque<DeviceManagementJob*> JobQueue;
- // URLFetcher::Delegate override.
- virtual void OnURLFetchComplete(const URLFetcher* source,
- const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data) OVERRIDE;
+ // content::URLFetcherDelegate override.
+ virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE;
// Does the actual initialization using the request context specified for
// |PrepareInitialization|. This will also fire any pending network requests.

Powered by Google App Engine
This is Rietveld 408576698