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

Unified Diff: chrome/common/content_settings.h

Issue 7831075: Delegating the "are images allowed" decision to renderer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Doc fix. Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | chrome/common/content_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/content_settings.h
diff --git a/chrome/common/content_settings.h b/chrome/common/content_settings.h
index 4731263f7d15d5a891598d56bac153374421f53d..c0776e327cf899dddfa941a1bbfe7bdf5a78c174 100644
--- a/chrome/common/content_settings.h
+++ b/chrome/common/content_settings.h
@@ -6,6 +6,10 @@
#define CHROME_COMMON_CONTENT_SETTINGS_H_
#pragma once
+#include <string>
+#include <vector>
+
+#include "chrome/common/content_settings_pattern.h"
#include "chrome/common/content_settings_types.h"
// Different settings that can be assigned for a particular content type. We
@@ -25,17 +29,26 @@ ContentSetting IntToContentSetting(int content_setting);
// Aggregates the permissions for the different content types.
struct ContentSettings {
- ContentSettings() {
- for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i)
- settings[i] = CONTENT_SETTING_DEFAULT;
- }
-
- explicit ContentSettings(ContentSetting default_setting) {
- for (int i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i)
- settings[i] = default_setting;
- }
+ ContentSettings();
+ explicit ContentSettings(ContentSetting default_setting);
ContentSetting settings[CONTENT_SETTINGS_NUM_TYPES];
};
+struct ContentSettingPatternSource {
+ ContentSettingPatternSource(const ContentSettingsPattern& primary_pattern,
+ const ContentSettingsPattern& secondary_patttern,
+ ContentSetting setting,
+ const std::string& source,
+ bool incognito);
+ ContentSettingPatternSource();
+ ContentSettingsPattern primary_pattern;
+ ContentSettingsPattern secondary_pattern;
+ ContentSetting setting;
+ std::string source;
+ bool incognito;
+};
+
+typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType;
+
#endif // CHROME_COMMON_CONTENT_SETTINGS_H_
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | chrome/common/content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698