Chromium Code Reviews| Index: src/bz2-decompress.h |
| diff --git a/src/natives.h b/src/bz2-decompress.h |
| similarity index 60% |
| copy from src/natives.h |
| copy to src/bz2-decompress.h |
| index ce90eac24878a6004db09bc1e35c67e0a6d2e3db..d3b9af859f02ec1d7f911326fc3c66c82796a474 100644 |
| --- a/src/natives.h |
| +++ b/src/bz2-decompress.h |
| @@ -25,40 +25,17 @@ |
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| -#ifndef V8_NATIVES_H_ |
| -#define V8_NATIVES_H_ |
| +#ifndef V8_BZ2_DECOMPRESS_H_ |
| +#define V8_BZ2_DECOMPRESS_H_ |
| -namespace v8 { |
| -namespace internal { |
| - |
| -typedef bool (*NativeSourceCallback)(Vector<const char> name, |
| - Vector<const char> source, |
| - int index); |
| - |
| -enum NativeType { |
| - CORE, EXPERIMENTAL, D8 |
| -}; |
| - |
| -template <NativeType type> |
| -class NativesCollection { |
| +class BZip2Decompressor { |
|
Vitaly Repeshko
2011/06/06 15:59:15
This should be some namespace and should be docume
|
| public: |
| - // Number of built-in scripts. |
| - static int GetBuiltinsCount(); |
| - // Number of debugger implementation scripts. |
| - static int GetDebuggerCount(); |
| + BZip2Decompressor(); |
| + ~BZip2Decompressor(); |
| + int DecompressStartupData(); |
| - // These are used to access built-in scripts. The debugger implementation |
| - // scripts have an index in the interval [0, GetDebuggerCount()). The |
| - // non-debugger scripts have an index in the interval [GetDebuggerCount(), |
| - // GetNativesCount()). |
| - static int GetIndex(const char* name); |
| - static Vector<const char> GetScriptSource(int index); |
| - static Vector<const char> GetScriptName(int index); |
| + private: |
| + char** raw_data; |
| }; |
| -typedef NativesCollection<CORE> Natives; |
| -typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives; |
| - |
| -} } // namespace v8::internal |
| - |
| -#endif // V8_NATIVES_H_ |
| +#endif // V8_BZ2_DECOMPRESS_H_ |