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

Unified Diff: base/mac/scoped_aedesc.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « base/mac/os_crash_dumps.cc ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/scoped_aedesc.h
diff --git a/base/mac/scoped_aedesc.h b/base/mac/scoped_aedesc.h
deleted file mode 100644
index a1323c0cb7d202dfce09d2842a4cac0c5e905926..0000000000000000000000000000000000000000
--- a/base/mac/scoped_aedesc.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2010 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_MAC_SCOPED_AEDESC_H_
-#define BASE_MAC_SCOPED_AEDESC_H_
-
-#import <CoreServices/CoreServices.h>
-
-#include "base/basictypes.h"
-
-namespace base {
-namespace mac {
-
-// The ScopedAEDesc is used to scope AppleEvent descriptors. On creation,
-// it will store a NULL descriptor. On destruction, it will dispose of the
-// descriptor.
-//
-// This class is parameterized for additional type safety checks. You can use
-// the generic AEDesc type by not providing a template parameter:
-// ScopedAEDesc<> desc;
-template <typename AEDescType = AEDesc>
-class ScopedAEDesc {
- public:
- ScopedAEDesc() {
- AECreateDesc(typeNull, NULL, 0, &desc_);
- }
-
- ~ScopedAEDesc() {
- AEDisposeDesc(&desc_);
- }
-
- // Used for in parameters.
- operator const AEDescType*() {
- return &desc_;
- }
-
- // Used for out parameters.
- AEDescType* OutPointer() {
- return &desc_;
- }
-
- private:
- AEDescType desc_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedAEDesc);
-};
-
-} // namespace mac
-} // namespace base
-
-#endif // BASE_MAC_SCOPED_AEDESC_H_
« no previous file with comments | « base/mac/os_crash_dumps.cc ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698