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

Side by Side Diff: sky/engine/platform/weborigin/KURL.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 struct KURLHash; 43 struct KURLHash;
44 44
45 enum ParsedURLStringTag { ParsedURLString }; 45 enum ParsedURLStringTag { ParsedURLString };
46 46
47 class PLATFORM_EXPORT KURL { 47 class PLATFORM_EXPORT KURL {
48 public: 48 public:
49 KURL(); 49 KURL();
50 KURL(const KURL&); 50 KURL(const KURL&);
51 KURL& operator=(const KURL&); 51 KURL& operator=(const KURL&);
52 52
53 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
53 KURL(KURL&&); 54 KURL(KURL&&);
54 KURL& operator=(KURL&&); 55 KURL& operator=(KURL&&);
56 #endif
55 57
56 // The argument is an absolute URL string. The string is assumed to be 58 // The argument is an absolute URL string. The string is assumed to be
57 // output of KURL::string() called on a valid KURL object, or indiscernible 59 // output of KURL::string() called on a valid KURL object, or indiscernible
58 // from such. It is usually best to avoid repeatedly parsing a string, 60 // from such. It is usually best to avoid repeatedly parsing a string,
59 // unless memory saving outweigh the possible slow-downs. 61 // unless memory saving outweigh the possible slow-downs.
60 KURL(ParsedURLStringTag, const String&); 62 KURL(ParsedURLStringTag, const String&);
61 explicit KURL(WTF::HashTableDeletedValueType); 63 explicit KURL(WTF::HashTableDeletedValueType);
62 64
63 // Creates an isolated URL object suitable for sending to another thread. 65 // Creates an isolated URL object suitable for sending to another thread.
64 static KURL createIsolated(ParsedURLStringTag, const String&); 66 static KURL createIsolated(ParsedURLStringTag, const String&);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 namespace WTF { 270 namespace WTF {
269 271
270 // KURLHash is the default hash for String 272 // KURLHash is the default hash for String
271 template<> struct DefaultHash<blink::KURL> { 273 template<> struct DefaultHash<blink::KURL> {
272 typedef blink::KURLHash Hash; 274 typedef blink::KURLHash Hash;
273 }; 275 };
274 276
275 } // namespace WTF 277 } // namespace WTF
276 278
277 #endif // KURL_h 279 #endif // KURL_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698