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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMURLUtils.h

Issue 1860623002: Add support for URL.searchParams getter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restrict .searchParams to URL only Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Motorola Mobility Inc. 3 * Copyright (C) 2012 Motorola Mobility Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class KURL; 36 class KURL;
37 37
38 class CORE_EXPORT DOMURLUtils : public DOMURLUtilsReadOnly { 38 class CORE_EXPORT DOMURLUtils : public DOMURLUtilsReadOnly {
39 public: 39 public:
40 virtual void setURL(const KURL&) = 0; 40 virtual void setURL(const KURL&) = 0;
41 virtual void setInput(const String&) = 0; 41 virtual void setInput(const String&) = 0;
42 ~DOMURLUtils() override { } 42 ~DOMURLUtils() override;
43 43
44 void setHref(const String&); 44 void setHref(const String&);
45 45
46 void setProtocol(const String&); 46 void setProtocol(const String&);
47 void setUsername(const String&); 47 void setUsername(const String&);
48 void setPassword(const String&); 48 void setPassword(const String&);
49 void setHost(const String&); 49 void setHost(const String&);
50 void setHostname(const String&); 50 void setHostname(const String&);
51 void setPort(const String&); 51 void setPort(const String&);
52 void setPathname(const String&); 52 void setPathname(const String&);
53 void setSearch(const String&);
54 void setHash(const String&); 53 void setHash(const String&);
54 virtual void setSearch(const String&);
55
56 protected:
57 void setQuery(const String&);
Mike West 2016/04/05 12:43:51 Nit: Maybe `setSearchInternal`? Distinguishing bet
sof 2016/04/05 15:23:18 Good idea, done.
55 }; 58 };
56 59
57 } // namespace blink 60 } // namespace blink
58 61
59 #endif // DOMURLUtils_h 62 #endif // DOMURLUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698