| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/sync/glue/session_change_processor.h" | 5 #include "chrome/browser/sync/glue/session_change_processor.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/scoped_vector.h" | 12 #include "base/scoped_vector.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/sync/engine/syncapi.h" | 14 #include "chrome/browser/sync/engine/syncapi.h" |
| 15 #include "chrome/browser/sync/glue/session_model_associator.h" | 15 #include "chrome/browser/sync/glue/session_model_associator.h" |
| 16 #include "chrome/browser/sync/profile_sync_service.h" | 16 #include "chrome/browser/sync/profile_sync_service.h" |
| 17 #include "chrome/browser/tab_contents/navigation_controller.h" | |
| 18 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 19 #include "chrome/common/notification_details.h" | 17 #include "chrome/common/notification_details.h" |
| 20 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
| 21 #include "chrome/common/notification_source.h" | 19 #include "chrome/common/notification_source.h" |
| 20 #include "content/browser/tab_contents/navigation_controller.h" |
| 21 #include "content/browser/tab_contents/tab_contents.h" |
| 22 | 22 |
| 23 namespace browser_sync { | 23 namespace browser_sync { |
| 24 | 24 |
| 25 SessionChangeProcessor::SessionChangeProcessor( | 25 SessionChangeProcessor::SessionChangeProcessor( |
| 26 UnrecoverableErrorHandler* error_handler, | 26 UnrecoverableErrorHandler* error_handler, |
| 27 SessionModelAssociator* session_model_associator) | 27 SessionModelAssociator* session_model_associator) |
| 28 : ChangeProcessor(error_handler), | 28 : ChangeProcessor(error_handler), |
| 29 session_model_associator_(session_model_associator), | 29 session_model_associator_(session_model_associator), |
| 30 profile_(NULL) { | 30 profile_(NULL) { |
| 31 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 31 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 NotificationService::AllSources()); | 255 NotificationService::AllSources()); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void SessionChangeProcessor::StopObserving() { | 258 void SessionChangeProcessor::StopObserving() { |
| 259 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 259 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 260 DCHECK(profile_); | 260 DCHECK(profile_); |
| 261 notification_registrar_.RemoveAll(); | 261 notification_registrar_.RemoveAll(); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace browser_sync | 264 } // namespace browser_sync |
| OLD | NEW |