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/chromeos/contacts/gdata_contacts_service.h

Issue 18316002: Move URLRequestContextGetter to RequestSender in c/b/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/chromeos/contacts/gdata_contacts_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) 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_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 FailureCallback failure_callback, 102 FailureCallback failure_callback,
103 const base::Time& min_update_time) OVERRIDE; 103 const base::Time& min_update_time) OVERRIDE;
104 104
105 private: 105 private:
106 class DownloadContactsRequest; 106 class DownloadContactsRequest;
107 107
108 // Invoked by a download request once it's finished (either successfully or 108 // Invoked by a download request once it's finished (either successfully or
109 // unsuccessfully). 109 // unsuccessfully).
110 void OnRequestComplete(DownloadContactsRequest* request); 110 void OnRequestComplete(DownloadContactsRequest* request);
111 111
112 net::URLRequestContextGetter* url_request_context_getter_; // not owned
113
114 scoped_ptr<google_apis::RequestSender> sender_; 112 scoped_ptr<google_apis::RequestSender> sender_;
115 113
116 // Group ID for the "My Contacts" system contacts group. 114 // Group ID for the "My Contacts" system contacts group.
117 // Cached after a DownloadContactsRequest has completed. 115 // Cached after a DownloadContactsRequest has completed.
118 std::string cached_my_contacts_group_id_; 116 std::string cached_my_contacts_group_id_;
119 117
120 // In-progress download requests. Pointers are owned by this class. 118 // In-progress download requests. Pointers are owned by this class.
121 std::set<DownloadContactsRequest*> requests_; 119 std::set<DownloadContactsRequest*> requests_;
122 120
123 // Maximum number of photos we'll try to download per second (per 121 // Maximum number of photos we'll try to download per second (per
(...skipping 13 matching lines...) Expand all
137 // This is needed for tests that serve static feed data from a host/port 135 // This is needed for tests that serve static feed data from a host/port
138 // that's only known at runtime. 136 // that's only known at runtime.
139 RewritePhotoUrlCallback rewrite_photo_url_callback_for_testing_; 137 RewritePhotoUrlCallback rewrite_photo_url_callback_for_testing_;
140 138
141 DISALLOW_COPY_AND_ASSIGN(GDataContactsService); 139 DISALLOW_COPY_AND_ASSIGN(GDataContactsService);
142 }; 140 };
143 141
144 } // namespace contacts 142 } // namespace contacts
145 143
146 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_ 144 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GDATA_CONTACTS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/contacts/gdata_contacts_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698