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

Side by Side Diff: ios/web/webui/url_data_source_ios_impl.h

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_ 5 #ifndef IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_
6 #define IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_ 6 #define IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/sequenced_task_runner_helpers.h" 11 #include "base/sequenced_task_runner_helpers.h"
11 #include "ios/web/webui/url_data_manager_ios.h" 12 #include "ios/web/webui/url_data_manager_ios.h"
12 13
13 namespace base { 14 namespace base {
14 class RefCountedMemory; 15 class RefCountedMemory;
15 } 16 }
16 17
17 namespace web { 18 namespace web {
18 class URLDataManagerIOSBackend; 19 class URLDataManagerIOSBackend;
19 class URLDataSourceIOS; 20 class URLDataSourceIOS;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 85
85 // This field is set and maintained by URLDataManagerIOSBackend. It is set 86 // This field is set and maintained by URLDataManagerIOSBackend. It is set
86 // when the DataSource is added, and unset if the DataSource is removed. A 87 // when the DataSource is added, and unset if the DataSource is removed. A
87 // DataSource can be removed in two ways: the URLDataManagerIOSBackend is 88 // DataSource can be removed in two ways: the URLDataManagerIOSBackend is
88 // deleted, or another DataSource is registered with the same name. backend_ 89 // deleted, or another DataSource is registered with the same name. backend_
89 // should only be accessed on the IO thread. This reference can't be via a 90 // should only be accessed on the IO thread. This reference can't be via a
90 // scoped_refptr else there would be a cycle between the backend and data 91 // scoped_refptr else there would be a cycle between the backend and data
91 // source. 92 // source.
92 URLDataManagerIOSBackend* backend_; 93 URLDataManagerIOSBackend* backend_;
93 94
94 scoped_ptr<URLDataSourceIOS> source_; 95 std::unique_ptr<URLDataSourceIOS> source_;
95 }; 96 };
96 97
97 } // namespace web 98 } // namespace web
98 99
99 #endif // IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_ 100 #endif // IOS_INTERNAL_WEB_WEBUI_URL_DATA_SOURCE_IMPL_IOS_H_
OLDNEW
« no previous file with comments | « ios/web/webui/url_data_manager_ios_backend.mm ('k') | ios/web/webui/url_fetcher_block_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698