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

Side by Side Diff: components/offline_pages/offline_page_item.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 OfflinePageItem(); 28 OfflinePageItem();
29 OfflinePageItem(const GURL& url, 29 OfflinePageItem(const GURL& url,
30 int64_t bookmark_id, 30 int64_t bookmark_id,
31 const base::FilePath& file_path, 31 const base::FilePath& file_path,
32 int64_t file_size); 32 int64_t file_size);
33 OfflinePageItem(const GURL& url, 33 OfflinePageItem(const GURL& url,
34 int64_t bookmark_id, 34 int64_t bookmark_id,
35 const base::FilePath& file_path, 35 const base::FilePath& file_path,
36 int64_t file_size, 36 int64_t file_size,
37 const base::Time& creation_time); 37 const base::Time& creation_time);
38 OfflinePageItem(const OfflinePageItem& other);
38 ~OfflinePageItem(); 39 ~OfflinePageItem();
39 40
40 // Gets a URL of the file under |file_path|. 41 // Gets a URL of the file under |file_path|.
41 GURL GetOfflineURL() const; 42 GURL GetOfflineURL() const;
42 43
43 // Returns true if the page has been marked for deletion. This allows an undo 44 // Returns true if the page has been marked for deletion. This allows an undo
44 // in a short time period. After that, the marked page will be deleted. 45 // in a short time period. After that, the marked page will be deleted.
45 bool IsMarkedForDeletion() const; 46 bool IsMarkedForDeletion() const;
46 47
47 // Sets/clears the mark for deletion. 48 // Sets/clears the mark for deletion.
(...skipping 16 matching lines...) Expand all
64 base::Time last_access_time; 65 base::Time last_access_time;
65 // Number of times that the offline archive has been accessed. 66 // Number of times that the offline archive has been accessed.
66 int access_count; 67 int access_count;
67 // Flags about the state and behavior of the offline page. 68 // Flags about the state and behavior of the offline page.
68 Flags flags; 69 Flags flags;
69 }; 70 };
70 71
71 } // namespace offline_pages 72 } // namespace offline_pages
72 73
73 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_ 74 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698