| Index: printing/native_metafile_factory.h
|
| diff --git a/printing/native_metafile_factory.h b/printing/native_metafile_factory.h
|
| index b13f17a4708efb5b0359f2e95faecc9a1459157a..610970f2a3104cc636b94994861f9ca88d3d13b0 100644
|
| --- a/printing/native_metafile_factory.h
|
| +++ b/printing/native_metafile_factory.h
|
| @@ -17,11 +17,23 @@ namespace printing {
|
| class NativeMetafileFactory {
|
| public:
|
| // This method returns a pointer to the appropriate NativeMetafile object
|
| - // according to the platform.
|
| + // according to the platform. The metafile is already initialized by invoking
|
| + // Init() on it. NULL is returned if Init() fails.
|
| static printing::NativeMetafile* Create();
|
|
|
| + // This method returns a pointer to the appropriate NativeMetafile object
|
| + // according to the platform. The metafile is already initialized by invoking
|
| + // InitFromData(src_buffer,_buffer_size) on it. NULL is returned if
|
| + // InitiFromData() fails.
|
| + static printing::NativeMetafile* CreateFromData(const void* src_buffer,
|
| + uint32 src_buffer_size);
|
| +
|
| private:
|
| NativeMetafileFactory();
|
| +
|
| + // Retrieves a new uninitialized metafile.
|
| + static NativeMetafile* CreateNewMetafile();
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NativeMetafileFactory);
|
| };
|
|
|
|
|