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

Side by Side Diff: chrome/common/content_settings.h

Issue 8409006: Take script URLs into account when applying script content settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CONTENT_SETTINGS_H_ 5 #ifndef CHROME_COMMON_CONTENT_SETTINGS_H_
6 #define CHROME_COMMON_CONTENT_SETTINGS_H_ 6 #define CHROME_COMMON_CONTENT_SETTINGS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ContentSettingPatternSource(); 44 ContentSettingPatternSource();
45 ContentSettingsPattern primary_pattern; 45 ContentSettingsPattern primary_pattern;
46 ContentSettingsPattern secondary_pattern; 46 ContentSettingsPattern secondary_pattern;
47 ContentSetting setting; 47 ContentSetting setting;
48 std::string source; 48 std::string source;
49 bool incognito; 49 bool incognito;
50 }; 50 };
51 51
52 typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType; 52 typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType;
53 53
54 struct RendererContentSettingRules {
55 RendererContentSettingRules();
56 ~RendererContentSettingRules();
57 ContentSettingsForOneType image_rules;
58 ContentSettingsForOneType script_rules;
59 };
60
54 #endif // CHROME_COMMON_CONTENT_SETTINGS_H_ 61 #endif // CHROME_COMMON_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698