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

Side by Side Diff: base/scoped_variant_win.h

Issue 3176026: FBTF: Remove unneeded headers from base/ (part 7) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « base/message_pump_glib_unittest.cc ('k') | base/scoped_vector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 BASE_SCOPED_VARIANT_WIN_H_ 5 #ifndef BASE_SCOPED_VARIANT_WIN_H_
6 #define BASE_SCOPED_VARIANT_WIN_H_ 6 #define BASE_SCOPED_VARIANT_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <oleauto.h> 10 #include <oleauto.h>
11 11
12 #include "base/basictypes.h" // needed to pick up OS_WIN 12 #include "base/basictypes.h"
13 #include "base/logging.h" 13 #include "build/build_config.h"
14 14
15 // Scoped VARIANT class for automatically freeing a COM VARIANT at the 15 // Scoped VARIANT class for automatically freeing a COM VARIANT at the
16 // end of a scope. Additionally provides a few functions to make the 16 // end of a scope. Additionally provides a few functions to make the
17 // encapsulated VARIANT easier to use. 17 // encapsulated VARIANT easier to use.
18 // Instead of inheriting from VARIANT, we take the containment approach 18 // Instead of inheriting from VARIANT, we take the containment approach
19 // in order to have more control over the usage of the variant and guard 19 // in order to have more control over the usage of the variant and guard
20 // against memory leaks. 20 // against memory leaks.
21 class ScopedVariant { 21 class ScopedVariant {
22 public: 22 public:
23 // Declaration of a global variant variable that's always VT_EMPTY 23 // Declaration of a global variant variable that's always VT_EMPTY
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 private: 153 private:
154 // Comparison operators for ScopedVariant are not supported at this point. 154 // Comparison operators for ScopedVariant are not supported at this point.
155 // Use the Compare method instead. 155 // Use the Compare method instead.
156 bool operator==(const ScopedVariant& var) const; 156 bool operator==(const ScopedVariant& var) const;
157 bool operator!=(const ScopedVariant& var) const; 157 bool operator!=(const ScopedVariant& var) const;
158 DISALLOW_COPY_AND_ASSIGN(ScopedVariant); 158 DISALLOW_COPY_AND_ASSIGN(ScopedVariant);
159 }; 159 };
160 160
161 #endif // BASE_SCOPED_VARIANT_WIN_H_ 161 #endif // BASE_SCOPED_VARIANT_WIN_H_
OLDNEW
« no previous file with comments | « base/message_pump_glib_unittest.cc ('k') | base/scoped_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698