OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ | 5 #ifndef CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
6 #define CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ | 6 #define CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 BackgroundFetchRequestInfo(const BackgroundFetchRequestInfo& request); | 22 BackgroundFetchRequestInfo(const BackgroundFetchRequestInfo& request); |
23 ~BackgroundFetchRequestInfo(); | 23 ~BackgroundFetchRequestInfo(); |
24 | 24 |
25 const std::string& guid() const { return guid_; } | 25 const std::string& guid() const { return guid_; } |
26 const GURL& url() const { return url_; } | 26 const GURL& url() const { return url_; } |
27 const std::string& tag() const { return tag_; } | 27 const std::string& tag() const { return tag_; } |
28 | 28 |
29 bool complete() const { return complete_; } | 29 bool complete() const { return complete_; } |
30 void set_complete(bool complete) { complete_ = complete; } | 30 void set_complete(bool complete) { complete_ = complete; } |
31 | 31 |
| 32 const std::string& download_guid() const { return download_guid_; } |
| 33 void set_download_guid(const std::string& download_guid) { |
| 34 download_guid_ = download_guid; |
| 35 } |
| 36 |
32 private: | 37 private: |
33 std::string guid_; | 38 std::string guid_; |
34 GURL url_; | 39 GURL url_; |
35 std::string tag_; | 40 std::string tag_; |
36 bool complete_ = false; | 41 bool complete_ = false; |
| 42 std::string download_guid_; |
37 }; | 43 }; |
38 | 44 |
39 using BackgroundFetchRequestInfos = std::vector<BackgroundFetchRequestInfo>; | 45 using BackgroundFetchRequestInfos = std::vector<BackgroundFetchRequestInfo>; |
40 | 46 |
41 } // namespace content | 47 } // namespace content |
42 | 48 |
43 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ | 49 #endif // CONTENT_BROWSER_BACKGROUND_FETCH_REQUEST_INFO_H_ |
OLD | NEW |