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

Side by Side Diff: chrome/browser/sync_file_system/logger.h

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "chrome/browser/drive/event_logger.h" 13 #include "components/drive/event_logger.h"
14 14
15 namespace sync_file_system { 15 namespace sync_file_system {
16 // Originally wanted to use 'logging' here, but it conflicts with 16 // Originally wanted to use 'logging' here, but it conflicts with
17 // base/logging.h, and breaks DCHECK() and friends. 17 // base/logging.h, and breaks DCHECK() and friends.
18 namespace util { 18 namespace util {
19 19
20 // Resets the log. 20 // Resets the log.
21 void ClearLog(); 21 void ClearLog();
22 22
23 // Logs a message using printf format. 23 // Logs a message using printf format.
24 // This function can be called from any thread. 24 // This function can be called from any thread.
25 void Log(logging::LogSeverity level, 25 void Log(logging::LogSeverity level,
26 const tracked_objects::Location& location, 26 const tracked_objects::Location& location,
27 const char* format, 27 const char* format,
28 ...) 28 ...)
29 PRINTF_FORMAT(3, 4); 29 PRINTF_FORMAT(3, 4);
30 30
31 // Returns the log history. 31 // Returns the log history.
32 // This function can be called from any thread. 32 // This function can be called from any thread.
33 std::vector<drive::EventLogger::Event> GetLogHistory(); 33 std::vector<drive::EventLogger::Event> GetLogHistory();
34 34
35 } // namespace util 35 } // namespace util
36 } // namespace sync_file_system 36 } // namespace sync_file_system
37 37
38 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_ 38 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOGGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/uninstall_app_task.cc ('k') | chrome/browser/sync_file_system/logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698