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

Unified Diff: chrome/app/google_update_client.h

Issue 10300: Implement the load chrome.dll before file version for Google Chrome builds. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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/app/chrome_exe_main.cc ('k') | chrome/app/google_update_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/google_update_client.h
===================================================================
--- chrome/app/google_update_client.h (revision 5105)
+++ chrome/app/google_update_client.h (working copy)
@@ -41,12 +41,15 @@
// not registered, autoupdates won't be performed for this client.
bool Init(const wchar_t* client_guid, const wchar_t* client_dll);
+ // Load the application's main DLL.
+ // - looks up the registered version via GoogleUpdate, loads dll from version
+ // dir (e.g. Program Files/Google/1.0.101.0/chrome.dll). If chrome.dll is
+ // found in this path the version is stored in the environment block such
+ // that subsequent launches invoke the same dll version.
+ bool Load();
+
// Launches your app's main code and initializes Google Update services.
- // - looks up the registered version via GoogleUpdate, loads dll from version
- // dir (e.g. Program Files/Google/1.0.101.0/chrome.dll) and calls the
- // entry_name. If chrome.dll is found in this path the version is stored
- // in the environment block such that subsequent launches invoke the
- // save dll version.
+ // - Calls the entry_name function of your application's DLL.
// - instance is handle to the current instance of application
// - sandbox provides information about sandbox services
// - command_line contains command line parameters
@@ -68,6 +71,8 @@
std::wstring guid_;
// The name of the dll to load.
std::wstring dll_;
+ // The handle to dll_ after it has been loaded.
+ HINSTANCE dll_handle_;
// The current version of this client registered with GoogleUpdate.
wchar_t* version_;
// The location of current chrome.dll.
« no previous file with comments | « chrome/app/chrome_exe_main.cc ('k') | chrome/app/google_update_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698