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

Side by Side Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_condition.h

Issue 10843065: Add condition attribute for MIME media types from Content-Type header. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: dammit docs Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h" 13 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h"
14 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_rule.h "
14 #include "chrome/common/extensions/matcher/url_matcher.h" 15 #include "chrome/common/extensions/matcher/url_matcher.h"
15 16
16 namespace extensions { 17 namespace extensions {
17 18
18 // Representation of a condition in the Declarative WebRequest API. A condition 19 // Representation of a condition in the Declarative WebRequest API. A condition
19 // consists of several attributes. Each of these attributes needs to be 20 // consists of several attributes. Each of these attributes needs to be
20 // fulfilled in order for the condition to be fulfilled. 21 // fulfilled in order for the condition to be fulfilled.
21 // 22 //
22 // We distinguish between two types of conditions: 23 // We distinguish between two types of conditions:
23 // - URL Matcher conditions are conditions that test the URL of a request. 24 // - URL Matcher conditions are conditions that test the URL of a request.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*> 121 typedef std::map<URLMatcherConditionSet::ID, WebRequestCondition*>
121 MatchTriggers; 122 MatchTriggers;
122 MatchTriggers match_triggers_; 123 MatchTriggers match_triggers_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet); 125 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionSet);
125 }; 126 };
126 127
127 } // namespace extensions 128 } // namespace extensions
128 129
129 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_H_ 130 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698