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

Side by Side Diff: chrome/app/google_update_client.h

Issue 10896: Re-do the way browser windows are shown:... (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This is the Chrome-GoogleUpdater integration glue. Current features of this 5 // This is the Chrome-GoogleUpdater integration glue. Current features of this
6 // code include: 6 // code include:
7 // * checks to ensure that client is properly registered with GoogleUpdater 7 // * checks to ensure that client is properly registered with GoogleUpdater
8 // * versioned directory launcher to allow for completely transparent silent 8 // * versioned directory launcher to allow for completely transparent silent
9 // autoupdates 9 // autoupdates
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Launches your app's main code and initializes Google Update services. 44 // Launches your app's main code and initializes Google Update services.
45 // - looks up the registered version via GoogleUpdate, loads dll from version 45 // - looks up the registered version via GoogleUpdate, loads dll from version
46 // dir (e.g. Program Files/Google/1.0.101.0/chrome.dll) and calls the 46 // dir (e.g. Program Files/Google/1.0.101.0/chrome.dll) and calls the
47 // entry_name. If chrome.dll is found in this path the version is stored 47 // entry_name. If chrome.dll is found in this path the version is stored
48 // in the environment block such that subsequent launches invoke the 48 // in the environment block such that subsequent launches invoke the
49 // save dll version. 49 // save dll version.
50 // - instance is handle to the current instance of application 50 // - instance is handle to the current instance of application
51 // - sandbox provides information about sandbox services 51 // - sandbox provides information about sandbox services
52 // - command_line contains command line parameters 52 // - command_line contains command line parameters
53 // - show_command specifies how the window is to be shown
54 // - entry_name is the function of type DLL_MAIN that is called 53 // - entry_name is the function of type DLL_MAIN that is called
55 // from chrome.dll 54 // from chrome.dll
56 // - ret is an out param with the return value of entry 55 // - ret is an out param with the return value of entry
57 // Returns false if unable to load the dll or find entry_name's proc addr. 56 // Returns false if unable to load the dll or find entry_name's proc addr.
58 bool Launch(HINSTANCE instance, sandbox::SandboxInterfaceInfo* sandbox, 57 bool Launch(HINSTANCE instance, sandbox::SandboxInterfaceInfo* sandbox,
59 wchar_t* command_line, int show_command, const char* entry_name, 58 wchar_t* command_line, const char* entry_name, int* ret);
60 int* ret);
61 59
62 private: 60 private:
63 // disallow copy ctor and operator= 61 // disallow copy ctor and operator=
64 GoogleUpdateClient(const GoogleUpdateClient&); 62 GoogleUpdateClient(const GoogleUpdateClient&);
65 void operator=(const GoogleUpdateClient&); 63 void operator=(const GoogleUpdateClient&);
66 64
67 // The GUID that this client has registered with GoogleUpdate for autoupdate. 65 // The GUID that this client has registered with GoogleUpdate for autoupdate.
68 std::wstring guid_; 66 std::wstring guid_;
69 // The name of the dll to load. 67 // The name of the dll to load.
70 std::wstring dll_; 68 std::wstring dll_;
71 // The current version of this client registered with GoogleUpdate. 69 // The current version of this client registered with GoogleUpdate.
72 wchar_t* version_; 70 wchar_t* version_;
73 // The location of current chrome.dll. 71 // The location of current chrome.dll.
74 wchar_t dll_path_[MAX_PATH]; 72 wchar_t dll_path_[MAX_PATH];
75 }; 73 };
76 74
77 } // namespace google_update 75 } // namespace google_update
78 76
79 #endif // CHROME_APP_GOOGLE_UPDATE_CLIENT_H_ 77 #endif // CHROME_APP_GOOGLE_UPDATE_CLIENT_H_
80 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698