-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
-#include "base/stl_util.h"
#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_start.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/message_filter.h"
// messages of a certain class.
std::vector<uint32_t> supported_message_classes;
if (filter->GetSupportedMessageClasses(&supported_message_classes)) {
- DCHECK(!supported_message_classes.empty());
for (size_t i = 0; i < supported_message_classes.size(); ++i) {
const int message_class = supported_message_classes[i];
DCHECK(ValidMessageClass(message_class));
if (RemoveFilterImpl(global_filters_, filter))
return;
- for (size_t i = 0; i < base::size(message_class_filters_); ++i)
+ for (size_t i = 0; i < std::size(message_class_filters_); ++i)
RemoveFilterImpl(message_class_filters_[i], filter);
}
void MessageFilterRouter::Clear() {
global_filters_.clear();
- for (size_t i = 0; i < base::size(message_class_filters_); ++i)
+ for (size_t i = 0; i < std::size(message_class_filters_); ++i)
message_class_filters_[i].clear();
}