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

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

Issue 370833002: Move resource_type.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix Created 6 years, 5 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 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h" 5 #include "chrome/browser/extensions/api/declarative_webrequest/webrequest_condit ion_attribute.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 #include "net/base/static_cookie_policy.h" 23 #include "net/base/static_cookie_policy.h"
24 #include "net/http/http_request_headers.h" 24 #include "net/http/http_request_headers.h"
25 #include "net/http/http_util.h" 25 #include "net/http/http_util.h"
26 #include "net/url_request/url_request.h" 26 #include "net/url_request/url_request.h"
27 27
28 using base::CaseInsensitiveCompareASCII; 28 using base::CaseInsensitiveCompareASCII;
29 using base::DictionaryValue; 29 using base::DictionaryValue;
30 using base::ListValue; 30 using base::ListValue;
31 using base::StringValue; 31 using base::StringValue;
32 using base::Value; 32 using base::Value;
33 using content::ResourceType;
33 34
34 namespace helpers = extension_web_request_api_helpers; 35 namespace helpers = extension_web_request_api_helpers;
35 namespace keys = extensions::declarative_webrequest_constants; 36 namespace keys = extensions::declarative_webrequest_constants;
36 37
37 namespace extensions { 38 namespace extensions {
38 39
39 namespace { 40 namespace {
40 // Error messages. 41 // Error messages.
41 const char kInvalidValue[] = "Condition '*' has an invalid value"; 42 const char kInvalidValue[] = "Condition '*' has an invalid value";
42 43
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 bool WebRequestConditionAttributeStages::Equals( 869 bool WebRequestConditionAttributeStages::Equals(
869 const WebRequestConditionAttribute* other) const { 870 const WebRequestConditionAttribute* other) const {
870 if (!WebRequestConditionAttribute::Equals(other)) 871 if (!WebRequestConditionAttribute::Equals(other))
871 return false; 872 return false;
872 const WebRequestConditionAttributeStages* casted_other = 873 const WebRequestConditionAttributeStages* casted_other =
873 static_cast<const WebRequestConditionAttributeStages*>(other); 874 static_cast<const WebRequestConditionAttributeStages*>(other);
874 return allowed_stages_ == casted_other->allowed_stages_; 875 return allowed_stages_ == casted_other->allowed_stages_;
875 } 876 }
876 877
877 } // namespace extensions 878 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698