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

Side by Side Diff: components/ntp_snippets/content_suggestion.h

Issue 2737723002: Downloads : Last access time update for NTP, duplicate infobar and notifications (Closed)
Patch Set: 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 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ 6 #define COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "components/ntp_snippets/category.h" 15 #include "components/ntp_snippets/category.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace ntp_snippets { 18 namespace ntp_snippets {
19 19
20 // DownloadSuggestionExtra contains additional data which is only available for 20 // DownloadSuggestionExtra contains additional data which is only available for
21 // download suggestions. 21 // download suggestions.
22 struct DownloadSuggestionExtra { 22 struct DownloadSuggestionExtra {
23 DownloadSuggestionExtra(); 23 DownloadSuggestionExtra();
24 ~DownloadSuggestionExtra(); 24 ~DownloadSuggestionExtra();
25 25
26 // The GUID for the downloaded file.
27 std::string download_guid;
26 // The file path of the downloaded file once download completes. 28 // The file path of the downloaded file once download completes.
27 base::FilePath target_file_path; 29 base::FilePath target_file_path;
28 // The effective MIME type of downloaded content. 30 // The effective MIME type of downloaded content.
29 std::string mime_type; 31 std::string mime_type;
30 // Underlying offline page identifier. 32 // Underlying offline page identifier.
31 int64_t offline_page_id = 0; 33 int64_t offline_page_id = 0;
32 // Whether or not the download suggestion is a downloaded asset. 34 // Whether or not the download suggestion is a downloaded asset.
33 // When this is true, |offline_page_id| is ignored, otherwise 35 // When this is true, |offline_page_id| is ignored, otherwise
34 // |target_file_path| and |mime_type| are ignored. 36 // |target_file_path| and |mime_type| are ignored.
35 bool is_download_asset = false; 37 bool is_download_asset = false;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 base::Time fetch_date_; 176 base::Time fetch_date_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion); 178 DISALLOW_COPY_AND_ASSIGN(ContentSuggestion);
177 }; 179 };
178 180
179 std::ostream& operator<<(std::ostream& os, const ContentSuggestion::ID& id); 181 std::ostream& operator<<(std::ostream& os, const ContentSuggestion::ID& id);
180 182
181 } // namespace ntp_snippets 183 } // namespace ntp_snippets
182 184
183 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_ 185 #endif // COMPONENTS_NTP_SNIPPETS_CONTENT_SUGGESTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698