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_writer.h" | 12 #include "base/json/json_writer.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 17 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
18 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" | 18 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" |
19 #include "chrome/browser/chromeos/gdata/gdata_operation_runner.h" | 19 #include "chrome/browser/chromeos/gdata/gdata_operation_runner.h" |
20 #include "chrome/browser/chromeos/gdata/gdata_operations.h" | 20 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
21 #include "chrome/browser/chromeos/gdata/gdata_params.h" | |
22 #include "chrome/browser/chromeos/gdata/gdata_util.h" | 21 #include "chrome/browser/chromeos/gdata/gdata_util.h" |
23 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
24 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
25 | 24 |
26 using content::BrowserThread; | 25 using content::BrowserThread; |
27 | 26 |
28 namespace gdata { | 27 namespace gdata { |
29 | 28 |
30 namespace { | 29 namespace { |
31 | 30 |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 | 603 |
605 void GDataContactsService::OnRequestComplete(DownloadContactsRequest* request) { | 604 void GDataContactsService::OnRequestComplete(DownloadContactsRequest* request) { |
606 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 605 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
607 DCHECK(request); | 606 DCHECK(request); |
608 VLOG(1) << "Download request " << request << " complete"; | 607 VLOG(1) << "Download request " << request << " complete"; |
609 requests_.erase(request); | 608 requests_.erase(request); |
610 delete request; | 609 delete request; |
611 } | 610 } |
612 | 611 |
613 } // namespace contacts | 612 } // namespace contacts |
OLD | NEW |