Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: chrome/browser/extensions/blob_reader.h

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 14 matching lines...) Expand all
25 // |blob_data| contains the portion of the Blob requested. |blob_total_size| 25 // |blob_data| contains the portion of the Blob requested. |blob_total_size|
26 // is the total size of the Blob, and may be larger than |blob_data->size()|. 26 // is the total size of the Blob, and may be larger than |blob_data->size()|.
27 // |blob_total_size| is -1 if it cannot be determined. 27 // |blob_total_size| is -1 if it cannot be determined.
28 typedef base::Callback<void(scoped_ptr<std::string> blob_data, 28 typedef base::Callback<void(scoped_ptr<std::string> blob_data,
29 int64 blob_total_size)> 29 int64 blob_total_size)>
30 BlobReadCallback; 30 BlobReadCallback;
31 31
32 BlobReader(Profile* profile, 32 BlobReader(Profile* profile,
33 const std::string& blob_uuid, 33 const std::string& blob_uuid,
34 BlobReadCallback callback); 34 BlobReadCallback callback);
35 virtual ~BlobReader(); 35 ~BlobReader() override;
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 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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/blacklist_state_fetcher.cc ('k') | chrome/browser/extensions/bookmark_app_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698