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

Unified Diff: base/win/enum_variant.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 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 | « base/win/dllmain.cc ('k') | base/win/enum_variant.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/enum_variant.h
diff --git a/base/win/enum_variant.h b/base/win/enum_variant.h
deleted file mode 100644
index 2caaccded9ff58b2b70fe4903ec0f7bea29973ec..0000000000000000000000000000000000000000
--- a/base/win/enum_variant.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_WIN_ENUM_VARIANT_H_
-#define BASE_WIN_ENUM_VARIANT_H_
-
-#include <unknwn.h>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/win/iunknown_impl.h"
-
-namespace base {
-namespace win {
-
-// A simple implementation of IEnumVARIANT.
-class BASE_EXPORT EnumVariant
- : public IEnumVARIANT,
- public IUnknownImpl {
- public:
- // The constructor allocates an array of size |count|. Then use
- // ItemAt to set the value of each item in the array to initialize it.
- explicit EnumVariant(unsigned long count);
-
- // Returns a mutable pointer to the item at position |index|.
- VARIANT* ItemAt(unsigned long index);
-
- // IUnknown.
- ULONG STDMETHODCALLTYPE AddRef() override;
- ULONG STDMETHODCALLTYPE Release() override;
- STDMETHODIMP QueryInterface(REFIID riid, void** ppv) override;
-
- // IEnumVARIANT.
- STDMETHODIMP Next(ULONG requested_count,
- VARIANT* out_elements,
- ULONG* out_elements_received) override;
- STDMETHODIMP Skip(ULONG skip_count) override;
- STDMETHODIMP Reset() override;
- STDMETHODIMP Clone(IEnumVARIANT** out_cloned_object) override;
-
- private:
- ~EnumVariant() override;
-
- scoped_ptr<VARIANT[]> items_;
- unsigned long count_;
- unsigned long current_index_;
-};
-
-} // namespace win
-} // namespace base
-
-#endif // BASE_WIN_ENUM_VARIANT_H_
« no previous file with comments | « base/win/dllmain.cc ('k') | base/win/enum_variant.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698