OLD | NEW |
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 #include <atlbase.h> | 5 #include <atlbase.h> |
6 #include <atlcom.h> | 6 #include <atlcom.h> |
7 #include <atlctl.h> | 7 #include <atlctl.h> |
8 #include <ShObjIdl.h> | 8 #include <ShObjIdl.h> |
9 #include <WinInet.h> | 9 #include <WinInet.h> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 STDMETHOD(SetSelection)(IShellItemArray* item_array); | 78 STDMETHOD(SetSelection)(IShellItemArray* item_array); |
79 STDMETHOD(GetSelection)(REFIID riid, void** selection); | 79 STDMETHOD(GetSelection)(REFIID riid, void** selection); |
80 | 80 |
81 // IExecuteCommandApplicationHostEnvironment | 81 // IExecuteCommandApplicationHostEnvironment |
82 STDMETHOD(GetValue)(enum AHE_TYPE* pahe); | 82 STDMETHOD(GetValue)(enum AHE_TYPE* pahe); |
83 | 83 |
84 // IForegroundTransfer | 84 // IForegroundTransfer |
85 STDMETHOD(AllowForegroundTransfer)(void* reserved); | 85 STDMETHOD(AllowForegroundTransfer)(void* reserved); |
86 | 86 |
87 private: | 87 private: |
88 static bool FindChromeExe(FilePath* chrome_exe); | 88 static bool FindChromeExe(base::FilePath* chrome_exe); |
89 | 89 |
90 static bool path_provider_initialized_; | 90 static bool path_provider_initialized_; |
91 | 91 |
92 bool GetLaunchScheme(string16* display_name, INTERNET_SCHEME* scheme); | 92 bool GetLaunchScheme(string16* display_name, INTERNET_SCHEME* scheme); |
93 HRESULT LaunchDesktopChrome(); | 93 HRESULT LaunchDesktopChrome(); |
94 // Returns the launch mode, i.e. desktop launch/metro launch, etc. | 94 // Returns the launch mode, i.e. desktop launch/metro launch, etc. |
95 EC_HOST_UI_MODE GetLaunchMode(); | 95 EC_HOST_UI_MODE GetLaunchMode(); |
96 | 96 |
97 CComPtr<IShellItemArray> item_array_; | 97 CComPtr<IShellItemArray> item_array_; |
98 CommandLine parameters_; | 98 CommandLine parameters_; |
99 FilePath chrome_exe_; | 99 base::FilePath chrome_exe_; |
100 STARTUPINFO start_info_; | 100 STARTUPINFO start_info_; |
101 string16 verb_; | 101 string16 verb_; |
102 string16 display_name_; | 102 string16 display_name_; |
103 INTERNET_SCHEME launch_scheme_; | 103 INTERNET_SCHEME launch_scheme_; |
104 | 104 |
105 base::IntegrityLevel integrity_level_; | 105 base::IntegrityLevel integrity_level_; |
106 EC_HOST_UI_MODE chrome_mode_; | 106 EC_HOST_UI_MODE chrome_mode_; |
107 }; | 107 }; |
108 | 108 |
109 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl) | 109 OBJECT_ENTRY_AUTO(__uuidof(CommandExecuteImpl), CommandExecuteImpl) |
OLD | NEW |