diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-16 23:58:27 +0000 |
commit | b5ab398db97d13c76d332c6567c23a575858f8c4 (patch) | |
tree | 54a5771b49afbb92470d92b82bcac1a78d10f2f8 /chrome/renderer/mock_printer.h | |
parent | 77bd2cefb7f0f8f437b47b3d6a3dd458b8d4fe2e (diff) | |
download | chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.zip chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.gz chromium_src-b5ab398db97d13c76d332c6567c23a575858f8c4.tar.bz2 |
Make SharedMemory use uint32 instead of size_t. This removes the remaining size_t's from the IPC code.
Review URL: http://codereview.chromium.org/581001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_printer.h')
-rw-r--r-- | chrome/renderer/mock_printer.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h index 80f6c4b..c97f149 100644 --- a/chrome/renderer/mock_printer.h +++ b/chrome/renderer/mock_printer.h @@ -24,7 +24,7 @@ struct ViewHostMsg_DidPrintPage_Params; class MockPrinterPage : public base::RefCounted<MockPrinterPage> { public: MockPrinterPage(const void* source_data, - size_t source_size, + uint32 source_size, const printing::Image& image) : source_size_(source_size), image_(image) { @@ -40,11 +40,11 @@ class MockPrinterPage : public base::RefCounted<MockPrinterPage> { int width() const { return image_.size().width(); } int height() const { return image_.size().height(); } const uint8* source_data() const { return source_data_.get(); } - const size_t source_size() const { return source_size_; } + const uint32 source_size() const { return source_size_; } const printing::Image& image() const { return image_; } private: - size_t source_size_; + uint32 source_size_; scoped_array<uint8> source_data_; printing::Image image_; @@ -89,19 +89,19 @@ class MockPrinter { // Get a pointer to the printed page, returns NULL if pageno has not been // printed. The pointer is for read only view and should not be deleted. - const MockPrinterPage* GetPrintedPage(size_t pageno) const; + const MockPrinterPage* GetPrintedPage(unsigned int pageno) const; - int GetWidth(size_t page) const; - int GetHeight(size_t page) const; - bool GetBitmapChecksum(size_t page, std::string* checksum) const; - bool GetSource(size_t page, const void** data, size_t* size) const; - bool GetBitmap(size_t page, const void** data, size_t* size) const; - bool SaveSource(size_t page, const FilePath& filepath) const; - bool SaveBitmap(size_t page, const FilePath& filepath) const; + int GetWidth(unsigned int page) const; + int GetHeight(unsigned int page) const; + bool GetBitmapChecksum(unsigned int page, std::string* checksum) const; + bool GetSource(unsigned int page, const void** data, uint32* size) const; + bool GetBitmap(unsigned int page, const void** data, uint32* size) const; + bool SaveSource(unsigned int page, const FilePath& filepath) const; + bool SaveBitmap(unsigned int page, const FilePath& filepath) const; protected: int CreateDocumentCookie(); - bool GetChecksum(const void* data, size_t size, std::string* checksum) const; + bool GetChecksum(const void* data, uint32 size, std::string* checksum) const; private: // In pixels according to dpi_x and dpi_y. |