| 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 28 matching lines...) Expand all Loading... |
| 39 #endif | 39 #endif |
| 40 #if !INSIDE_BLINK || defined(UNIT_TEST) | 40 #if !INSIDE_BLINK || defined(UNIT_TEST) |
| 41 #include <string> | 41 #include <string> |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 namespace WTF { | 44 namespace WTF { |
| 45 class CString; | 45 class CString; |
| 46 class CStringBuffer; | 46 class CStringBuffer; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace WebKit { | 49 namespace blink { |
| 50 | 50 |
| 51 class WebString; | 51 class WebString; |
| 52 | 52 |
| 53 // A single-byte string container with unspecified encoding. It is | 53 // A single-byte string container with unspecified encoding. It is |
| 54 // inexpensive to copy a WebCString object. | 54 // inexpensive to copy a WebCString object. |
| 55 // | 55 // |
| 56 // WARNING: It is not safe to pass a WebCString across threads!!! | 56 // WARNING: It is not safe to pass a WebCString across threads!!! |
| 57 // | 57 // |
| 58 class WebCString { | 58 class WebCString { |
| 59 public: | 59 public: |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 private: | 124 private: |
| 125 BLINK_COMMON_EXPORT void assign(WTF::CStringBuffer*); | 125 BLINK_COMMON_EXPORT void assign(WTF::CStringBuffer*); |
| 126 WebPrivatePtr<WTF::CStringBuffer> m_private; | 126 WebPrivatePtr<WTF::CStringBuffer> m_private; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 inline bool operator<(const WebCString& a, const WebCString& b) | 129 inline bool operator<(const WebCString& a, const WebCString& b) |
| 130 { | 130 { |
| 131 return a.compare(b) < 0; | 131 return a.compare(b) < 0; |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace WebKit | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |