| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/webdata/web_data_request_manager.h" | 5 #include "components/webdata/common/web_data_request_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 | 10 |
| 11 //////////////////////////////////////////////////////////////////////////////// | 11 //////////////////////////////////////////////////////////////////////////////// |
| 12 // | 12 // |
| 13 // WebDataRequest implementation. | 13 // WebDataRequest implementation. |
| 14 // | 14 // |
| 15 //////////////////////////////////////////////////////////////////////////////// | 15 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 if (!request->IsCancelled()) { | 139 if (!request->IsCancelled()) { |
| 140 WebDataServiceConsumer* consumer = request->GetConsumer(); | 140 WebDataServiceConsumer* consumer = request->GetConsumer(); |
| 141 request->OnComplete(); | 141 request->OnComplete(); |
| 142 if (consumer) { | 142 if (consumer) { |
| 143 scoped_ptr<WDTypedResult> r = request->GetResult(); | 143 scoped_ptr<WDTypedResult> r = request->GetResult(); |
| 144 consumer->OnWebDataServiceRequestDone(request->GetHandle(), r.get()); | 144 consumer->OnWebDataServiceRequestDone(request->GetHandle(), r.get()); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 } | 148 } |
| OLD | NEW |