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

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

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Implementation of WebRequestConditionAttribute: 98 // Implementation of WebRequestConditionAttribute:
99 virtual int GetStages() const OVERRIDE; 99 virtual int GetStages() const OVERRIDE;
100 virtual bool IsFulfilled( 100 virtual bool IsFulfilled(
101 const WebRequestData& request_data) const OVERRIDE; 101 const WebRequestData& request_data) const OVERRIDE;
102 virtual Type GetType() const OVERRIDE; 102 virtual Type GetType() const OVERRIDE;
103 virtual std::string GetName() const OVERRIDE; 103 virtual std::string GetName() const OVERRIDE;
104 virtual bool Equals(const WebRequestConditionAttribute* other) const OVERRIDE; 104 virtual bool Equals(const WebRequestConditionAttribute* other) const OVERRIDE;
105 105
106 private: 106 private:
107 explicit WebRequestConditionAttributeResourceType( 107 explicit WebRequestConditionAttributeResourceType(
108 const std::vector<content::ResourceType::Type>& types); 108 const std::vector<content::ResourceType>& types);
109 virtual ~WebRequestConditionAttributeResourceType(); 109 virtual ~WebRequestConditionAttributeResourceType();
110 110
111 const std::vector<content::ResourceType::Type> types_; 111 const std::vector<content::ResourceType> types_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeResourceType); 113 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeResourceType);
114 }; 114 };
115 115
116 // Condition that checks whether a response's Content-Type header has a 116 // Condition that checks whether a response's Content-Type header has a
117 // certain MIME media type. 117 // certain MIME media type.
118 class WebRequestConditionAttributeContentType 118 class WebRequestConditionAttributeContentType
119 : public WebRequestConditionAttribute { 119 : public WebRequestConditionAttribute {
120 public: 120 public:
121 // Factory method, see WebRequestConditionAttribute::Create. 121 // Factory method, see WebRequestConditionAttribute::Create.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 virtual ~WebRequestConditionAttributeStages(); 266 virtual ~WebRequestConditionAttributeStages();
267 267
268 const int allowed_stages_; // Composition of RequestStage values. 268 const int allowed_stages_; // Composition of RequestStage values.
269 269
270 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages); 270 DISALLOW_COPY_AND_ASSIGN(WebRequestConditionAttributeStages);
271 }; 271 };
272 272
273 } // namespace extensions 273 } // namespace extensions
274 274
275 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_ATTRIBUTE_H_ 275 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_WEBREQUEST_WEBREQUEST_CONDI TION_ATTRIBUTE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698