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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/task.h" 16 #include "base/task.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 #include "base/timer.h" 18 #include "base/timer.h"
19 #include "base/tracked.h" 19 #include "base/tracked.h"
20 #include "chrome/browser/prefs/pref_member.h" 20 #include "chrome/browser/prefs/pref_member.h"
21 #include "chrome/browser/sync/engine/model_safe_worker.h" 21 #include "chrome/browser/sync/engine/model_safe_worker.h"
22 #include "chrome/browser/sync/glue/data_type_controller.h" 22 #include "chrome/browser/sync/glue/data_type_controller.h"
23 #include "chrome/browser/sync/glue/sync_backend_host.h" 23 #include "chrome/browser/sync/glue/sync_backend_host.h"
24 #include "chrome/browser/sync/js_event_handler_list.h" 24 #include "chrome/browser/sync/js_event_handler_list.h"
25 #include "chrome/browser/sync/profile_sync_service_observer.h" 25 #include "chrome/browser/sync/profile_sync_service_observer.h"
26 #include "chrome/browser/sync/sync_setup_wizard.h" 26 #include "chrome/browser/sync/sync_setup_wizard.h"
27 #include "chrome/browser/sync/syncable/model_type.h" 27 #include "chrome/browser/sync/syncable/model_type.h"
28 #include "chrome/browser/sync/unrecoverable_error_handler.h" 28 #include "chrome/browser/sync/unrecoverable_error_handler.h"
29 #include "chrome/common/net/gaia/google_service_auth_error.h" 29 #include "chrome/common/net/gaia/google_service_auth_error.h"
30 #include "content/common/content_notification_types.h"
30 #include "content/common/notification_observer.h" 31 #include "content/common/notification_observer.h"
31 #include "content/common/notification_registrar.h" 32 #include "content/common/notification_registrar.h"
32 #include "content/common/notification_type.h"
33 #include "googleurl/src/gurl.h" 33 #include "googleurl/src/gurl.h"
34 34
35 class NotificationDetails; 35 class NotificationDetails;
36 class NotificationSource; 36 class NotificationSource;
37 class Profile; 37 class Profile;
38 class ProfileSyncFactory; 38 class ProfileSyncFactory;
39 class SigninManager; 39 class SigninManager;
40 struct ChromeCookieDetails; 40 struct ChromeCookieDetails;
41 41
42 namespace browser_sync { 42 namespace browser_sync {
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 391
392 // TODO(zea): Remove these and have the dtc's call directly into the SBH. 392 // TODO(zea): Remove these and have the dtc's call directly into the SBH.
393 virtual void ActivateDataType( 393 virtual void ActivateDataType(
394 browser_sync::DataTypeController* data_type_controller, 394 browser_sync::DataTypeController* data_type_controller,
395 browser_sync::ChangeProcessor* change_processor); 395 browser_sync::ChangeProcessor* change_processor);
396 virtual void DeactivateDataType( 396 virtual void DeactivateDataType(
397 browser_sync::DataTypeController* data_type_controller, 397 browser_sync::DataTypeController* data_type_controller,
398 browser_sync::ChangeProcessor* change_processor); 398 browser_sync::ChangeProcessor* change_processor);
399 399
400 // NotificationObserver implementation. 400 // NotificationObserver implementation.
401 virtual void Observe(NotificationType type, 401 virtual void Observe(int type,
402 const NotificationSource& source, 402 const NotificationSource& source,
403 const NotificationDetails& details); 403 const NotificationDetails& details);
404 404
405 // Changes which data types we're going to be syncing to |preferred_types|. 405 // Changes which data types we're going to be syncing to |preferred_types|.
406 // If it is running, the DataTypeManager will be instructed to reconfigure 406 // If it is running, the DataTypeManager will be instructed to reconfigure
407 // the sync backend so that exactly these datatypes are actively synced. See 407 // the sync backend so that exactly these datatypes are actively synced. See
408 // class comment for more on what it means for a datatype to be Preferred. 408 // class comment for more on what it means for a datatype to be Preferred.
409 virtual void ChangePreferredDataTypes( 409 virtual void ChangePreferredDataTypes(
410 const syncable::ModelTypeSet& preferred_types); 410 const syncable::ModelTypeSet& preferred_types);
411 411
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // because we haven't finished initializing). Cleared when we successfully 639 // because we haven't finished initializing). Cleared when we successfully
640 // post a new encrypt task to the sync backend. 640 // post a new encrypt task to the sync backend.
641 syncable::ModelTypeSet pending_types_for_encryption_; 641 syncable::ModelTypeSet pending_types_for_encryption_;
642 642
643 scoped_ptr<browser_sync::BackendMigrator> migrator_; 643 scoped_ptr<browser_sync::BackendMigrator> migrator_;
644 644
645 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 645 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
646 }; 646 };
647 647
648 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 648 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/invalidation_util.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698