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 <stdint.h> |
| 8 |
7 #include <list> | 9 #include <list> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
11 #include "base/files/file.h" | 13 #include "base/files/file.h" |
12 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
13 #include "base/files/important_file_writer.h" | 15 #include "base/files/important_file_writer.h" |
14 #include "base/location.h" | 16 #include "base/location.h" |
15 #include "base/macros.h" | 17 #include "base/macros.h" |
16 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } | 654 } |
653 | 655 |
654 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime( | 656 void DownloadMetadataManager::ManagerContext::UpdateLastOpenedTime( |
655 const base::Time& last_opened_time) { | 657 const base::Time& last_opened_time) { |
656 download_metadata_->mutable_download()->set_open_time_msec( | 658 download_metadata_->mutable_download()->set_open_time_msec( |
657 last_opened_time.ToJavaTime()); | 659 last_opened_time.ToJavaTime()); |
658 WriteMetadata(); | 660 WriteMetadata(); |
659 } | 661 } |
660 | 662 |
661 } // namespace safe_browsing | 663 } // namespace safe_browsing |
OLD | NEW |