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

Side by Side Diff: base/logging.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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
« no previous file with comments | « base/location.h ('k') | base/logging.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOGGING_H_ 5 #ifndef BASE_LOGGING_H_
6 #define BASE_LOGGING_H_ 6 #define BASE_LOGGING_H_
7 7
8 #include <stddef.h>
9
8 #include <cassert> 10 #include <cassert>
9 #include <string>
10 #include <cstring> 11 #include <cstring>
11 #include <sstream> 12 #include <sstream>
13 #include <string>
12 14
13 #include "base/base_export.h" 15 #include "base/base_export.h"
14 #include "base/basictypes.h"
15 #include "base/debug/debugger.h" 16 #include "base/debug/debugger.h"
17 #include "base/macros.h"
16 #include "build/build_config.h" 18 #include "build/build_config.h"
17 19
18 // 20 //
19 // Optional message capabilities 21 // Optional message capabilities
20 // ----------------------------- 22 // -----------------------------
21 // Assertion failed messages and fatal errors are displayed in a dialog box 23 // Assertion failed messages and fatal errors are displayed in a dialog box
22 // before the application exits. However, running this UI creates a message 24 // before the application exits. However, running this UI creates a message
23 // loop, which causes application messages to be processed and potentially 25 // loop, which causes application messages to be processed and potentially
24 // dispatched to existing application windows. Since the application is in a 26 // dispatched to existing application windows. Since the application is in a
25 // bad state when this assertion dialog is displayed, these messages may not 27 // bad state when this assertion dialog is displayed, these messages may not
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 #elif NOTIMPLEMENTED_POLICY == 5 967 #elif NOTIMPLEMENTED_POLICY == 5
966 #define NOTIMPLEMENTED() do {\ 968 #define NOTIMPLEMENTED() do {\
967 static bool logged_once = false;\ 969 static bool logged_once = false;\
968 LOG_IF(ERROR, !logged_once) << NOTIMPLEMENTED_MSG;\ 970 LOG_IF(ERROR, !logged_once) << NOTIMPLEMENTED_MSG;\
969 logged_once = true;\ 971 logged_once = true;\
970 } while(0);\ 972 } while(0);\
971 EAT_STREAM_PARAMETERS 973 EAT_STREAM_PARAMETERS
972 #endif 974 #endif
973 975
974 #endif // BASE_LOGGING_H_ 976 #endif // BASE_LOGGING_H_
OLDNEW
« no previous file with comments | « base/location.h ('k') | base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698