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

Side by Side Diff: win8/delegate_execute/delegate_execute_operation.h

Issue 10875008: Integrate the Windows 8 code into the Chromium tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove conflicting OWNERS file. Created 8 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
6 #define WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
7
8 #include <atldef.h>
9
10 #include "base/basictypes.h"
11 #include "base/file_path.h"
12
13 class CommandLine;
14
15 namespace delegate_execute {
16
17 // Parses a portion of the DelegateExecute handler's command line to determine
18 // the desired operation.
19 class DelegateExecuteOperation {
20 public:
21 enum OperationType {
22 EXE_MODULE,
23 RELAUNCH_CHROME,
24 };
25
26 DelegateExecuteOperation();
27 ~DelegateExecuteOperation();
28
29 void Initialize(const CommandLine* command_line);
30
31 OperationType operation_type() const {
32 return operation_type_;
33 }
34
35 // Returns the argument to the --relaunch-shortcut switch. Valid only when
36 // the operation is RELAUNCH_CHROME.
37 const FilePath& relaunch_shortcut() const {
38 ATLASSERT(operation_type_ == RELAUNCH_CHROME);
39 return relaunch_shortcut_;
40 }
41
42 private:
43 void Clear();
44
45 OperationType operation_type_;
46 FilePath relaunch_shortcut_;
47 DISALLOW_COPY_AND_ASSIGN(DelegateExecuteOperation);
48 };
49
50 } // namespace delegate_execute
51
52 #endif // WIN8_DELEGATE_EXECUTE_DELEGATE_EXECUTE_OPERATION_H_
OLDNEW
« no previous file with comments | « win8/delegate_execute/delegate_execute.rgs ('k') | win8/delegate_execute/delegate_execute_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698