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

Side by Side Diff: Source/core/html/FormController.h

Issue 18228003: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // This should be callled only by Document::setStateForNewFormElements(). 89 // This should be callled only by Document::setStateForNewFormElements().
90 void setStateForNewFormElements(const Vector<String>&); 90 void setStateForNewFormElements(const Vector<String>&);
91 void willDeleteForm(HTMLFormElement*); 91 void willDeleteForm(HTMLFormElement*);
92 void restoreControlStateFor(HTMLFormControlElementWithState&); 92 void restoreControlStateFor(HTMLFormControlElementWithState&);
93 void restoreControlStateIn(HTMLFormElement&); 93 void restoreControlStateIn(HTMLFormElement&);
94 94
95 static Vector<String> getReferencedFilePaths(const Vector<String>& stateVect or); 95 static Vector<String> getReferencedFilePaths(const Vector<String>& stateVect or);
96 96
97 private: 97 private:
98 typedef ListHashSet<RefPtr<HTMLFormControlElementWithState>, 64> FormElement ListHashSet; 98 typedef ListHashSet<RefPtr<HTMLFormControlElementWithState>, 64> FormElement ListHashSet;
99 typedef HashMap<RefPtr<AtomicStringImpl>, OwnPtr<SavedFormState> > SavedForm StateMap; 99 typedef HashMap<RefPtr<StringImpl>, OwnPtr<SavedFormState> > SavedFormStateM ap;
100 100
101 FormController(); 101 FormController();
102 static PassOwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormEleme ntListHashSet&); 102 static PassOwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormEleme ntListHashSet&);
103 FormControlState takeStateForFormElement(const HTMLFormControlElementWithSta te&); 103 FormControlState takeStateForFormElement(const HTMLFormControlElementWithSta te&);
104 static void formStatesFromStateVector(const Vector<String>&, SavedFormStateM ap&); 104 static void formStatesFromStateVector(const Vector<String>&, SavedFormStateM ap&);
105 105
106 CheckedRadioButtons m_checkedRadioButtons; 106 CheckedRadioButtons m_checkedRadioButtons;
107 FormElementListHashSet m_formElementsWithState; 107 FormElementListHashSet m_formElementsWithState;
108 SavedFormStateMap m_savedFormStateMap; 108 SavedFormStateMap m_savedFormStateMap;
109 OwnPtr<FormKeyGenerator> m_formKeyGenerator; 109 OwnPtr<FormKeyGenerator> m_formKeyGenerator;
110 }; 110 };
111 111
112 } // namespace WebCore 112 } // namespace WebCore
113 #endif 113 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698