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

Side by Side Diff: chrome/browser/ui/app_list/search/search_webstore_result.h

Issue 1865213004: Convert //chrome/browser/ui 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 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_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/app_list/search_result.h" 11 #include "ui/app_list/search_result.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 class AppListControllerDelegate; 14 class AppListControllerDelegate;
15 class Profile; 15 class Profile;
16 16
17 namespace app_list { 17 namespace app_list {
18 18
19 // A "search in webstore" result. 19 // A "search in webstore" result.
20 class SearchWebstoreResult : public SearchResult { 20 class SearchWebstoreResult : public SearchResult {
21 public: 21 public:
22 SearchWebstoreResult(Profile* profile, 22 SearchWebstoreResult(Profile* profile,
23 AppListControllerDelegate* controller, 23 AppListControllerDelegate* controller,
24 const std::string& query); 24 const std::string& query);
25 ~SearchWebstoreResult() override; 25 ~SearchWebstoreResult() override;
26 26
27 // SearchResult overrides: 27 // SearchResult overrides:
28 void Open(int event_flags) override; 28 void Open(int event_flags) override;
29 scoped_ptr<SearchResult> Duplicate() const override; 29 std::unique_ptr<SearchResult> Duplicate() const override;
30 30
31 private: 31 private:
32 Profile* profile_; 32 Profile* profile_;
33 AppListControllerDelegate* controller_; 33 AppListControllerDelegate* controller_;
34 const std::string query_; 34 const std::string query_;
35 GURL launch_url_; 35 GURL launch_url_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult); 37 DISALLOW_COPY_AND_ASSIGN(SearchWebstoreResult);
38 }; 38 };
39 39
40 } // namespace app_list 40 } // namespace app_list
41 41
42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_ 42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_WEBSTORE_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698