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

Side by Side Diff: extensions/browser/event_listener_map.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 5 years 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
« no previous file with comments | « extensions/browser/event_listener_map.h ('k') | extensions/browser/event_router.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/event_listener_map.h" 5 #include "extensions/browser/event_listener_map.h"
6 6
7 #include <stddef.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/values.h" 11 #include "base/values.h"
10 #include "content/public/browser/render_process_host.h" 12 #include "content/public/browser/render_process_host.h"
11 #include "extensions/browser/event_router.h" 13 #include "extensions/browser/event_router.h"
12 #include "ipc/ipc_message.h" 14 #include "ipc/ipc_message.h"
13 #include "url/gurl.h" 15 #include "url/gurl.h"
14 16
15 using base::DictionaryValue; 17 using base::DictionaryValue;
16 18
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return; 276 return;
275 event_filter_.RemoveEventMatcher(listener->matcher_id()); 277 event_filter_.RemoveEventMatcher(listener->matcher_id());
276 CHECK_EQ(1u, listeners_by_matcher_id_.erase(listener->matcher_id())); 278 CHECK_EQ(1u, listeners_by_matcher_id_.erase(listener->matcher_id()));
277 } 279 }
278 280
279 bool EventListenerMap::IsFilteredEvent(const Event& event) const { 281 bool EventListenerMap::IsFilteredEvent(const Event& event) const {
280 return filtered_events_.count(event.event_name) > 0u; 282 return filtered_events_.count(event.event_name) > 0u;
281 } 283 }
282 284
283 } // namespace extensions 285 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/event_listener_map.h ('k') | extensions/browser/event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698