Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / drive / logging.h
blob473478a120d6db579e7ab95eb9211dbc545b17b3
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_
8 #include <vector>
10 #include "chrome/browser/drive/event_logger.h"
12 namespace drive {
13 // Originally wanted to use 'logging' here, but it conflicts with
14 // base/logging.h, and breaks DCHECK() and friends.
15 namespace util {
17 // Logs a message using printf format.
18 // This function can be called from any thread.
19 void Log(
20 logging::LogSeverity severity, const char* format, ...) PRINTF_FORMAT(2, 3);
22 // Returns the log history.
23 // This function can be called from any thread.
24 std::vector<EventLogger::Event> GetLogHistory();
26 } // namespace util
27 } // namespace drive
29 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_LOGGING_H_