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

Side by Side Diff: ceee/ie/plugin/bho/executor.cc

Issue 6295006: Merge 68951 - Added refreshing of elevation policy on first run of new versio... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/597/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « ceee/ie/plugin/bho/browser_helper_object.cc ('k') | ceee/installer_dll/ceee_installer_dll.gyp » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // CeeeExecutor implementation 5 // CeeeExecutor implementation
6 // 6 //
7 // We use interfaces named ITabWindowManager and ITabWindow 7 // We use interfaces named ITabWindowManager and ITabWindow
8 // (documented at 8 // (documented at
9 // http://www.geoffchappell.com/viewer.htm?doc=studies/windows/ie/ieframe/interf aces/itabwindowmanager.htm 9 // http://www.geoffchappell.com/viewer.htm?doc=studies/windows/ie/ieframe/interf aces/itabwindowmanager.htm
10 // and 10 // and
(...skipping 20 matching lines...) Expand all
31 #include <mshtml.h> 31 #include <mshtml.h>
32 #include <wininet.h> 32 #include <wininet.h>
33 33
34 #include <vector> 34 #include <vector>
35 35
36 #include "base/json/json_writer.h" 36 #include "base/json/json_writer.h"
37 #include "base/logging.h" 37 #include "base/logging.h"
38 #include "base/values.h" 38 #include "base/values.h"
39 #include "base/stringprintf.h" 39 #include "base/stringprintf.h"
40 #include "base/utf_string_conversions.h" 40 #include "base/utf_string_conversions.h"
41 #include "base/win/scoped_comptr.h"
41 #include "ceee/common/com_utils.h" 42 #include "ceee/common/com_utils.h"
42 #include "ceee/common/window_utils.h" 43 #include "ceee/common/window_utils.h"
43 #include "ceee/common/windows_constants.h" 44 #include "ceee/common/windows_constants.h"
44 #include "ceee/ie/common/ie_util.h" 45 #include "ceee/ie/common/ie_util.h"
45 #include "ceee/ie/plugin/bho/frame_event_handler.h" 46 #include "ceee/ie/plugin/bho/frame_event_handler.h"
46 #include "ceee/ie/plugin/bho/infobar_manager.h" 47 #include "ceee/ie/plugin/bho/infobar_manager.h"
47 #include "ceee/ie/plugin/bho/tab_window_manager.h" 48 #include "ceee/ie/plugin/bho/tab_window_manager.h"
48 #include "ceee/ie/plugin/toolband/toolband_proxy.h" 49 #include "ceee/ie/plugin/toolband/toolband_proxy.h"
49 #include "chrome_frame/utils.h" 50 #include "chrome_frame/utils.h"
50 51
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (SUCCEEDED(hr)) { 164 if (SUCCEEDED(hr)) {
164 CeeeWindowHandle window = static_cast<CeeeWindowHandle>( 165 CeeeWindowHandle window = static_cast<CeeeWindowHandle>(
165 message_data->lParam); 166 message_data->lParam);
166 if (window) { 167 if (window) {
167 hr = executor->Initialize(window); 168 hr = executor->Initialize(window);
168 LOG_IF(ERROR, FAILED(hr)) << "Failed to create Executor, hr=" << 169 LOG_IF(ERROR, FAILED(hr)) << "Failed to create Executor, hr=" <<
169 com::LogHr(hr); 170 com::LogHr(hr);
170 DCHECK(SUCCEEDED(hr)) << "CoCreating Executor. " << com::LogHr(hr); 171 DCHECK(SUCCEEDED(hr)) << "CoCreating Executor. " << com::LogHr(hr);
171 } 172 }
172 173
173 CComPtr<ICeeeBrokerRegistrar> broker; 174 base::win::ScopedComPtr<ICeeeBrokerRegistrar> broker;
174 hr = broker.CoCreateInstance(CLSID_CeeeBroker); 175 hr = StartCeeeBroker(broker.Receive());
175 LOG_IF(ERROR, FAILED(hr)) << "Failed to create broker, hr=" <<
176 com::LogHr(hr);
177 DCHECK(SUCCEEDED(hr)) << "CoCreating Broker. " << com::LogHr(hr);
178
179 if (SUCCEEDED(hr)) { 176 if (SUCCEEDED(hr)) {
180 hr = broker->RegisterWindowExecutor(::GetCurrentThreadId(), executor); 177 hr = broker->RegisterWindowExecutor(::GetCurrentThreadId(), executor);
181 DCHECK(SUCCEEDED(hr)) << "Registering Executor. " << com::LogHr(hr); 178 DCHECK(SUCCEEDED(hr)) << "Registering Executor. " << com::LogHr(hr);
182 } 179 }
183 } 180 }
184 return 0; 181 return 0;
185 } 182 }
186 } 183 }
187 return ::CallNextHookEx(NULL, code, wparam, lparam); 184 return ::CallNextHookEx(NULL, code, wparam, lparam);
188 } 185 }
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1007
1011 STDMETHODIMP CeeeExecutor::OnTopFrameBeforeNavigate(BSTR url) { 1008 STDMETHODIMP CeeeExecutor::OnTopFrameBeforeNavigate(BSTR url) {
1012 DCHECK(infobar_manager_ != NULL) << "infobar_manager_ is not initialized"; 1009 DCHECK(infobar_manager_ != NULL) << "infobar_manager_ is not initialized";
1013 if (infobar_manager_ == NULL) 1010 if (infobar_manager_ == NULL)
1014 return E_FAIL; 1011 return E_FAIL;
1015 1012
1016 // According to the specification, tab navigation closes the infobar. 1013 // According to the specification, tab navigation closes the infobar.
1017 infobar_manager_->HideAll(); 1014 infobar_manager_->HideAll();
1018 return S_OK; 1015 return S_OK;
1019 } 1016 }
OLDNEW
« no previous file with comments | « ceee/ie/plugin/bho/browser_helper_object.cc ('k') | ceee/installer_dll/ceee_installer_dll.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698