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

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

Issue 10825212: Support also excluding content types in declarative webrequest conditions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ' 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 | Annotate | Revision Log
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_ATTRIBUTE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_ATTRIBUTE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_ATTRIBUTE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDITIO N_ATTRIBUTE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 std::string* error); 117 std::string* error);
118 118
119 // Implementation of WebRequestConditionAttribute: 119 // Implementation of WebRequestConditionAttribute:
120 virtual int GetStages() const OVERRIDE; 120 virtual int GetStages() const OVERRIDE;
121 virtual bool IsFulfilled(const WebRequestRule::RequestData& request_data) 121 virtual bool IsFulfilled(const WebRequestRule::RequestData& request_data)
122 OVERRIDE; 122 OVERRIDE;
123 virtual Type GetType() const OVERRIDE; 123 virtual Type GetType() const OVERRIDE;
124 124
125 private: 125 private:
126 explicit WebRequestConditionAttributeContentType( 126 explicit WebRequestConditionAttributeContentType(
127 const std::vector<std::string>& content_types); 127 const std::vector<std::string>& include_content_types,
128 bool inclusive);
128 129
129 std::vector<std::string> content_types_; 130 std::vector<std::string> content_types_;
131 bool inclusive_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeContentType); 133 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeContentType);
132 }; 134 };
133 135
134 } // namespace extensions 136 } // namespace extensions
135 137
136 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_ATTRIBUTE_H_ 138 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_ATTRIBUTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698