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

Side by Side Diff: chrome/browser/prerender/prerender_history.h

Issue 2893653002: Rename Ownership Transferring Methods for Prerenderer (Closed)
Patch Set: Created 3 years, 7 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 explicit PrerenderHistory(size_t max_items); 61 explicit PrerenderHistory(size_t max_items);
62 ~PrerenderHistory(); 62 ~PrerenderHistory();
63 63
64 // Adds |entry| to the history. If at capacity, the oldest entry is dropped. 64 // Adds |entry| to the history. If at capacity, the oldest entry is dropped.
65 void AddEntry(const Entry& entry); 65 void AddEntry(const Entry& entry);
66 66
67 // Deletes all history entries. 67 // Deletes all history entries.
68 void Clear(); 68 void Clear();
69 69
70 // Retrieves the entries as a value which can be displayed. 70 // Retrieves the entries as a value which can be displayed.
71 std::unique_ptr<base::Value> GetEntriesAsValue() const; 71 std::unique_ptr<base::Value> CopyEntriesAsValue() const;
72 72
73 private: 73 private:
74 std::list<Entry> entries_; 74 std::list<Entry> entries_;
75 size_t max_items_; 75 size_t max_items_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(PrerenderHistory); 77 DISALLOW_COPY_AND_ASSIGN(PrerenderHistory);
78 }; 78 };
79 79
80 } 80 } // namespace prerender
jdoerrie 2017/05/17 16:29:03 cpplint complained about this, that's why I added
81 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_ 81 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698