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

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

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 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
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 "extensions/browser/api/declarative_webrequest/webrequest_condition_att ribute.h" 5 #include "extensions/browser/api/declarative_webrequest/webrequest_condition_att ribute.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <utility> 10 #include <utility>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h"
13 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
15 #include "base/values.h" 18 #include "base/values.h"
16 #include "content/public/browser/resource_request_info.h" 19 #include "content/public/browser/resource_request_info.h"
17 #include "extensions/browser/api/declarative/deduping_factory.h" 20 #include "extensions/browser/api/declarative/deduping_factory.h"
18 #include "extensions/browser/api/declarative_webrequest/request_stage.h" 21 #include "extensions/browser/api/declarative_webrequest/request_stage.h"
19 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h" 22 #include "extensions/browser/api/declarative_webrequest/webrequest_condition.h"
20 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h" 23 #include "extensions/browser/api/declarative_webrequest/webrequest_constants.h"
21 #include "extensions/browser/api/web_request/web_request_api_helpers.h" 24 #include "extensions/browser/api/web_request/web_request_api_helpers.h"
22 #include "extensions/common/error_utils.h" 25 #include "extensions/common/error_utils.h"
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 bool WebRequestConditionAttributeStages::Equals( 876 bool WebRequestConditionAttributeStages::Equals(
874 const WebRequestConditionAttribute* other) const { 877 const WebRequestConditionAttribute* other) const {
875 if (!WebRequestConditionAttribute::Equals(other)) 878 if (!WebRequestConditionAttribute::Equals(other))
876 return false; 879 return false;
877 const WebRequestConditionAttributeStages* casted_other = 880 const WebRequestConditionAttributeStages* casted_other =
878 static_cast<const WebRequestConditionAttributeStages*>(other); 881 static_cast<const WebRequestConditionAttributeStages*>(other);
879 return allowed_stages_ == casted_other->allowed_stages_; 882 return allowed_stages_ == casted_other->allowed_stages_;
880 } 883 }
881 884
882 } // namespace extensions 885 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698