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

Side by Side Diff: content/child/push_messaging/push_dispatcher.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_
6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_ 6 #define CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
11 #include "content/child/worker_thread_message_filter.h" 12 #include "content/child/worker_thread_message_filter.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 class PushDispatcher : public WorkerThreadMessageFilter { 16 class PushDispatcher : public WorkerThreadMessageFilter {
16 public: 17 public:
17 explicit PushDispatcher(ThreadSafeSender* thread_safe_sender); 18 explicit PushDispatcher(ThreadSafeSender* thread_safe_sender);
18 19
19 // Generates a process-unique new request id. Stores it in a map as key to 20 // Generates a process-unique new request id. Stores it in a map as key to
(...skipping 15 matching lines...) Expand all
35 base::Lock request_id_map_lock_; 36 base::Lock request_id_map_lock_;
36 std::map<int, int> request_id_map_; // Maps request id to thread id. 37 std::map<int, int> request_id_map_; // Maps request id to thread id.
37 int next_request_id_; 38 int next_request_id_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(PushDispatcher); 40 DISALLOW_COPY_AND_ASSIGN(PushDispatcher);
40 }; 41 };
41 42
42 } // namespace content 43 } // namespace content
43 44
44 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_ 45 #endif // CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/power_monitor_broadcast_source_unittest.cc ('k') | content/child/push_messaging/push_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698