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

Side by Side Diff: chrome/browser/ntp_snippets/fake_download_item.cc

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase + Java accessor Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ntp_snippets/fake_download_item.h" 5 #include "chrome/browser/ntp_snippets/fake_download_item.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 using content::DownloadItem; 9 using content::DownloadItem;
10 10
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 bool FakeDownloadItem::GetAutoOpened() { 356 bool FakeDownloadItem::GetAutoOpened() {
357 NOTREACHED(); 357 NOTREACHED();
358 return false; 358 return false;
359 } 359 }
360 360
361 bool FakeDownloadItem::GetOpened() const { 361 bool FakeDownloadItem::GetOpened() const {
362 NOTREACHED(); 362 NOTREACHED();
363 return false; 363 return false;
364 } 364 }
365 365
366 base::Time FakeDownloadItem::GetLastAccessTime() const {
367 NOTREACHED();
368 return base::Time();
369 }
370
366 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const { 371 content::BrowserContext* FakeDownloadItem::GetBrowserContext() const {
367 NOTREACHED(); 372 NOTREACHED();
368 return nullptr; 373 return nullptr;
369 } 374 }
370 375
371 content::WebContents* FakeDownloadItem::GetWebContents() const { 376 content::WebContents* FakeDownloadItem::GetWebContents() const {
372 NOTREACHED(); 377 NOTREACHED();
373 return nullptr; 378 return nullptr;
374 } 379 }
375 380
376 void FakeDownloadItem::OnContentCheckCompleted( 381 void FakeDownloadItem::OnContentCheckCompleted(
377 content::DownloadDangerType danger_type) { 382 content::DownloadDangerType danger_type) {
378 NOTREACHED(); 383 NOTREACHED();
379 } 384 }
380 385
381 void FakeDownloadItem::SetOpenWhenComplete(bool open) { 386 void FakeDownloadItem::SetOpenWhenComplete(bool open) {
382 NOTREACHED(); 387 NOTREACHED();
383 } 388 }
384 389
385 void FakeDownloadItem::SetOpened(bool opened) { 390 void FakeDownloadItem::SetOpened(bool opened) {
386 NOTREACHED(); 391 NOTREACHED();
387 } 392 }
388 393
394 void FakeDownloadItem::SetLastAccessTime(const base::Time& time) {
395 NOTREACHED();
396 }
397
389 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) { 398 void FakeDownloadItem::SetDisplayName(const base::FilePath& name) {
390 NOTREACHED(); 399 NOTREACHED();
391 } 400 }
392 401
393 std::string FakeDownloadItem::DebugString(bool verbose) const { 402 std::string FakeDownloadItem::DebugString(bool verbose) const {
394 NOTREACHED(); 403 NOTREACHED();
395 return std::string(); 404 return std::string();
396 } 405 }
397 406
398 } // namespace test 407 } // namespace test
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698