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

Side by Side Diff: Source/platform/network/HTTPHeaderMap.h

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 PassOwnPtr<CrossThreadHTTPHeaderMapData> copyData() const; 50 PassOwnPtr<CrossThreadHTTPHeaderMapData> copyData() const;
51 51
52 void adopt(PassOwnPtr<CrossThreadHTTPHeaderMapData>); 52 void adopt(PassOwnPtr<CrossThreadHTTPHeaderMapData>);
53 53
54 AtomicString get(const AtomicString& name) const; 54 AtomicString get(const AtomicString& name) const;
55 55
56 AddResult add(const AtomicString& name, const AtomicString& value); 56 AddResult add(const AtomicString& name, const AtomicString& value);
57 57
58 // Alternate accessors that are faster than converting the char* to AtomicSt ring first. 58 // Alternate accessors that are faster than converting the char* to AtomicSt ring first.
59 bool contains(const char*) const; 59 bool contains(const char*) const;
60 AtomicString get(const char*) const; 60 const AtomicString& get(const char*) const;
61 AddResult add(const char* name, const AtomicString& value); 61 AddResult add(const char* name, const AtomicString& value);
62 62
63 }; 63 };
64 64
65 } // namespace WebCore 65 } // namespace WebCore
66 66
67 #endif // HTTPHeaderMap_h 67 #endif // HTTPHeaderMap_h
OLDNEW
« no previous file with comments | « Source/modules/websockets/WebSocketHandshake.cpp ('k') | Source/platform/network/HTTPHeaderMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698