OLD | NEW |
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 #include "chrome/browser/google_apis/gdata_contacts_requests.h" | 5 #include "google_apis/drive/gdata_contacts_requests.h" |
6 | 6 |
7 #include "chrome/browser/google_apis/time_util.h" | 7 #include "google_apis/drive/time_util.h" |
8 #include "net/base/url_util.h" | 8 #include "net/base/url_util.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
11 namespace google_apis { | 11 namespace google_apis { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // URL requesting all contact groups. | 15 // URL requesting all contact groups. |
16 const char kGetContactGroupsURL[] = | 16 const char kGetContactGroupsURL[] = |
17 "https://www.google.com/m8/feeds/groups/default/full?alt=json"; | 17 "https://www.google.com/m8/feeds/groups/default/full?alt=json"; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 OnProcessURLFetchResultsComplete(); | 106 OnProcessURLFetchResultsComplete(); |
107 } | 107 } |
108 | 108 |
109 void GetContactPhotoRequest::RunCallbackOnPrematureFailure( | 109 void GetContactPhotoRequest::RunCallbackOnPrematureFailure( |
110 GDataErrorCode code) { | 110 GDataErrorCode code) { |
111 scoped_ptr<std::string> data(new std::string); | 111 scoped_ptr<std::string> data(new std::string); |
112 callback_.Run(code, data.Pass()); | 112 callback_.Run(code, data.Pass()); |
113 } | 113 } |
114 | 114 |
115 } // namespace google_apis | 115 } // namespace google_apis |
OLD | NEW |