OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/safe_browsing/incident_reporting/download_metadata_mana
ger.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/download_metadata_mana
ger.h" |
6 | 6 |
| 7 #include <limits.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 | 9 |
9 #include <list> | 10 #include <list> |
10 | 11 |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/callback.h" | 13 #include "base/callback.h" |
13 #include "base/files/file.h" | 14 #include "base/files/file.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/files/important_file_writer.h" | 16 #include "base/files/important_file_writer.h" |
16 #include "base/location.h" | 17 #include "base/location.h" |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 } | 655 } |
655 | 656 |
656 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime( | 657 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime( |
657 const base::Time& last_opened_time) { | 658 const base::Time& last_opened_time) { |
658 download_metadata_->mutable_download()->set_open_time_msec( | 659 download_metadata_->mutable_download()->set_open_time_msec( |
659 last_opened_time.ToJavaTime()); | 660 last_opened_time.ToJavaTime()); |
660 WriteMetadata(); | 661 WriteMetadata(); |
661 } | 662 } |
662 | 663 |
663 } // namespace safe_browsing | 664 } // namespace safe_browsing |
OLD | NEW |