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

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

Issue 2569883002: Rename documentState() to getDocumentState(). (Closed)
Patch Set: Created 4 years 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 /* 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 void HistoryItem::setDocumentState(const Vector<String>& state) { 112 void HistoryItem::setDocumentState(const Vector<String>& state) {
113 DCHECK(!m_documentState); 113 DCHECK(!m_documentState);
114 m_documentStateVector = state; 114 m_documentStateVector = state;
115 } 115 }
116 116
117 void HistoryItem::setDocumentState(DocumentState* state) { 117 void HistoryItem::setDocumentState(DocumentState* state) {
118 m_documentState = state; 118 m_documentState = state;
119 } 119 }
120 120
121 const Vector<String>& HistoryItem::documentState() { 121 const Vector<String>& HistoryItem::getDocumentState() {
122 if (m_documentState) 122 if (m_documentState)
123 m_documentStateVector = m_documentState->toStateVector(); 123 m_documentStateVector = m_documentState->toStateVector();
124 return m_documentStateVector; 124 return m_documentStateVector;
125 } 125 }
126 126
127 Vector<String> HistoryItem::getReferencedFilePaths() { 127 Vector<String> HistoryItem::getReferencedFilePaths() {
128 return FormController::getReferencedFilePaths(documentState()); 128 return FormController::getReferencedFilePaths(getDocumentState());
129 } 129 }
130 130
131 void HistoryItem::clearDocumentState() { 131 void HistoryItem::clearDocumentState() {
132 m_documentState.clear(); 132 m_documentState.clear();
133 m_documentStateVector.clear(); 133 m_documentStateVector.clear();
134 } 134 }
135 135
136 void HistoryItem::setStateObject(PassRefPtr<SerializedScriptValue> object) { 136 void HistoryItem::setStateObject(PassRefPtr<SerializedScriptValue> object) {
137 m_stateObject = object; 137 m_stateObject = object;
138 } 138 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // FIXME: We should find a better way to check if this is the current 170 // FIXME: We should find a better way to check if this is the current
171 // document. 171 // document.
172 return equalIgnoringFragmentIdentifier(url(), doc->url()); 172 return equalIgnoringFragmentIdentifier(url(), doc->url());
173 } 173 }
174 174
175 DEFINE_TRACE(HistoryItem) { 175 DEFINE_TRACE(HistoryItem) {
176 visitor->trace(m_documentState); 176 visitor->trace(m_documentState);
177 } 177 }
178 178
179 } // namespace blink 179 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/HistoryItem.h ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698