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

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

Issue 722723003: Re-land 714393002 after fixing android build. (Closed) Base URL: git@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)
54 KURL(KURL&&); 53 KURL(KURL&&);
55 KURL& operator=(KURL&&); 54 KURL& operator=(KURL&&);
56 #endif
57 55
58 // The argument is an absolute URL string. The string is assumed to be 56 // The argument is an absolute URL string. The string is assumed to be
59 // output of KURL::string() called on a valid KURL object, or indiscernible 57 // output of KURL::string() called on a valid KURL object, or indiscernible
60 // from such. It is usually best to avoid repeatedly parsing a string, 58 // from such. It is usually best to avoid repeatedly parsing a string,
61 // unless memory saving outweigh the possible slow-downs. 59 // unless memory saving outweigh the possible slow-downs.
62 KURL(ParsedURLStringTag, const String&); 60 KURL(ParsedURLStringTag, const String&);
63 explicit KURL(WTF::HashTableDeletedValueType); 61 explicit KURL(WTF::HashTableDeletedValueType);
64 62
65 // Creates an isolated URL object suitable for sending to another thread. 63 // Creates an isolated URL object suitable for sending to another thread.
66 static KURL createIsolated(ParsedURLStringTag, const String&); 64 static KURL createIsolated(ParsedURLStringTag, const String&);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 namespace WTF { 268 namespace WTF {
271 269
272 // KURLHash is the default hash for String 270 // KURLHash is the default hash for String
273 template<> struct DefaultHash<blink::KURL> { 271 template<> struct DefaultHash<blink::KURL> {
274 typedef blink::KURLHash Hash; 272 typedef blink::KURLHash Hash;
275 }; 273 };
276 274
277 } // namespace WTF 275 } // namespace WTF
278 276
279 #endif // KURL_h 277 #endif // KURL_h
OLDNEW
« no previous file with comments | « sky/engine/platform/transforms/TransformationMatrix.h ('k') | sky/engine/platform/weborigin/KURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698