Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / apps / per_app_settings_service.h
blob5832ca3058225175cc8e69d010ee345f21daf92f
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.
5 #ifndef CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_
6 #define CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_
8 #include <map>
9 #include <string>
11 #include "chrome/browser/ui/host_desktop.h"
12 #include "components/browser_context_keyed_service/browser_context_keyed_service.h"
14 // Stores settings for apps that only persist until the browser context is
15 // destroyed.
16 class PerAppSettingsService : public BrowserContextKeyedService {
17 public:
18 PerAppSettingsService();
19 virtual ~PerAppSettingsService();
21 // Sets/gets the desktop that |app_id| was last launched from.
22 void SetDesktopLastLaunchedFrom(
23 const std::string& app_id, chrome::HostDesktopType host);
24 chrome::HostDesktopType GetDesktopLastLaunchedFrom(
25 const std::string& app_id) const;
26 bool HasDesktopLastLaunchedFrom(const std::string& app_id) const;
28 private:
29 typedef std::map<std::string, chrome::HostDesktopType> DesktopMap;
30 DesktopMap default_desktops_;
32 DISALLOW_COPY_AND_ASSIGN(PerAppSettingsService);
35 #endif // CHROME_BROWSER_APPS_PER_APP_SETTINGS_SERVICE_H_