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

Side by Side Diff: Source/core/loader/FormSubmission.h

Issue 311033003: Implementing mixed content for forms posting to insecure location from secure ones (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed the error when action attribute is empty. Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/loader/FormSubmission.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 , m_isMultiPartForm(false) 60 , m_isMultiPartForm(false)
61 , m_encodingType("application/x-www-form-urlencoded", AtomicString:: ConstructFromLiteral) 61 , m_encodingType("application/x-www-form-urlencoded", AtomicString:: ConstructFromLiteral)
62 { 62 {
63 } 63 }
64 64
65 Method method() const { return m_method; } 65 Method method() const { return m_method; }
66 static Method parseMethodType(const String&); 66 static Method parseMethodType(const String&);
67 void updateMethodType(const String&); 67 void updateMethodType(const String&);
68 static String methodString(Method); 68 static String methodString(Method);
69 69
70 const String& action() const { return m_action; } 70 const KURL& action() const { return m_action; }
71 void parseAction(const String&); 71 void parseAction(const Document&, const String&);
72 72
73 const AtomicString& target() const { return m_target; } 73 const AtomicString& target() const { return m_target; }
74 void setTarget(const AtomicString& target) { m_target = target; } 74 void setTarget(const AtomicString& target) { m_target = target; }
75 75
76 const AtomicString& encodingType() const { return m_encodingType; } 76 const AtomicString& encodingType() const { return m_encodingType; }
77 static AtomicString parseEncodingType(const String&); 77 static AtomicString parseEncodingType(const String&);
78 void updateEncodingType(const String&); 78 void updateEncodingType(const String&);
79 bool isMultiPartForm() const { return m_isMultiPartForm; } 79 bool isMultiPartForm() const { return m_isMultiPartForm; }
80 80
81 const String& acceptCharset() const { return m_acceptCharset; } 81 const String& acceptCharset() const { return m_acceptCharset; }
82 void setAcceptCharset(const String& value) { m_acceptCharset = value; } 82 void setAcceptCharset(const String& value) { m_acceptCharset = value; }
83 83
84 void copyFrom(const Attributes&); 84 void copyFrom(const Attributes&);
85 85
86 private: 86 private:
87 Method m_method; 87 Method m_method;
88 bool m_isMultiPartForm; 88 bool m_isMultiPartForm;
89 89
90 String m_action; 90 KURL m_action;
91 AtomicString m_target; 91 AtomicString m_target;
92 AtomicString m_encodingType; 92 AtomicString m_encodingType;
93 String m_acceptCharset; 93 String m_acceptCharset;
94 }; 94 };
95 95
96 static PassRefPtr<FormSubmission> create(HTMLFormElement*, const Attributes& , PassRefPtrWillBeRawPtr<Event>, FormSubmissionTrigger); 96 static PassRefPtr<FormSubmission> create(HTMLFormElement*, const Attributes& , PassRefPtrWillBeRawPtr<Event>, FormSubmissionTrigger);
97 97
98 void populateFrameLoadRequest(FrameLoadRequest&); 98 void populateFrameLoadRequest(FrameLoadRequest&);
99 99
100 KURL requestURL() const; 100 KURL requestURL() const;
(...skipping 26 matching lines...) Expand all
127 String m_boundary; 127 String m_boundary;
128 RefPtrWillBePersistent<Event> m_event; 128 RefPtrWillBePersistent<Event> m_event;
129 Referrer m_referrer; 129 Referrer m_referrer;
130 String m_origin; 130 String m_origin;
131 String m_result; 131 String m_result;
132 }; 132 };
133 133
134 } 134 }
135 135
136 #endif // FormSubmission_h 136 #endif // FormSubmission_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/loader/FormSubmission.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698