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

Side by Side Diff: chrome/browser/apps/per_app_settings_service.h

Issue 1682183002: Remove PerAppSettingsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/apps/per_app_settings_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_
7
8 #include <map>
9 #include <string>
10
11 #include "base/macros.h"
12 #include "chrome/browser/ui/host_desktop.h"
13 #include "components/keyed_service/core/keyed_service.h"
14
15 // Stores settings for apps that only persist until the browser context is
16 // destroyed.
17 class PerAppSettingsService : public KeyedService {
18 public:
19 PerAppSettingsService();
20 ~PerAppSettingsService() override;
21
22 // Sets/gets the desktop that |app_id| was last launched from.
23 void SetDesktopLastLaunchedFrom(
24 const std::string& app_id, chrome::HostDesktopType host);
25 chrome::HostDesktopType GetDesktopLastLaunchedFrom(
26 const std::string& app_id) const;
27 bool HasDesktopLastLaunchedFrom(const std::string& app_id) const;
28
29 private:
30 typedef std::map<std::string, chrome::HostDesktopType> DesktopMap;
31 DesktopMap default_desktops_;
32
33 DISALLOW_COPY_AND_ASSIGN(PerAppSettingsService);
34 };
35
36 #endif // CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_
37
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/apps/per_app_settings_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698