| OLD | NEW |
| 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 #include "sync/notifier/chrome_system_resources.h" | 5 #include "sync/notifier/chrome_system_resources.h" |
| 6 | 6 |
| 7 #include <cstdlib> | 7 #include <cstdlib> |
| 8 #include <cstring> | 8 #include <cstring> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
| 17 #include "google/cacheinvalidation/deps/callback.h" | 17 #include "google/cacheinvalidation/deps/callback.h" |
| 18 #include "google/cacheinvalidation/include/types.h" | 18 #include "google/cacheinvalidation/include/types.h" |
| 19 #include "jingle/notifier/listener/push_client.h" | 19 #include "jingle/notifier/listener/push_client.h" |
| 20 #include "sync/notifier/invalidation_util.h" | 20 #include "sync/notifier/invalidation_util.h" |
| 21 | 21 |
| 22 namespace csync { | 22 namespace syncer { |
| 23 | 23 |
| 24 ChromeLogger::ChromeLogger() {} | 24 ChromeLogger::ChromeLogger() {} |
| 25 ChromeLogger::~ChromeLogger() {} | 25 ChromeLogger::~ChromeLogger() {} |
| 26 | 26 |
| 27 void ChromeLogger::Log(LogLevel level, const char* file, int line, | 27 void ChromeLogger::Log(LogLevel level, const char* file, int line, |
| 28 const char* format, ...) { | 28 const char* format, ...) { |
| 29 logging::LogSeverity log_severity = -2; // VLOG(2) | 29 logging::LogSeverity log_severity = -2; // VLOG(2) |
| 30 bool emit_log = false; | 30 bool emit_log = false; |
| 31 switch (level) { | 31 switch (level) { |
| 32 case FINE_LEVEL: | 32 case FINE_LEVEL: |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 } | 245 } |
| 246 | 246 |
| 247 ChromeScheduler* ChromeSystemResources::internal_scheduler() { | 247 ChromeScheduler* ChromeSystemResources::internal_scheduler() { |
| 248 return internal_scheduler_.get(); | 248 return internal_scheduler_.get(); |
| 249 } | 249 } |
| 250 | 250 |
| 251 ChromeScheduler* ChromeSystemResources::listener_scheduler() { | 251 ChromeScheduler* ChromeSystemResources::listener_scheduler() { |
| 252 return listener_scheduler_.get(); | 252 return listener_scheduler_.get(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace csync | 255 } // namespace syncer |
| OLD | NEW |