Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / sync_file_system / logger.h
blobad011de45bcd2b2147b08512090e6920f0aa6b86
1 // Copyright 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_SYNC_FILE_SYSTEM_LOGGER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_
8 #include <string>
9 #include <vector>
11 #include "base/location.h"
12 #include "base/logging.h"
13 #include "components/drive/event_logger.h"
15 namespace sync_file_system {
16 // Originally wanted to use 'logging' here, but it conflicts with
17 // base/logging.h, and breaks DCHECK() and friends.
18 namespace util {
20 // Resets the log.
21 void ClearLog();
23 // Logs a message using printf format.
24 // This function can be called from any thread.
25 void Log(logging::LogSeverity level,
26 const tracked_objects::Location& location,
27 const char* format,
28 ...)
29 PRINTF_FORMAT(3, 4);
31 // Returns the log history.
32 // This function can be called from any thread.
33 std::vector<drive::EventLogger::Event> GetLogHistory();
35 } // namespace util
36 } // namespace sync_file_system
38 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_