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

Side by Side Diff: session_manager_service.h

Issue 5184005: login_manager: Add dbus API for restarting entd when enterprise extensions installed (Closed) Base URL: http://git.chromium.org/git/login_manager.git@master
Patch Set: Respond to cmasone review Created 10 years, 1 month 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 | « session_manager.xml ('k') | session_manager_service.cc » ('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) 2009-2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009-2010 The Chromium OS 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 LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ 5 #ifndef LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_
6 #define LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ 6 #define LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_
7 7
8 #include <gtest/gtest.h> 8 #include <gtest/gtest.h>
9 9
10 #include <errno.h> 10 #include <errno.h>
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // unlock mode, and emit UnlockScreen signal to Chromium Browser. 263 // unlock mode, and emit UnlockScreen signal to Chromium Browser.
264 gboolean UnlockScreen(GError** error); 264 gboolean UnlockScreen(GError** error);
265 265
266 // Restarts job with specified pid replacing its command line arguments 266 // Restarts job with specified pid replacing its command line arguments
267 // with provided. 267 // with provided.
268 gboolean RestartJob(gint pid, 268 gboolean RestartJob(gint pid,
269 gchar* arguments, 269 gchar* arguments,
270 gboolean* OUT_done, 270 gboolean* OUT_done,
271 GError** error); 271 GError** error);
272 272
273 // Restarts (or starts if stopped) the entd upstart job. Returns if
274 // start was successful.
275 gboolean RestartEntd(GError** error);
276
273 // Perform very, very basic validation of |email_address|. 277 // Perform very, very basic validation of |email_address|.
274 static bool ValidateEmail(const std::string& email_address); 278 static bool ValidateEmail(const std::string& email_address);
275 279
276 // Breaks |args| into separate arg lists, delimited by "--". 280 // Breaks |args| into separate arg lists, delimited by "--".
277 // No initial "--" is needed, but is allowed. 281 // No initial "--" is needed, but is allowed.
278 // ("a", "b", "c") => ("a", "b", "c") 282 // ("a", "b", "c") => ("a", "b", "c")
279 // ("a", "b", "c", "--", "d", "e", "f") => 283 // ("a", "b", "c", "--", "d", "e", "f") =>
280 // ("a", "b", "c"), ("d", "e", "f"). 284 // ("a", "b", "c"), ("d", "e", "f").
281 // Converts args from wide to plain strings. 285 // Converts args from wide to plain strings.
282 static std::vector<std::vector<std::string> > GetArgLists( 286 static std::vector<std::vector<std::string> > GetArgLists(
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool set_uid_; 421 bool set_uid_;
418 422
419 bool shutting_down_; 423 bool shutting_down_;
420 424
421 friend class TestAPI; 425 friend class TestAPI;
422 DISALLOW_COPY_AND_ASSIGN(SessionManagerService); 426 DISALLOW_COPY_AND_ASSIGN(SessionManagerService);
423 }; 427 };
424 } // namespace login_manager 428 } // namespace login_manager
425 429
426 #endif // LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_ 430 #endif // LOGIN_MANAGER_SESSION_MANAGER_SERVICE_H_
OLDNEW
« no previous file with comments | « session_manager.xml ('k') | session_manager_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698