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

Side by Side Diff: chrome/common/service_process_util.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « chrome/common/logging_chrome.h ('k') | chrome/common/service_process_util_posix.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 #ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ 5 #ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ 6 #define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/shared_memory.h" 13 #include "base/memory/shared_memory.h"
14 #include "base/process/process.h" 14 #include "base/process/process.h"
15 #include "ipc/ipc_channel_handle.h" 15 #include "ipc/ipc_channel_handle.h"
16 16
17 class CommandLine;
18 class MultiProcessLock; 17 class MultiProcessLock;
19 18
20 #if defined(OS_MACOSX) 19 #if defined(OS_MACOSX)
21 #ifdef __OBJC__ 20 #ifdef __OBJC__
22 @class NSString; 21 @class NSString;
23 #else 22 #else
24 class NSString; 23 class NSString;
25 #endif 24 #endif
26 #endif 25 #endif
27 26
28 namespace base { 27 namespace base {
28 class CommandLine;
29 class MessageLoopProxy; 29 class MessageLoopProxy;
30 } 30 }
31 31
32 // Return the IPC channel to connect to the service process. 32 // Return the IPC channel to connect to the service process.
33 IPC::ChannelHandle GetServiceProcessChannel(); 33 IPC::ChannelHandle GetServiceProcessChannel();
34 34
35 #if !defined(OS_MACOSX) 35 #if !defined(OS_MACOSX)
36 // Return a name that is scoped to this instance of the service process. We 36 // Return a name that is scoped to this instance of the service process. We
37 // use the user-data-dir as a scoping prefix. 37 // use the user-data-dir as a scoping prefix.
38 std::string GetServiceProcessScopedName(const std::string& append_str); 38 std::string GetServiceProcessScopedName(const std::string& append_str);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Initializes the command-line that can be used to autorun the service 132 // Initializes the command-line that can be used to autorun the service
133 // process. 133 // process.
134 void CreateAutoRunCommandLine(); 134 void CreateAutoRunCommandLine();
135 135
136 // An opaque object that maintains state. The actual definition of this is 136 // An opaque object that maintains state. The actual definition of this is
137 // platform dependent. 137 // platform dependent.
138 struct StateData; 138 struct StateData;
139 StateData* state_; 139 StateData* state_;
140 scoped_ptr<base::SharedMemory> shared_mem_service_data_; 140 scoped_ptr<base::SharedMemory> shared_mem_service_data_;
141 scoped_ptr<CommandLine> autorun_command_line_; 141 scoped_ptr<base::CommandLine> autorun_command_line_;
142 }; 142 };
143 143
144 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_ 144 #endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698