Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1099)

Side by Side Diff: chrome/browser/download/download_test_observer.cc

Issue 10232010: DownloadUrlParameters (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: " Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698