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

Unified Diff: ios/chrome/browser/reading_list/reading_list_entry.h

Issue 2350663003: Make reading list entry movable only (Closed)
Patch Set: indentation Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/reading_list/reading_list_entry.h
diff --git a/ios/chrome/browser/reading_list/reading_list_entry.h b/ios/chrome/browser/reading_list/reading_list_entry.h
index 4201a0a9146a0ab77c8b66b8a70b47abde29847b..aad6cb2aa10cdaebaaf55229626c48781a1c2af0 100644
--- a/ios/chrome/browser/reading_list/reading_list_entry.h
+++ b/ios/chrome/browser/reading_list/reading_list_entry.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/macros.h"
#include "url/gurl.h"
// An entry in the reading list. The URL is a unique identifier for an entry, as
@@ -15,7 +16,7 @@
class ReadingListEntry {
public:
ReadingListEntry(const GURL& url, const std::string& title);
- ReadingListEntry(const ReadingListEntry& entry);
+ ReadingListEntry(ReadingListEntry&& entry);
~ReadingListEntry();
// Entries are created in WAITING state. At some point they will be PROCESSING
@@ -34,7 +35,7 @@ class ReadingListEntry {
// be called if the state is "PROCESSED".
const GURL& DistilledURL() const;
- ReadingListEntry& operator=(const ReadingListEntry& other);
+ ReadingListEntry& operator=(ReadingListEntry&& other);
bool operator==(const ReadingListEntry& other) const;
// Sets the title.
@@ -49,6 +50,8 @@ class ReadingListEntry {
std::string title_;
GURL distilled_url_;
DistillationState distilled_state_;
+
+ DISALLOW_COPY_AND_ASSIGN(ReadingListEntry);
};
#endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_ENTRY_H_

Powered by Google App Engine
This is Rietveld 408576698