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

Side by Side Diff: win8/delegate_execute/delegate_execute_operation.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) 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 WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ 5 #ifndef WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ 6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <atldef.h> 9 #include <atldef.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 14
15 namespace base {
15 class CommandLine; 16 class CommandLine;
17 }
16 18
17 namespace delegate_execute { 19 namespace delegate_execute {
18 20
19 // Parses a portion of the DelegateExecute handler's command line to determine 21 // Parses a portion of the DelegateExecute handler's command line to determine
20 // the desired operation. The operation type is decided by looking at the 22 // the desired operation. The operation type is decided by looking at the
21 // command line. The operations are: 23 // command line. The operations are:
22 // DELEGATE_EXECUTE: 24 // DELEGATE_EXECUTE:
23 // When the delegate_execute.exe is invoked by windows when a chrome 25 // When the delegate_execute.exe is invoked by windows when a chrome
24 // activation via the shell, possibly using ShellExecute. Control must 26 // activation via the shell, possibly using ShellExecute. Control must
25 // be given to ATLs WinMain. 27 // be given to ATLs WinMain.
(...skipping 10 matching lines...) Expand all
36 class DelegateExecuteOperation { 38 class DelegateExecuteOperation {
37 public: 39 public:
38 enum OperationType { 40 enum OperationType {
39 DELEGATE_EXECUTE, 41 DELEGATE_EXECUTE,
40 RELAUNCH_CHROME, 42 RELAUNCH_CHROME,
41 }; 43 };
42 44
43 DelegateExecuteOperation(); 45 DelegateExecuteOperation();
44 ~DelegateExecuteOperation(); 46 ~DelegateExecuteOperation();
45 47
46 bool Init(const CommandLine* cmd_line); 48 bool Init(const base::CommandLine* cmd_line);
47 49
48 OperationType operation_type() const { 50 OperationType operation_type() const {
49 return operation_type_; 51 return operation_type_;
50 } 52 }
51 53
52 const base::string16& relaunch_flags() const { 54 const base::string16& relaunch_flags() const {
53 return relaunch_flags_; 55 return relaunch_flags_;
54 } 56 }
55 57
56 const base::string16& mutex() const { 58 const base::string16& mutex() const {
(...skipping 12 matching lines...) Expand all
69 base::string16 relaunch_flags_; 71 base::string16 relaunch_flags_;
70 base::FilePath relaunch_shortcut_; 72 base::FilePath relaunch_shortcut_;
71 base::string16 mutex_; 73 base::string16 mutex_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation); 75 DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation);
74 }; 76 };
75 77
76 } // namespace delegate_execute 78 } // namespace delegate_execute
77 79
78 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_ 80 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
OLDNEW
« no previous file with comments | « win8/delegate_execute/command_execute_impl.h ('k') | win8/delegate_execute/delegate_execute_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698