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

Side by Side Diff: chrome/installer/util/self_reg_work_item.h

Issue 1109043003: Apply automated fixits for Chrome clang plugin to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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 #ifndef CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__ 5 #ifndef CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__
6 #define CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__ 6 #define CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/installer/util/work_item.h" 11 #include "chrome/installer/util/work_item.h"
12 12
13 // Registers or unregisters the DLL at the given path. 13 // Registers or unregisters the DLL at the given path.
14 class SelfRegWorkItem : public WorkItem { 14 class SelfRegWorkItem : public WorkItem {
15 public: 15 public:
16 virtual ~SelfRegWorkItem(); 16 ~SelfRegWorkItem() override;
17 17
18 virtual bool Do(); 18 bool Do() override;
19 virtual void Rollback(); 19 void Rollback() override;
20 20
21 private: 21 private:
22 friend class WorkItem; 22 friend class WorkItem;
23 23
24 // Constructs a work item that will call upon a self-registering DLL to 24 // Constructs a work item that will call upon a self-registering DLL to
25 // register itself. 25 // register itself.
26 // dll_path: The path to the DLL. 26 // dll_path: The path to the DLL.
27 // do_register: Whether this action is to register or unregister the DLL. 27 // do_register: Whether this action is to register or unregister the DLL.
28 // user_level_registration: If true, then the exports called 28 // user_level_registration: If true, then the exports called
29 // "DllRegisterUserServer" and "DllUnregisterUserServer" will be called to 29 // "DllRegisterUserServer" and "DllUnregisterUserServer" will be called to
(...skipping 14 matching lines...) Expand all
44 // Whether this work item will register or unregister the dll. The rollback 44 // Whether this work item will register or unregister the dll. The rollback
45 // action just inverts this parameter. 45 // action just inverts this parameter.
46 bool do_register_; 46 bool do_register_;
47 47
48 // Whether to use alternate export names on the DLL that will perform 48 // Whether to use alternate export names on the DLL that will perform
49 // user level registration. 49 // user level registration.
50 bool user_level_registration_; 50 bool user_level_registration_;
51 }; 51 };
52 52
53 #endif // CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__ 53 #endif // CHROME_INSTALLER_UTIL_SELF_REG_WORK_ITEM_H__
OLDNEW
« no previous file with comments | « chrome/installer/util/registry_key_backup_unittest.cc ('k') | chrome/installer/util/set_reg_value_work_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698