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

Side by Side Diff: ipc/ipc_channel.cc

Issue 19525007: Update include paths in ipc for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 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
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_nacl.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 (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 "ipc/ipc_channel.h" 5 #include "ipc/ipc_channel.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/process_util.h"
11 #include "base/rand_util.h" 10 #include "base/rand_util.h"
12 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
13 12
14 #if !defined(OS_NACL) 13 #if !defined(OS_NACL)
15 namespace { 14 namespace {
16 15
17 // Global atomic used to guarantee channel IDs are unique. 16 // Global atomic used to guarantee channel IDs are unique.
18 base::StaticAtomicSequenceNumber g_last_id; 17 base::StaticAtomicSequenceNumber g_last_id;
19 18
20 } // namespace 19 } // namespace
(...skipping 13 matching lines...) Expand all
34 33
35 int process_id = base::GetCurrentProcId(); 34 int process_id = base::GetCurrentProcId();
36 return base::StringPrintf("%d.%u.%d", 35 return base::StringPrintf("%d.%u.%d",
37 process_id, 36 process_id,
38 g_last_id.GetNext(), 37 g_last_id.GetNext(),
39 base::RandInt(0, std::numeric_limits<int32>::max())); 38 base::RandInt(0, std::numeric_limits<int32>::max()));
40 } 39 }
41 40
42 } // namespace IPC 41 } // namespace IPC
43 42
OLDNEW
« no previous file with comments | « ipc/ipc_channel.h ('k') | ipc/ipc_channel_nacl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698