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

Unified Diff: chrome/browser/google_apis/gdata_contacts_requests.h

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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/google_apis/gdata_contacts_requests.h
diff --git a/chrome/browser/google_apis/gdata_contacts_requests.h b/chrome/browser/google_apis/gdata_contacts_requests.h
deleted file mode 100644
index ee36024c17e486979b31e3609feaf9d0d44e31a9..0000000000000000000000000000000000000000
--- a/chrome/browser/google_apis/gdata_contacts_requests.h
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_CONTACTS_REQUESTS_H_
-#define CHROME_BROWSER_GOOGLE_APIS_GDATA_CONTACTS_REQUESTS_H_
-
-#include <string>
-
-#include "base/time/time.h"
-#include "chrome/browser/google_apis/base_requests.h"
-
-namespace google_apis {
-
-//========================== GetContactGroupsRequest =========================
-
-// This class fetches a JSON feed containing a user's contact groups.
-class GetContactGroupsRequest : public GetDataRequest {
- public:
- GetContactGroupsRequest(RequestSender* runner,
- const GetDataCallback& callback);
- virtual ~GetContactGroupsRequest();
-
- void set_feed_url_for_testing(const GURL& url) {
- feed_url_for_testing_ = url;
- }
-
- protected:
- // Overridden from GetDataRequest.
- virtual GURL GetURL() const OVERRIDE;
-
- private:
- // If non-empty, URL of the feed to fetch.
- GURL feed_url_for_testing_;
-
- DISALLOW_COPY_AND_ASSIGN(GetContactGroupsRequest);
-};
-
-//============================ GetContactsRequest ============================
-
-// This class fetches a JSON feed containing a user's contacts.
-class GetContactsRequest : public GetDataRequest {
- public:
- GetContactsRequest(RequestSender* runner,
- const std::string& group_id,
- const base::Time& min_update_time,
- const GetDataCallback& callback);
- virtual ~GetContactsRequest();
-
- void set_feed_url_for_testing(const GURL& url) {
- feed_url_for_testing_ = url;
- }
-
- protected:
- // Overridden from GetDataRequest.
- virtual GURL GetURL() const OVERRIDE;
-
- private:
- // If non-empty, URL of the feed to fetch.
- GURL feed_url_for_testing_;
-
- // If non-empty, contains the ID of the group whose contacts should be
- // returned. Group IDs generally look like this:
- // http://www.google.com/m8/feeds/groups/user%40gmail.com/base/6
- std::string group_id_;
-
- // If is_null() is false, contains a minimum last-updated time that will be
- // used to filter contacts.
- base::Time min_update_time_;
-
- DISALLOW_COPY_AND_ASSIGN(GetContactsRequest);
-};
-
-//========================== GetContactPhotoRequest ==========================
-
-// This class fetches a contact's photo.
-class GetContactPhotoRequest : public UrlFetchRequestBase {
- public:
- GetContactPhotoRequest(RequestSender* runner,
- const GURL& photo_url,
- const GetContentCallback& callback);
- virtual ~GetContactPhotoRequest();
-
- protected:
- // Overridden from UrlFetchRequestBase.
- virtual GURL GetURL() const OVERRIDE;
- virtual void ProcessURLFetchResults(const net::URLFetcher* source) OVERRIDE;
- virtual void RunCallbackOnPrematureFailure(GDataErrorCode code) OVERRIDE;
-
- private:
- // Location of the photo to fetch.
- GURL photo_url_;
-
- // Callback to which the photo data is passed.
- GetContentCallback callback_;
-
- DISALLOW_COPY_AND_ASSIGN(GetContactPhotoRequest);
-};
-
-} // namespace google_apis
-
-#endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_CONTACTS_REQUESTS_H_
« no previous file with comments | « chrome/browser/google_apis/dummy_auth_service.cc ('k') | chrome/browser/google_apis/gdata_contacts_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698