Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/DLL.h

Issue 6202981292703744: Whole installer (Closed)
Patch Set: Created June 24, 2014, 7:27 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: installer/src/installer-lib/DLL.h
===================================================================
--- a/installer/src/installer-lib/DLL.h
+++ b/installer/src/installer-lib/DLL.h
@@ -1,6 +1,6 @@
/**
- * \file DLL.h The DLL as a Windows system module.
- */
+* \file DLL.h The DLL as a Windows system module.
+*/
#ifndef DLL_H
#define DLL_H
@@ -11,54 +11,54 @@
#include "windows.h"
/**
- * Singleton representing the DLL module. This class is the source of the file name for the custom action library, used in logging.
- * The choice to use a singleton reflects the design of the Windows API, which treats the module handle as a global for the DLL instance,
- * only appearing during the calls that manage the lifetime of the DLL.
- */
+* Singleton representing the DLL module. This class is the source of the file name for the custom action library, used in logging.
+* The choice to use a singleton reflects the design of the Windows API, which treats the module handle as a global for the DLL instance,
+* only appearing during the calls that manage the lifetime of the DLL.
+*/
class DLL_Module
{
public:
/**
- * Accessor function for the singleton.
- */
+ * Accessor function for the singleton.
+ */
static DLL_Module & module();
/**
- * Hook function to call on DLL attach.
- */
+ * Hook function to call on DLL attach.
+ */
static void attach( HINSTANCE handle );
/**
- * Hook function to call on DLL detach.
- */
+ * Hook function to call on DLL detach.
+ */
static void detach();
/**
- * Textual name of the DLL as an OS module.
- */
+ * Textual name of the DLL as an OS module.
+ */
std::wstring name();
private:
/**
- * The singleton value.
- */
+ * The singleton value.
+ */
static std::shared_ptr< DLL_Module > singleton;
/**
- * Private constructor ensures use of accessor function only.
- */
+ * Private constructor ensures use of accessor function only.
+ */
DLL_Module( HINSTANCE handle );
/**
- * Windows handle for the instance of the DLL.
- */
+ * Windows handle for the instance of the DLL.
+ */
HINSTANCE handle;
/**
- * The text name of the module.
- *
- * Implemented as a smart pointer for deferred evaluation of the system call to get the module name.
- */
+ * The text name of the module.
+ *
+ * Implemented as a smart pointer for deferred evaluation of the system call to get the module name.
+ */
std::shared_ptr< std::wstring > _name;
};

Powered by Google App Engine
This is Rietveld