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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2898723003: [Sync] Migrate SyncInternalsMessageHandler off CallJavascriptFunctionUnsafe. (Closed)
Patch Set: More updates for dbeam. Created 3 years, 7 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
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 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const; 489 virtual syncer::ModelTypeSet GetRegisteredDataTypes() const;
490 490
491 // See the SyncServiceCrypto header. 491 // See the SyncServiceCrypto header.
492 virtual syncer::PassphraseType GetPassphraseType() const; 492 virtual syncer::PassphraseType GetPassphraseType() const;
493 virtual bool IsEncryptEverythingAllowed() const; 493 virtual bool IsEncryptEverythingAllowed() const;
494 virtual void SetEncryptEverythingAllowed(bool allowed); 494 virtual void SetEncryptEverythingAllowed(bool allowed);
495 495
496 // Returns true if the syncer is waiting for new datatypes to be encrypted. 496 // Returns true if the syncer is waiting for new datatypes to be encrypted.
497 virtual bool encryption_pending() const; 497 virtual bool encryption_pending() const;
498 498
499 SigninManagerBase* signin() const;
500
501 syncer::SyncErrorController* sync_error_controller() { 499 syncer::SyncErrorController* sync_error_controller() {
502 return sync_error_controller_.get(); 500 return sync_error_controller_.get();
503 } 501 }
504 502
505 // TODO(sync): This is only used in tests. Can we remove it? 503 // TODO(sync): This is only used in tests. Can we remove it?
506 const syncer::DataTypeStatusTable& data_type_status_table() const; 504 const syncer::DataTypeStatusTable& data_type_status_table() const;
507 505
508 syncer::DataTypeManager::ConfigureStatus configure_status() { 506 syncer::DataTypeManager::ConfigureStatus configure_status() {
509 return configure_status_; 507 return configure_status_;
510 } 508 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 894 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
897 895
898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 896 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
899 }; 897 };
900 898
901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 899 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
902 900
903 } // namespace browser_sync 901 } // namespace browser_sync
904 902
905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 903 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698