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

Side by Side Diff: official/base/const_object_names.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « official/README.txt ('k') | official/common/const_goopdate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2007-2009 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 // ========================================================================
15 //
16 // Kernel object names.
17
18 #ifndef OMAHA_BASE_CONST_OBJECT_NAMES_H_
19 #define OMAHA_BASE_CONST_OBJECT_NAMES_H_
20
21 #include <tchar.h>
22 #include "omaha/base/constants.h"
23
24 namespace omaha {
25
26 // The prefix to use for global names in the win32 API's.
27 const TCHAR* const kGlobalPrefix = _T("Global\\G");
28
29 const TCHAR kCrashPipeNamePrefix[] =
30 _T("\\\\.\\pipe\\") SHORT_COMPANY_NAME _T("CrashServices");
31
32 // Ensures that only one instance of machine or user Omaha is trying to setup at
33 // a time.
34 const TCHAR* const kSetupMutex = _T("{A9A86B93-B54E-4570-BE89-42418507707B}");
35
36 // TODO(omaha3): Update this comment.
37 // Signals the process to exit. Currently the core and the worker listen to
38 // this event.
39 // TODO(omaha): Consider making all our processes listen to it. Maybe not the
40 // service, since the SCM controls the life time of the service.
41 const TCHAR* const kShutdownEvent =
42 _T("{A0C1F415-D2CE-4ddc-9B48-14E56FD55162}");
43
44 // This is for Omaha2 backwards compatibility.
45 // The installed Omaha3 handoff process sets an event to tell an Omaha2 setup
46 // worker running from the temp directory that a UI has been displayed so that
47 // the Omaha2 worker will not display a second UI on error. The event's name is
48 // passed in this environment variable name by the Omaha2 worker.
49 const TCHAR* const kLegacyUiDisplayedEventEnvironmentVariableName =
50 _T("GOOGLE_UPDATE_UI_DISPLAYED_EVENT_NAME");
51
52 // Ensures the Core only runs one instance per machine and one instance per
53 // each user session.
54 const TCHAR* const kCoreSingleInstance =
55 _T("{B5665124-2B19-40e2-A7BC-B44321E72C4B}");
56
57 // Ensures the Crash Handler only runs one instance per machine and one
58 // instance per each user session.
59 const TCHAR* const kCrashHandlerSingleInstance =
60 _T("{C4F406E5-F024-4e3f-89A7-D5AB7663C3CD}");
61
62 // Ensures the /ua process only runs one instance per machine and one
63 // instance per each user session.
64 const TCHAR* const kUpdateAppsSingleInstance =
65 _T("{D0BB2EF1-C183-4cdb-B218-040922092869}");
66
67 // Ensures only one installer for an app is running in a session.
68 // The %s is replaced with the application ID.
69 const TCHAR* const kInstallAppSingleInstance =
70 _T("%s-{F707E94F-D66B-4525-AD84-B1DA87D6A971}");
71
72 // Ensures the GoogleUpdate3 server only runs one instance per machine and one
73 // instance per each user session.
74 const TCHAR* const kGoogleUpdate3SingleInstance =
75 _T("{6885AE8E-C070-458d-9711-37B9BEAB65F6}");
76
77 // TODO(omaha): Delete Job Object code.
78
79 // Base name of job object for Setup phase 1 processes except self updates.
80 // These may not be running as Local System for machine installs like
81 // self-updates do.
82 const TCHAR* const kSetupPhase1NonSelfUpdateJobObject =
83 _T("{5A913EF1-4160-48bc-B688-4D67EAEB698A}");
84
85 // Base name of job object for interactive install processes except /install.
86 const TCHAR* const kAppInstallJobObject =
87 _T("{8AD051DB-4FE6-458b-B103-7DCC78D56013}");
88
89 // Base name of job object for silent processes that are okay to kill.
90 const TCHAR* const kSilentJobObject =
91 _T("{A2300FD6-CBED-48a6-A3CB-B35C38A42F8E}");
92
93 // Base name of job object for silent processes that should not be killed.
94 const TCHAR* const kSilentDoNotKillJobObject =
95 _T("{D33A8A53-F57D-4fd9-A32D-238FD69B4BC4}");
96
97 // The global lock to ensure that a single app is being installed for this
98 // user/machine at a given time.
99 const TCHAR* const kInstallManagerSerializer =
100 _T("{0A175FBE-AEEC-4fea-855A-2AA549A88846}");
101
102 // Serializes access to metrics stores, machine and user, respectively.
103 const TCHAR* const kMetricsSerializer =
104 _T("{C68009EA-1163-4498-8E93-D5C4E317D8CE}");
105
106 // Serializes access to the global network configuration, such as the CUP keys.
107 const TCHAR* const kNetworkConfigLock =
108 _T("{0E900C7B-04B0-47f9-81B0-F8D94F2DF01B}");
109
110 // Serializes access to the registry for application state.
111 const TCHAR* const kRegistryAccessMutex =
112 _T("{66CC0160-ABB3-4066-AE47-1CA6AD5065C8}");
113
114 // Serializes opt user id generation.
115 const TCHAR* const kOptUserIdLock =
116 _T("{D19BAF17-7C87-467E-8D63-6C4B1C836373}");
117
118 // The name of the shared memory objects containing the serialized COM
119 // interface pointers exposed by the machine core.
120 // TODO(omaha): Rename these constants to remove "GoogleUpdate".
121 // TODO(omaha): Consider following the kGlobalPrefix convention with the 'G'
122 // for the new shared Omaha 3 name and building this from the same #define as
123 // kGlobalPrefix.
124 const TCHAR* const kGoogleUpdate3SharedMemoryName =
125 _T("Global\\") APP_NAME_IDENTIFIER _T("3");
126 const TCHAR* const kGoogleUpdateCoreSharedMemoryName =
127 _T("Global\\") APP_NAME_IDENTIFIER _T("Core");
128
129 } // namespace omaha
130
131 #endif // OMAHA_BASE_CONST_OBJECT_NAMES_H_
OLDNEW
« no previous file with comments | « official/README.txt ('k') | official/common/const_goopdate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698