bug 812562 - click-to-play: reshow notification for blocklisted plugins r=jaws
[gecko.git] / xpcom / ds / nsUnicharBuffer.h
blob4b649e3bc0e18292cc923817cb8cbbdf64485f64
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsUnicharBuffer_h__
7 #define nsUnicharBuffer_h__
9 #include "nsIUnicharBuffer.h"
10 #include "mozilla/Attributes.h"
12 class UnicharBufferImpl MOZ_FINAL : public nsIUnicharBuffer {
13 public:
14 UnicharBufferImpl();
16 static NS_METHOD
17 Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
19 NS_DECL_ISUPPORTS
20 NS_IMETHOD Init(uint32_t aBufferSize);
21 NS_IMETHOD_(int32_t) GetLength() const;
22 NS_IMETHOD_(int32_t) GetBufferSize() const;
23 NS_IMETHOD_(PRUnichar*) GetBuffer() const;
24 NS_IMETHOD_(bool) Grow(int32_t aNewSize);
26 PRUnichar* mBuffer;
27 uint32_t mSpace;
28 uint32_t mLength;
30 private:
31 ~UnicharBufferImpl();
34 #endif // nsUnicharBuffer_h__