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

Side by Side Diff: chrome/browser/sync/glue/session_change_processor.cc

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/api/sync_error.h" 13 #include "chrome/browser/sync/api/sync_error.h"
14 #include "chrome/browser/sync/glue/session_model_associator.h" 14 #include "chrome/browser/sync/glue/session_model_associator.h"
15 #include "chrome/browser/sync/internal_api/change_record.h" 15 #include "chrome/browser/sync/internal_api/change_record.h"
16 #include "chrome/browser/sync/internal_api/read_node.h" 16 #include "chrome/browser/sync/internal_api/read_node.h"
17 #include "chrome/browser/sync/profile_sync_service.h" 17 #include "chrome/browser/sync/profile_sync_service.h"
18 #include "chrome/browser/sync/protocol/session_specifics.pb.h"
19 #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" 18 #include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h"
20 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 19 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
21 #include "chrome/common/chrome_notification_types.h" 20 #include "chrome/common/chrome_notification_types.h"
22 #include "content/public/browser/navigation_controller.h" 21 #include "content/public/browser/navigation_controller.h"
23 #include "content/public/browser/navigation_entry.h" 22 #include "content/public/browser/navigation_entry.h"
23 #include "content/public/browser/notification_details.h"
24 #include "content/public/browser/notification_service.h" 24 #include "content/public/browser/notification_service.h"
25 #include "content/public/browser/notification_details.h"
26 #include "content/public/browser/notification_source.h" 25 #include "content/public/browser/notification_source.h"
27 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
27 #include "sync/protocol/session_specifics.pb.h"
28 28
29 using content::BrowserThread; 29 using content::BrowserThread;
30 using content::NavigationController; 30 using content::NavigationController;
31 using content::WebContents; 31 using content::WebContents;
32 32
33 namespace browser_sync { 33 namespace browser_sync {
34 34
35 namespace { 35 namespace {
36 36
37 // The URL at which the set of synced tabs is displayed. We treat it differently 37 // The URL at which the set of synced tabs is displayed. We treat it differently
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, 352 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
353 content::NotificationService::AllBrowserContextsAndSources()); 353 content::NotificationService::AllBrowserContextsAndSources());
354 } 354 }
355 355
356 void SessionChangeProcessor::StopObserving() { 356 void SessionChangeProcessor::StopObserving() {
357 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 357 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
358 notification_registrar_.RemoveAll(); 358 notification_registrar_.RemoveAll();
359 } 359 }
360 360
361 } // namespace browser_sync 361 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_model_associator.cc ('k') | chrome/browser/sync/glue/session_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698