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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/KURL.h

Issue 2247063002: Allow loading MHTML archive from content scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All r ights 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool hasFragmentIdentifier() const; 130 bool hasFragmentIdentifier() const;
131 131
132 String baseAsString() const; 132 String baseAsString() const;
133 133
134 // Returns true if the current URL's protocol is the same as the null- 134 // Returns true if the current URL's protocol is the same as the null-
135 // terminated ASCII argument. The argument must be lower-case. 135 // terminated ASCII argument. The argument must be lower-case.
136 bool protocolIs(const char*) const; 136 bool protocolIs(const char*) const;
137 bool protocolIsData() const { return protocolIs("data"); } 137 bool protocolIsData() const { return protocolIs("data"); }
138 // This includes at least about:blank and about:srcdoc. 138 // This includes at least about:blank and about:srcdoc.
139 bool protocolIsAbout() const { return protocolIs("about"); } 139 bool protocolIsAbout() const { return protocolIs("about"); }
140 bool protocolIsContent() const { return protocolIs("content"); }
jianli 2016/08/15 23:12:02 Probably no need to add a general check here since
Vivian 2016/08/16 21:00:44 Done.
140 bool protocolIsInHTTPFamily() const; 141 bool protocolIsInHTTPFamily() const;
141 bool isLocalFile() const; 142 bool isLocalFile() const;
142 bool isAboutBlankURL() const; // Is exactly about:blank. 143 bool isAboutBlankURL() const; // Is exactly about:blank.
143 bool isAboutSrcdocURL() const; // Is exactly about:srcdoc. 144 bool isAboutSrcdocURL() const; // Is exactly about:srcdoc.
144 145
145 bool setProtocol(const String&); 146 bool setProtocol(const String&);
146 void setHost(const String&); 147 void setHost(const String&);
147 148
148 void removePort(); 149 void removePort();
149 void setPort(unsigned short); 150 void setPort(unsigned short);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 namespace WTF { 274 namespace WTF {
274 275
275 // KURLHash is the default hash for String 276 // KURLHash is the default hash for String
276 template<> struct DefaultHash<blink::KURL> { 277 template<> struct DefaultHash<blink::KURL> {
277 typedef blink::KURLHash Hash; 278 typedef blink::KURLHash Hash;
278 }; 279 };
279 280
280 } // namespace WTF 281 } // namespace WTF
281 282
282 #endif // KURL_h 283 #endif // KURL_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698