| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 download_id_ = download_id; | 388 download_id_ = download_id; |
| 389 error_ = error; | 389 error_ = error; |
| 390 ++called_back_count_; | 390 ++called_back_count_; |
| 391 DCHECK_EQ(1u, called_back_count_); | 391 DCHECK_EQ(1u, called_back_count_); |
| 392 | 392 |
| 393 if (waiting_) | 393 if (waiting_) |
| 394 MessageLoopForUI::current()->Quit(); | 394 MessageLoopForUI::current()->Quit(); |
| 395 } | 395 } |
| 396 | 396 |
| 397 const content::DownloadManager::OnStartedCallback | 397 const content::DownloadUrlParameters::OnStartedCallback |
| 398 DownloadTestItemCreationObserver::callback() { | 398 DownloadTestItemCreationObserver::callback() { |
| 399 return base::Bind( | 399 return base::Bind( |
| 400 &DownloadTestItemCreationObserver::DownloadItemCreationCallback, this); | 400 &DownloadTestItemCreationObserver::DownloadItemCreationCallback, this); |
| 401 } | 401 } |
| 402 | 402 |
| OLD | NEW |