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

Side by Side Diff: Source/core/loader/HistoryItem.cpp

Issue 418103003: Add a frame sequence number to HistoryItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More descriptive comment for m_frameSequenceNumber Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/HistoryItem.h ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 28 matching lines...) Expand all
39 // Initialize to the current time to reduce the likelihood of generating 39 // Initialize to the current time to reduce the likelihood of generating
40 // identifiers that overlap with those from past/future browser sessions. 40 // identifiers that overlap with those from past/future browser sessions.
41 static long long next = static_cast<long long>(currentTime() * 1000000.0); 41 static long long next = static_cast<long long>(currentTime() * 1000000.0);
42 return ++next; 42 return ++next;
43 } 43 }
44 44
45 HistoryItem::HistoryItem() 45 HistoryItem::HistoryItem()
46 : m_pageScaleFactor(0) 46 : m_pageScaleFactor(0)
47 , m_itemSequenceNumber(generateSequenceNumber()) 47 , m_itemSequenceNumber(generateSequenceNumber())
48 , m_documentSequenceNumber(generateSequenceNumber()) 48 , m_documentSequenceNumber(generateSequenceNumber())
49 , m_frameSequenceNumber(generateSequenceNumber())
49 { 50 {
50 } 51 }
51 52
52 HistoryItem::~HistoryItem() 53 HistoryItem::~HistoryItem()
53 { 54 {
54 } 55 }
55 56
56 void HistoryItem::generateNewItemSequenceNumber() 57 void HistoryItem::generateNewItemSequenceNumber()
57 { 58 {
58 m_itemSequenceNumber = generateSequenceNumber(); 59 m_itemSequenceNumber = generateSequenceNumber();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 209 }
209 210
210 bool HistoryItem::isCurrentDocument(Document* doc) const 211 bool HistoryItem::isCurrentDocument(Document* doc) const
211 { 212 {
212 // FIXME: We should find a better way to check if this is the current docume nt. 213 // FIXME: We should find a better way to check if this is the current docume nt.
213 return equalIgnoringFragmentIdentifier(url(), doc->url()); 214 return equalIgnoringFragmentIdentifier(url(), doc->url());
214 } 215 }
215 216
216 } // namespace blink 217 } // namespace blink
217 218
OLDNEW
« no previous file with comments | « Source/core/loader/HistoryItem.h ('k') | Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698