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 "chrome/browser/sync/glue/session_change_processor.h" | 5 #include "chrome/browser/sync/glue/session_change_processor.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/browser/extensions/extension_tab_helper.h" | 11 #include "chrome/browser/extensions/extension_tab_helper.h" |
12 #include "chrome/browser/history/history_notifications.h" | 12 #include "chrome/browser/history/history_notifications.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/sync/api/sync_error.h" | 14 #include "chrome/browser/sync/api/sync_error.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/internal_api/change_record.h" | |
17 #include "chrome/browser/sync/internal_api/read_node.h" | |
18 #include "chrome/browser/sync/profile_sync_service.h" | 16 #include "chrome/browser/sync/profile_sync_service.h" |
19 #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" | 17 #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" |
20 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
21 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
22 #include "content/public/browser/navigation_controller.h" | 20 #include "content/public/browser/navigation_controller.h" |
23 #include "content/public/browser/navigation_entry.h" | 21 #include "content/public/browser/navigation_entry.h" |
24 #include "content/public/browser/notification_details.h" | 22 #include "content/public/browser/notification_details.h" |
25 #include "content/public/browser/notification_service.h" | 23 #include "content/public/browser/notification_service.h" |
26 #include "content/public/browser/notification_source.h" | 24 #include "content/public/browser/notification_source.h" |
27 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
| 26 #include "sync/internal_api/change_record.h" |
| 27 #include "sync/internal_api/read_node.h" |
28 #include "sync/protocol/session_specifics.pb.h" | 28 #include "sync/protocol/session_specifics.pb.h" |
29 #include "sync/syncable/model_type.h" | 29 #include "sync/syncable/model_type.h" |
30 #include "sync/syncable/model_type_payload_map.h" | 30 #include "sync/syncable/model_type_payload_map.h" |
31 | 31 |
32 using content::BrowserThread; | 32 using content::BrowserThread; |
33 using content::NavigationController; | 33 using content::NavigationController; |
34 using content::WebContents; | 34 using content::WebContents; |
35 | 35 |
36 namespace browser_sync { | 36 namespace browser_sync { |
37 | 37 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 notification_registrar_.Add(this, chrome::NOTIFICATION_FAVICON_CHANGED, | 374 notification_registrar_.Add(this, chrome::NOTIFICATION_FAVICON_CHANGED, |
375 content::Source<Profile>(profile_)); | 375 content::Source<Profile>(profile_)); |
376 } | 376 } |
377 | 377 |
378 void SessionChangeProcessor::StopObserving() { | 378 void SessionChangeProcessor::StopObserving() { |
379 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 379 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
380 notification_registrar_.RemoveAll(); | 380 notification_registrar_.RemoveAll(); |
381 } | 381 } |
382 | 382 |
383 } // namespace browser_sync | 383 } // namespace browser_sync |
OLD | NEW |