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

Unified Diff: chrome_frame/chrome_frame_helper_dll.cc

Issue 3158036: Add a helper process to Chrome Frame to allow for non-administrative installs... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/chrome_frame_helper_dll.def » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_helper_dll.cc
===================================================================
--- chrome_frame/chrome_frame_helper_dll.cc (revision 0)
+++ chrome_frame/chrome_frame_helper_dll.cc (revision 0)
@@ -0,0 +1,28 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// chrome_frame_helper_dll.cc : Implementation of a helper DLL that initializes
+// a listener for WinEvent hooks on load.
+//
+// Calling the StartUserModeBrowserInjection will set an in-context WinEvent
+// hook that will cause this DLL to get loaded in any process that sends
+// EVENT_OBJECT_CREATE accessibility events. This is a poor substitute to
+// getting in via vetted means (i.e. real BHO registration).
+
+#include "chrome_frame/bho_loader.h"
+#include "chrome_frame/chrome_frame_helper_util.h"
+
+STDAPI StartUserModeBrowserInjection() {
+ return BHOLoader::GetInstance()->StartHook() ? S_OK : E_FAIL;
+}
+
+STDAPI StopUserModeBrowserInjection() {
+ BHOLoader::GetInstance()->StopHook();
+ return S_OK;
+}
+
+BOOL APIENTRY DllMain(HMODULE module, DWORD reason_for_call, void* reserved) {
+ return TRUE;
+}
+
Property changes on: chrome_frame\chrome_frame_helper_dll.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/chrome_frame.gyp ('k') | chrome_frame/chrome_frame_helper_dll.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698