| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |