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

Unified Diff: Source/core/dom/URLQuery.h

Issue 141003005: Old CL related to URL query (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/URL.idl ('k') | Source/core/dom/URLQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/URLQuery.h
diff --git a/Source/core/inspector/InspectorOverlayHost.h b/Source/core/dom/URLQuery.h
similarity index 62%
copy from Source/core/inspector/InspectorOverlayHost.h
copy to Source/core/dom/URLQuery.h
index af2739c35f737dbf317a2918d920f40fd712de1a..5179f35a23b906315327e9f215f7e625be795d04 100644
--- a/Source/core/inspector/InspectorOverlayHost.h
+++ b/Source/core/dom/URLQuery.h
@@ -10,9 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -26,40 +23,50 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InspectorOverlayHost_h
-#define InspectorOverlayHost_h
+#ifndef URLQuery_h
+#define URLQuery_h
#include "bindings/v8/ScriptWrappable.h"
+#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+#include "wtf/Vector.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
-class InspectorOverlayHost : public RefCounted<InspectorOverlayHost>, public ScriptWrappable {
+class URLQuery : public ScriptWrappable, public RefCounted<URLQuery> {
+
public:
- static PassRefPtr<InspectorOverlayHost> create()
+ static PassRefPtr<URLQuery> create()
+ {
+ return create("");
+ }
+ static PassRefPtr<URLQuery> create(const String& init)
+ {
+ return adoptRef(new URLQuery(init));
+ }
+ static PassRefPtr<URLQuery> create(PassRefPtr<URLQuery> init)
{
- return adoptRef(new InspectorOverlayHost());
+ return adoptRef(new URLQuery(init));
}
- ~InspectorOverlayHost();
- void resume();
- void stepOver();
+ void append(const String& name, const String& value);
+ void deleteFunction(const String&);
+ String get(const String&);
+ const Vector<String> getAll(const String&);
+ bool has(const String&);
+ void set(const String& name, const String& value);
- class Listener {
- public:
- virtual ~Listener() { }
- virtual void overlayResumed() = 0;
- virtual void overlaySteppedOver() = 0;
- };
- void setListener(Listener* listener) { m_listener = listener; }
+ String toString() const;
private:
- InspectorOverlayHost();
+ URLQuery(const String& url);
+ URLQuery(PassRefPtr<URLQuery>);
- Listener* m_listener;
+ Vector<pair<String, String> > m_entries;
};
} // namespace WebCore
-#endif // !defined(InspectorOverlayHost_h)
+#endif // URLQuery_h
« no previous file with comments | « Source/core/dom/URL.idl ('k') | Source/core/dom/URLQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698