| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "base/file_path.h" | |
| 7 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 8 #include "base/file_version_info.h" | 7 #include "base/file_version_info.h" |
| 9 #include "base/string_util.h" | 8 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
| 11 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
| 12 #include "chrome/browser/sync/glue/sync_backend_host.h" | 11 #include "chrome/browser/sync/glue/sync_backend_host.h" |
| 13 #include "chrome/browser/sync/glue/http_bridge.h" | 12 #include "chrome/browser/sync/glue/http_bridge.h" |
| 14 #include "chrome/browser/sync/glue/bookmark_model_worker.h" | 13 #include "chrome/browser/sync/glue/bookmark_model_worker.h" |
| 15 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
| 16 | 15 |
| 17 static const int kSaveChangesIntervalSeconds = 10; | 16 static const int kSaveChangesIntervalSeconds = 10; |
| 18 static const char kGaiaServiceId[] = "chromiumsync"; | 17 static const char kGaiaServiceId[] = "chromiumsync"; |
| 19 static const char kGaiaSourceForChrome[] = "ChromiumBrowser"; | 18 static const char kGaiaSourceForChrome[] = "ChromiumBrowser"; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 save_changes_timer_.Start( | 289 save_changes_timer_.Start( |
| 291 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), | 290 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), |
| 292 this, &Core::SaveChanges); | 291 this, &Core::SaveChanges); |
| 293 } | 292 } |
| 294 | 293 |
| 295 void SyncBackendHost::Core::SaveChanges() { | 294 void SyncBackendHost::Core::SaveChanges() { |
| 296 syncapi_->SaveChanges(); | 295 syncapi_->SaveChanges(); |
| 297 } | 296 } |
| 298 | 297 |
| 299 } // namespace browser_sync | 298 } // namespace browser_sync |
| OLD | NEW |