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

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: Rebased. 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
Index: chrome/common/content_settings.h
diff --git a/chrome/common/content_settings.h b/chrome/common/content_settings.h
index 4731263f7d15d5a891598d56bac153374421f53d..0a071af1b344a406bd58c4c17e8aef316ae7fe0a 100644
--- a/chrome/common/content_settings.h
+++ b/chrome/common/content_settings.h
@@ -6,6 +6,12 @@
#define CHROME_COMMON_CONTENT_SETTINGS_H_
#pragma once
+#include <string>
+#include <vector>
+
+#include "base/tuple.h"
+
+#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
@@ -38,4 +44,13 @@ struct ContentSettings {
ContentSetting settings[CONTENT_SETTINGS_NUM_TYPES];
};
+// TODO(markusheintz): I sold my soul to the devil on order to add this tuple.
+// I really want my soul back, so I really will change this ASAP.
Bernhard Bauer 2011/10/17 13:13:19 If we're moving the definition, now might be a goo
marja 2011/10/18 12:23:02 Done.
+typedef Tuple5<ContentSettingsPattern,
+ ContentSettingsPattern,
+ ContentSetting,
+ std::string,
+ bool> ContentSettingPatternSourceTuple;
+typedef std::vector<ContentSettingPatternSourceTuple> ContentSettingsForOneType;
+
#endif // CHROME_COMMON_CONTENT_SETTINGS_H_

Powered by Google App Engine
This is Rietveld 408576698