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

Side by Side Diff: third_party/WebKit/public/platform/WebData.h

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool isEmpty() const { return !size(); } 76 bool isEmpty() const { return !size(); }
77 bool isNull() const { return m_private.isNull(); } 77 bool isNull() const { return m_private.isNull(); }
78 78
79 #if INSIDE_BLINK 79 #if INSIDE_BLINK
80 WebData(PassRefPtr<SharedBuffer>); 80 WebData(PassRefPtr<SharedBuffer>);
81 WebData& operator=(PassRefPtr<SharedBuffer>); 81 WebData& operator=(PassRefPtr<SharedBuffer>);
82 operator PassRefPtr<SharedBuffer>() const; 82 operator PassRefPtr<SharedBuffer>() const;
83 #else 83 #else
84 template <class C> 84 template <class C>
85 WebData(const C& c) { 85 WebData(const C& c) {
86 /* DO NOT SUBMIT - merge conflict marker
87 * Please spell |data| and |size| (rather than |Data| and |Size|) below. */
86 assign(c.data(), c.size()); 88 assign(c.data(), c.size());
87 } 89 }
88 90
89 template <class C> 91 template <class C>
90 WebData& operator=(const C& c) { 92 WebData& operator=(const C& c) {
93 /* DO NOT SUBMIT - merge conflict marker
94 * Please spell |data| and |size| (rather than |Data| and |Size|) below. */
91 assign(c.data(), c.size()); 95 assign(c.data(), c.size());
92 return *this; 96 return *this;
93 } 97 }
94 #endif 98 #endif
95 99
96 private: 100 private:
97 WebPrivatePtr<SharedBuffer> m_private; 101 WebPrivatePtr<SharedBuffer> m_private;
98 }; 102 };
99 103
100 } // namespace blink 104 } // namespace blink
101 105
102 #endif 106 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698