| 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/chromeos/gdata/gdata_contacts_service.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_contacts_service.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/json/json_value_converter.h" | 12 #include "base/json/json_value_converter.h" |
| 13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "base/timer.h" | 18 #include "base/timer.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 20 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
| 21 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" | 21 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" |
| 22 #include "chrome/browser/chromeos/gdata/gdata_operation_runner.h" | 22 #include "chrome/browser/chromeos/gdata/gdata_operation_runner.h" |
| 23 #include "chrome/browser/chromeos/gdata/gdata_operations.h" | 23 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
| 24 #include "chrome/browser/chromeos/gdata/gdata_params.h" | |
| 25 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 24 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
| 26 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
| 27 | 26 |
| 28 using content::BrowserThread; | 27 using content::BrowserThread; |
| 29 | 28 |
| 30 namespace gdata { | 29 namespace gdata { |
| 31 | 30 |
| 32 namespace { | 31 namespace { |
| 33 | 32 |
| 34 // Maximum number of profile photos that we'll download per second. | 33 // Maximum number of profile photos that we'll download per second. |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 769 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 771 DCHECK(request); | 770 DCHECK(request); |
| 772 VLOG(1) << "Download request " << request << " complete"; | 771 VLOG(1) << "Download request " << request << " complete"; |
| 773 if (!request->my_contacts_group_id().empty()) | 772 if (!request->my_contacts_group_id().empty()) |
| 774 cached_my_contacts_group_id_ = request->my_contacts_group_id(); | 773 cached_my_contacts_group_id_ = request->my_contacts_group_id(); |
| 775 requests_.erase(request); | 774 requests_.erase(request); |
| 776 delete request; | 775 delete request; |
| 777 } | 776 } |
| 778 | 777 |
| 779 } // namespace contacts | 778 } // namespace contacts |
| OLD | NEW |