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

Side by Side Diff: content/renderer/fetchers/multi_resolution_image_resource_fetcher.h

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ 5 #ifndef CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_
6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ 6 #define CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/callback.h" 12 #include "base/callback.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "third_party/WebKit/public/platform/WebURLRequest.h" 14 #include "third_party/WebKit/public/platform/WebURLRequest.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 class SkBitmap; 17 class SkBitmap;
18 18
19 namespace blink { 19 namespace blink {
20 class WebFrame; 20 class WebFrame;
21 class WebURLResponse; 21 class WebURLResponse;
22 enum class WebCachePolicy; 22 enum class WebCachePolicy;
23 } 23 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Unique identifier for the request. 62 // Unique identifier for the request.
63 const int id_; 63 const int id_;
64 64
65 // HTTP status code upon fetch completion. 65 // HTTP status code upon fetch completion.
66 int http_status_code_; 66 int http_status_code_;
67 67
68 // URL of the image. 68 // URL of the image.
69 const GURL image_url_; 69 const GURL image_url_;
70 70
71 // Does the actual download. 71 // Does the actual download.
72 scoped_ptr<ResourceFetcher> fetcher_; 72 std::unique_ptr<ResourceFetcher> fetcher_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher); 74 DISALLOW_COPY_AND_ASSIGN(MultiResolutionImageResourceFetcher);
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_ 79 #endif // CONTENT_RENDERER_FETCHERS_MULTI_RESOLUTION_IMAGE_RESOURCE_FETCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/manifest_fetcher.h ('k') | content/renderer/fetchers/resource_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698