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

Side by Side Diff: chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT ION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT ION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT ION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT ION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void VerifyDownloadCompare(const base::Closure& continuation, 64 void VerifyDownloadCompare(const base::Closure& continuation,
65 const std::string& download_hash); 65 const std::string& download_hash);
66 void VerifyDownloadComplete(const base::Closure& continuation); 66 void VerifyDownloadComplete(const base::Closure& continuation);
67 67
68 // Arguments 68 // Arguments
69 net::URLRequestContextGetter* request_context_; 69 net::URLRequestContextGetter* request_context_;
70 GURL url_; 70 GURL url_;
71 const std::string hash_; 71 const std::string hash_;
72 72
73 // Local state 73 // Local state
74 scoped_ptr<net::URLFetcher> url_fetcher_; 74 std::unique_ptr<net::URLFetcher> url_fetcher_;
75 base::Closure download_continuation_; 75 base::Closure download_continuation_;
76 }; 76 };
77 77
78 } // namespace image_writer 78 } // namespace image_writer
79 } // namespace extensions 79 } // namespace extensions
80 80
81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE RATION_H_ 81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE RATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698