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

Side by Side Diff: base/basictypes.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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_BASICTYPES_H_ 5 #ifndef BASE_BASICTYPES_H_
6 #define BASE_BASICTYPES_H_ 6 #define BASE_BASICTYPES_H_
7 7
8 #include <limits.h> // So we can set the bounds of our types 8 #include <limits.h> // So we can set the bounds of our types
9 #include <stddef.h> // For size_t 9 #include <stddef.h> // For size_t
10 #include <string.h> // for memcpy 10 #include <string.h> // for memcpy
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const int64 kint64min = (( int64) GG_LONGLONG(0x8000000000000000)); 68 const int64 kint64min = (( int64) GG_LONGLONG(0x8000000000000000));
69 const int64 kint64max = (( int64) GG_LONGLONG(0x7FFFFFFFFFFFFFFF)); 69 const int64 kint64max = (( int64) GG_LONGLONG(0x7FFFFFFFFFFFFFFF));
70 70
71 // A macro to disallow the copy constructor and operator= functions 71 // A macro to disallow the copy constructor and operator= functions
72 // This should be used in the private: declarations for a class 72 // This should be used in the private: declarations for a class
73 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ 73 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
74 TypeName(const TypeName&); \ 74 TypeName(const TypeName&); \
75 void operator=(const TypeName&) 75 void operator=(const TypeName&)
76 76
77 // An older, deprecated, politically incorrect name for the above. 77 // An older, deprecated, politically incorrect name for the above.
78 // NOTE: The usage of this macro was baned from our code base, but some 78 // NOTE: The usage of this macro was banned from our code base, but some
tfarina 2013/02/15 19:21:01 although correct, this is unrelated to this change
apiccion 2013/02/26 23:51:51 Done.
79 // third_party libraries are yet using it. 79 // third_party libraries are yet using it.
80 // TODO(tfarina): Figure out how to fix the usage of this macro in the 80 // TODO(tfarina): Figure out how to fix the usage of this macro in the
81 // third_party libraries and get rid of it. 81 // third_party libraries and get rid of it.
82 #define DISALLOW_EVIL_CONSTRUCTORS(TypeName) DISALLOW_COPY_AND_ASSIGN(TypeName) 82 #define DISALLOW_EVIL_CONSTRUCTORS(TypeName) DISALLOW_COPY_AND_ASSIGN(TypeName)
83 83
84 // A macro to disallow all the implicit constructors, namely the 84 // A macro to disallow all the implicit constructors, namely the
85 // default constructor, copy constructor and operator= functions. 85 // default constructor, copy constructor and operator= functions.
86 // 86 //
87 // This should be used in the private: declarations for a class 87 // This should be used in the private: declarations for a class
88 // that wants to prevent anyone from instantiating it. This is 88 // that wants to prevent anyone from instantiating it. This is
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 342
343 // Use these to declare and define a static local variable (static T;) so that 343 // Use these to declare and define a static local variable (static T;) so that
344 // it is leaked so that its destructors are not called at exit. If you need 344 // it is leaked so that its destructors are not called at exit. If you need
345 // thread-safe initialization, use base/lazy_instance.h instead. 345 // thread-safe initialization, use base/lazy_instance.h instead.
346 #define CR_DEFINE_STATIC_LOCAL(type, name, arguments) \ 346 #define CR_DEFINE_STATIC_LOCAL(type, name, arguments) \
347 static type& name = *new type arguments 347 static type& name = *new type arguments
348 348
349 } // base 349 } // base
350 350
351 #endif // BASE_BASICTYPES_H_ 351 #endif // BASE_BASICTYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698