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

Side by Side Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ARC_ARC_APP_LIST_PREFS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory>
11 #include <set> 12 #include <set>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "components/arc/arc_bridge_service.h" 21 #include "components/arc/arc_bridge_service.h"
22 #include "components/keyed_service/core/keyed_service.h" 22 #include "components/keyed_service/core/keyed_service.h"
23 #include "mojo/public/cpp/bindings/binding.h" 23 #include "mojo/public/cpp/bindings/binding.h"
24 #include "ui/base/layout.h" 24 #include "ui/base/layout.h"
25 25
26 class PrefService; 26 class PrefService;
27 27
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // It is called from chrome/browser/prefs/browser_prefs.cc. 95 // It is called from chrome/browser/prefs/browser_prefs.cc.
96 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 96 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
97 97
98 ~ArcAppListPrefs() override; 98 ~ArcAppListPrefs() override;
99 99
100 // Returns a list of all app ids, including ready and non-ready apps. 100 // Returns a list of all app ids, including ready and non-ready apps.
101 std::vector<std::string> GetAppIds() const; 101 std::vector<std::string> GetAppIds() const;
102 102
103 // Extracts attributes of an app based on its id. Returns NULL if the app is 103 // Extracts attributes of an app based on its id. Returns NULL if the app is
104 // not found. 104 // not found.
105 scoped_ptr<AppInfo> GetApp(const std::string& app_id) const; 105 std::unique_ptr<AppInfo> GetApp(const std::string& app_id) const;
106 106
107 // Constructs path to app local data. 107 // Constructs path to app local data.
108 base::FilePath GetAppPath(const std::string& app_id) const; 108 base::FilePath GetAppPath(const std::string& app_id) const;
109 109
110 // Constructs path to app icon for specific scale factor. 110 // Constructs path to app icon for specific scale factor.
111 base::FilePath GetIconPath(const std::string& app_id, 111 base::FilePath GetIconPath(const std::string& app_id,
112 ui::ScaleFactor scale_factor) const; 112 ui::ScaleFactor scale_factor) const;
113 113
114 // Sets last launched time for the requested app. 114 // Sets last launched time for the requested app.
115 void SetLastLaunchTime(const std::string& app_id, const base::Time& time); 115 void SetLastLaunchTime(const std::string& app_id, const base::Time& time);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 bool is_initialized_ = false; 174 bool is_initialized_ = false;
175 175
176 mojo::Binding<arc::AppHost> binding_; 176 mojo::Binding<arc::AppHost> binding_;
177 177
178 base::WeakPtrFactory<ArcAppListPrefs> weak_ptr_factory_; 178 base::WeakPtrFactory<ArcAppListPrefs> weak_ptr_factory_;
179 179
180 DISALLOW_COPY_AND_ASSIGN(ArcAppListPrefs); 180 DISALLOW_COPY_AND_ASSIGN(ArcAppListPrefs);
181 }; 181 };
182 182
183 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_ 183 #endif // CHROME_BROWSER_UI_APP_LIST_ARC_ARC_APP_LIST_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_item.h ('k') | chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698