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

Unified Diff: base/weak_ptr.h

Issue 6736019: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/vlog.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/weak_ptr.h
===================================================================
--- base/weak_ptr.h (revision 79303)
+++ base/weak_ptr.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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.
@@ -52,6 +52,7 @@
#define BASE_WEAK_PTR_H_
#pragma once
+#include "base/base_api.h"
#include "base/logging.h"
#include "base/ref_counted.h"
#include "base/threading/non_thread_safe.h"
@@ -62,7 +63,7 @@
// These classes are part of the WeakPtr implementation.
// DO NOT USE THESE CLASSES DIRECTLY YOURSELF.
-class WeakReference {
+class BASE_API WeakReference {
public:
class Flag : public RefCounted<Flag>, public base::NonThreadSafe {
public:
@@ -90,7 +91,7 @@
scoped_refptr<Flag> flag_;
};
-class WeakReferenceOwner {
+class BASE_API WeakReferenceOwner {
public:
WeakReferenceOwner();
~WeakReferenceOwner();
@@ -116,7 +117,7 @@
// constructor by avoiding the need for a public accessor for ref_. A
// WeakPtr<T> cannot access the private members of WeakPtr<U>, so this
// base class gives us a way to access ref_ in a protected fashion.
-class WeakPtrBase {
+class BASE_API WeakPtrBase {
public:
WeakPtrBase();
~WeakPtrBase();
« no previous file with comments | « base/vlog.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698