| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const std::string& blob_uuid, | 33 const std::string& blob_uuid, |
| 34 BlobReadCallback callback); | 34 BlobReadCallback callback); |
| 35 virtual ~BlobReader(); | 35 virtual ~BlobReader(); |
| 36 | 36 |
| 37 void SetByteRange(int64 offset, int64 length); | 37 void SetByteRange(int64 offset, int64 length); |
| 38 | 38 |
| 39 void Start(); | 39 void Start(); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // Overridden from net::URLFetcherDelegate. | 42 // Overridden from net::URLFetcherDelegate. |
| 43 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 43 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 44 | 44 |
| 45 BlobReadCallback callback_; | 45 BlobReadCallback callback_; |
| 46 scoped_ptr<net::URLFetcher> fetcher_; | 46 scoped_ptr<net::URLFetcher> fetcher_; |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(BlobReader); | 48 DISALLOW_COPY_AND_ASSIGN(BlobReader); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 #endif // CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ | 51 #endif // CHROME_BROWSER_EXTENSIONS_BLOB_READER_H_ |
| OLD | NEW |