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

Side by Side Diff: base/at_exit.h

Issue 6904109: linux: components support for base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 7 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 | « no previous file | base/atomicops_internals_x86_gcc.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AT_EXIT_H_ 5 #ifndef BASE_AT_EXIT_H_
6 #define BASE_AT_EXIT_H_ 6 #define BASE_AT_EXIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stack> 9 #include <stack>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 base::Lock lock_; 64 base::Lock lock_;
65 std::stack<CallbackAndParam> stack_; 65 std::stack<CallbackAndParam> stack_;
66 AtExitManager* next_manager_; // Stack of managers to allow shadowing. 66 AtExitManager* next_manager_; // Stack of managers to allow shadowing.
67 67
68 DISALLOW_COPY_AND_ASSIGN(AtExitManager); 68 DISALLOW_COPY_AND_ASSIGN(AtExitManager);
69 }; 69 };
70 70
71 #if defined(UNIT_TEST) 71 #if defined(UNIT_TEST)
72 class ShadowingAtExitManager : public AtExitManager { 72 class BASE_API ShadowingAtExitManager : public AtExitManager {
rvargas (doing something else) 2011/04/28 23:29:44 Why is this needed? There is no implementation out
Evan Martin 2011/04/28 23:39:40 Fixed.
73 public: 73 public:
74 ShadowingAtExitManager() : AtExitManager(true) {} 74 ShadowingAtExitManager() : AtExitManager(true) {}
75 }; 75 };
76 #endif // defined(UNIT_TEST) 76 #endif // defined(UNIT_TEST)
77 77
78 } // namespace base 78 } // namespace base
79 79
80 #endif // BASE_AT_EXIT_H_ 80 #endif // BASE_AT_EXIT_H_
OLDNEW
« no previous file with comments | « no previous file | base/atomicops_internals_x86_gcc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698