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

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

Issue 307193002: Un-inline KURL's default constructor to avoid bloating (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 } 39 }
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
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 : m_isValid(false)
51 , m_protocolIsInHTTPFamily(false)
52 {
53 }
54
55 KURL(const KURL&); 50 KURL(const KURL&);
56 KURL& operator=(const KURL&); 51 KURL& operator=(const KURL&);
57 52
58 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES) 53 #if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
59 KURL(KURL&&); 54 KURL(KURL&&);
60 KURL& operator=(KURL&&); 55 KURL& operator=(KURL&&);
61 #endif 56 #endif
62 57
63 // 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
64 // 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
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 271
277 // KURLHash is the default hash for String 272 // KURLHash is the default hash for String
278 template<typename T> struct DefaultHash; 273 template<typename T> struct DefaultHash;
279 template<> struct DefaultHash<WebCore::KURL> { 274 template<> struct DefaultHash<WebCore::KURL> {
280 typedef WebCore::KURLHash Hash; 275 typedef WebCore::KURLHash Hash;
281 }; 276 };
282 277
283 } // namespace WTF 278 } // namespace WTF
284 279
285 #endif // KURL_h 280 #endif // KURL_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/weborigin/KURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698