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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 assign(d); | 67 assign(d); |
68 return *this; | 68 return *this; |
69 } | 69 } |
70 | 70 |
71 void reset(); | 71 void reset(); |
72 void assign(const WebData&); | 72 void assign(const WebData&); |
73 void assign(const char* data, size_t size); | 73 void assign(const char* data, size_t size); |
74 | 74 |
75 size_t size() const; | 75 size_t size() const; |
76 const char* data() const; | 76 const char* data() const; |
77 #if INSIDE_BLINK | |
78 String toASCIIString() const; | |
eseidel
2014/09/04 07:05:34
I think we normally use CString for ascii-only str
vivekg
2014/09/04 07:44:28
This function was required earlier. Now that we ha
| |
79 #endif | |
77 | 80 |
78 bool isEmpty() const { return !size(); } | 81 bool isEmpty() const { return !size(); } |
79 bool isNull() const { return m_private.isNull(); } | 82 bool isNull() const { return m_private.isNull(); } |
80 | 83 |
81 #if INSIDE_BLINK | 84 #if INSIDE_BLINK |
82 WebData(const PassRefPtr<SharedBuffer>&); | 85 WebData(const PassRefPtr<SharedBuffer>&); |
83 WebData& operator=(const PassRefPtr<SharedBuffer>&); | 86 WebData& operator=(const PassRefPtr<SharedBuffer>&); |
84 operator PassRefPtr<SharedBuffer>() const; | 87 operator PassRefPtr<SharedBuffer>() const; |
85 #else | 88 #else |
86 template <class C> | 89 template <class C> |
(...skipping 10 matching lines...) Expand all Loading... | |
97 } | 100 } |
98 #endif | 101 #endif |
99 | 102 |
100 private: | 103 private: |
101 WebPrivatePtr<SharedBuffer> m_private; | 104 WebPrivatePtr<SharedBuffer> m_private; |
102 }; | 105 }; |
103 | 106 |
104 } // namespace blink | 107 } // namespace blink |
105 | 108 |
106 #endif | 109 #endif |
OLD | NEW |