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

Unified Diff: chrome_frame/bho_loader.h

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 | « no previous file | chrome_frame/bho_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/bho_loader.h
===================================================================
--- chrome_frame/bho_loader.h (revision 0)
+++ chrome_frame/bho_loader.h (revision 0)
@@ -0,0 +1,39 @@
+// 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.
+
+#ifndef CHROME_FRAME_BHO_LOADER_H_
+#define CHROME_FRAME_BHO_LOADER_H_
+
+#include <windows.h>
+
+// Forward.
+class EventHooker;
+
+// This class simulates BHO loading in an IE process. It watches for the
+// creation of a specific window and then retrieves the web browser object
+// for that window and simulates loading of the BHO.
+class BHOLoader {
+ public:
+ BHOLoader();
+ ~BHOLoader();
+
+ // Callback invoked on receipt of an accessibility event.
+ void OnHookEvent(DWORD event, HWND window);
+
+ // Call this to install event hooks that will trigger on window creation
+ // and reparenting. Returns true if the hooks are successfully installed,
+ // false otherwise.
+ bool StartHook();
+
+ // Call this to remove the event hooks that are installed by StartHook().
+ void StopHook();
+
+ // Retrieve the BHOLoader instance. Note that this is NOT thread-safe.
+ static BHOLoader* GetInstance();
+
+ private:
+ EventHooker* hooker_;
+};
+
+#endif // CHROME_FRAME_BHO_LOADER_H_
Property changes on: chrome_frame\bho_loader.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome_frame/bho_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698