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

Side by Side Diff: chrome/browser/ui/webui/settings/site_settings_handler.h

Issue 1698093007: Convert SiteSettingsCategory to use the HostContentSettingsMap instead of (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "chrome/browser/storage/storage_info_fetcher.h" 10 #include "chrome/browser/storage/storage_info_fetcher.h"
(...skipping 20 matching lines...) Expand all
31 void OnUsageInfoCleared(storage::QuotaStatusCode code); 31 void OnUsageInfoCleared(storage::QuotaStatusCode code);
32 32
33 private: 33 private:
34 // Asynchronously fetches the usage for a given origin. Replies back with 34 // Asynchronously fetches the usage for a given origin. Replies back with
35 // OnGetUsageInfo above. 35 // OnGetUsageInfo above.
36 void HandleFetchUsageTotal(const base::ListValue* args); 36 void HandleFetchUsageTotal(const base::ListValue* args);
37 37
38 // Deletes the storage being used for a given host. 38 // Deletes the storage being used for a given host.
39 void HandleClearUsage(const base::ListValue* args); 39 void HandleClearUsage(const base::ListValue* args);
40 40
41 // Gets and sets the default value for a particular content settings type.
42 void HandleSetDefaultValueForContentType(const base::ListValue* args);
43 void HandleGetDefaultValueForContentType(const base::ListValue* args);
44
41 Profile* profile_; 45 Profile* profile_;
42 46
43 // The host for which to fetch usage. 47 // The host for which to fetch usage.
44 std::string usage_host_; 48 std::string usage_host_;
45 49
46 // The origin for which to clear usage. 50 // The origin for which to clear usage.
47 std::string clearing_origin_; 51 std::string clearing_origin_;
48 52
49 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler); 53 DISALLOW_COPY_AND_ASSIGN(SiteSettingsHandler);
50 }; 54 };
51 55
52 } // namespace settings 56 } // namespace settings
53 57
54 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SITE_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698