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

Unified Diff: goopdate/cocreate_async.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 | « goopdate/build.scons ('k') | goopdate/cocreate_async.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: goopdate/cocreate_async.h
diff --git a/goopdate/cocreate_async.h b/goopdate/cocreate_async.h
deleted file mode 100644
index b59f19af441f98cc49ba7765c3f5214f801db72f..0000000000000000000000000000000000000000
--- a/goopdate/cocreate_async.h
+++ /dev/null
@@ -1,114 +0,0 @@
-// Copyright 2010 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-#ifndef OMAHA_GOOPDATE_COCREATE_ASYNC_H_
-#define OMAHA_GOOPDATE_COCREATE_ASYNC_H_
-
-#include <atlbase.h>
-#include <oaidl.h>
-#include <oleauto.h>
-#include "goopdate/omaha3_idl.h"
-#include "omaha/base/atlregmapex.h"
-#include "omaha/base/synchronized.h"
-#include "omaha/common/const_goopdate.h"
-#include "omaha/common/goopdate_utils.h"
-#include "omaha/goopdate/com_proxy.h"
-#include "omaha/goopdate/non_localized_resource.h"
-
-namespace omaha {
-
-#pragma warning(push)
-// Construction of local static object is not thread-safe
-#pragma warning(disable:4640)
-
-class ATL_NO_VTABLE CoCreateAsync
- : public CComObjectRootEx<CComObjectThreadModel>,
- public CComCoClass<CoCreateAsync, &__uuidof(CoCreateAsyncClass)>,
- public ICoCreateAsync,
- public StdMarshalInfo {
- public:
- CoCreateAsync();
-
- STDMETHOD(createOmahaMachineServerAsync)(BSTR origin_url,
- BOOL create_elevated,
- ICoCreateAsyncStatus** status);
-
- DECLARE_NOT_AGGREGATABLE(CoCreateAsync);
- DECLARE_REGISTRY_RESOURCEID_EX(IDR_LOCAL_SERVER_RGS)
-
- BEGIN_REGISTRY_MAP()
- REGMAP_ENTRY(_T("HKROOT"), goopdate_utils::GetHKRoot())
- REGMAP_MODULE2(_T("MODULE"), kOmahaBrokerFileName)
- REGMAP_ENTRY(_T("VERSION"), _T("1.0"))
- REGMAP_ENTRY(_T("PROGID"), kProgIDCoCreateAsync)
- REGMAP_ENTRY(_T("DESCRIPTION"), _T("CoCreateAsync"))
- REGMAP_UUID(_T("CLSID"), GetObjectCLSID())
- END_REGISTRY_MAP()
-
- BEGIN_COM_MAP(CoCreateAsync)
- COM_INTERFACE_ENTRY(ICoCreateAsync)
- COM_INTERFACE_ENTRY(IStdMarshalInfo)
- END_COM_MAP()
-
- protected:
- virtual ~CoCreateAsync() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CoCreateAsync);
-};
-
-class ATL_NO_VTABLE CoCreateAsyncStatus
- : public CComObjectRootEx<CComObjectThreadModel>,
- public IDispatchImpl<ICoCreateAsyncStatus,
- &__uuidof(ICoCreateAsyncStatus),
- &CAtlModule::m_libid,
- kMajorTypeLibVersion,
- kMinorTypeLibVersion> {
- public:
- CoCreateAsyncStatus();
- HRESULT CreateOmahaMachineServerAsync(BSTR origin_url, BOOL create_elevated);
-
- // ICoCreateAsyncStatus.
- STDMETHOD(get_isDone)(VARIANT_BOOL* is_done);
- STDMETHOD(get_completionHResult)(LONG* hr);
- STDMETHOD(get_createdInstance)(IDispatch** instance);
-
- BEGIN_COM_MAP(CoCreateAsyncStatus)
- COM_INTERFACE_ENTRY(ICoCreateAsyncStatus)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
-
- protected:
- virtual ~CoCreateAsyncStatus() {}
-
- private:
- void CreateOmahaMachineServer(const CString origin_url, BOOL create_elevated);
- void SetCreateInstanceResults(const HRESULT& hr,
- const CComPtr<IDispatch>& ptr);
-
- Gate thread_started_gate_;
-
- bool is_done_;
- HRESULT hr_;
- CComPtr<IDispatch> ptr_;
-
- DISALLOW_COPY_AND_ASSIGN(CoCreateAsyncStatus);
-};
-
-#pragma warning(pop)
-
-} // namespace omaha
-
-#endif // OMAHA_GOOPDATE_COCREATE_ASYNC_H_
« no previous file with comments | « goopdate/build.scons ('k') | goopdate/cocreate_async.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698