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

Side by Side Diff: chrome/browser/process_singleton_startup_lock.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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_ 5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_
6 #define CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_ 6 #define CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 23 matching lines...) Expand all
34 // ProcessSingletonStartupLock instance. 34 // ProcessSingletonStartupLock instance.
35 ProcessSingleton::NotificationCallback AsNotificationCallback(); 35 ProcessSingleton::NotificationCallback AsNotificationCallback();
36 36
37 // Executes previously queued command-line invocations and allows future 37 // Executes previously queued command-line invocations and allows future
38 // invocations to be executed immediately. 38 // invocations to be executed immediately.
39 void Unlock(); 39 void Unlock();
40 40
41 bool locked() { return locked_; } 41 bool locked() { return locked_; }
42 42
43 private: 43 private:
44 typedef std::pair<CommandLine::StringVector, base::FilePath> 44 typedef std::pair<base::CommandLine::StringVector, base::FilePath>
45 DelayedStartupMessage; 45 DelayedStartupMessage;
46 46
47 bool NotificationCallbackImpl(const CommandLine& command_line, 47 bool NotificationCallbackImpl(const base::CommandLine& command_line,
48 const base::FilePath& current_directory); 48 const base::FilePath& current_directory);
49 49
50 bool locked_; 50 bool locked_;
51 std::vector<DelayedStartupMessage> saved_startup_messages_; 51 std::vector<DelayedStartupMessage> saved_startup_messages_;
52 ProcessSingleton::NotificationCallback original_callback_; 52 ProcessSingleton::NotificationCallback original_callback_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(ProcessSingletonStartupLock); 54 DISALLOW_COPY_AND_ASSIGN(ProcessSingletonStartupLock);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_ 57 #endif // CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/process_singleton_modal_dialog_lock.h ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698