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

Side by Side Diff: chrome/browser/content_settings/content_settings_origin_identifier_value_map.h

Issue 7104084: Fix Clang build from revision 88522 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VALUE _MAP_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VALUE _MAP_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VALUE _MAP_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VALUE _MAP_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 21
22 class OriginIdentifierValueMap { 22 class OriginIdentifierValueMap {
23 public: 23 public:
24 typedef std::string ResourceIdentifier; 24 typedef std::string ResourceIdentifier;
25 25
26 struct Entry { 26 struct Entry {
27 Entry(ContentSettingsPattern item_pattern, 27 Entry(ContentSettingsPattern item_pattern,
28 ContentSettingsPattern top_level_frame_pattern, 28 ContentSettingsPattern top_level_frame_pattern,
29 ContentSettingsType content_type, 29 ContentSettingsType content_type,
30 ResourceIdentifier identifier, 30 ResourceIdentifier identifier,
31 Value* value) 31 Value* value);
32 : item_pattern(item_pattern), 32 ~Entry();
33 top_level_frame_pattern(top_level_frame_pattern),
34 content_type(content_type),
35 identifier(identifier),
36 value(value) {
37 }
38 33
39 ContentSettingsPattern item_pattern; 34 ContentSettingsPattern item_pattern;
40 ContentSettingsPattern top_level_frame_pattern; 35 ContentSettingsPattern top_level_frame_pattern;
41 ContentSettingsType content_type; 36 ContentSettingsType content_type;
42 ResourceIdentifier identifier; 37 ResourceIdentifier identifier;
43 linked_ptr<Value> value; 38 linked_ptr<Value> value;
44 }; 39 };
45 40
46 typedef std::list<Entry> EntryList; 41 typedef std::list<Entry> EntryList;
47 42
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 119
125 // Compares two origin value map entries and tests if the item, top-level-frame 120 // Compares two origin value map entries and tests if the item, top-level-frame
126 // pattern pair of the first entry has a higher precedences then the pattern 121 // pattern pair of the first entry has a higher precedences then the pattern
127 // pair of the second entry. 122 // pair of the second entry.
128 bool operator>(const OriginIdentifierValueMap::Entry& first, 123 bool operator>(const OriginIdentifierValueMap::Entry& first,
129 const OriginIdentifierValueMap::Entry& second); 124 const OriginIdentifierValueMap::Entry& second);
130 125
131 } // namespace content_settings 126 } // namespace content_settings
132 127
133 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VA LUE_MAP_H_ 128 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_ORIGIN_IDENTIFIER_VA LUE_MAP_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_origin_identifier_value_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698