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

Unified Diff: components/wifi_sync/wifi_credential_syncable_service.cc

Issue 675993005: components: add wifi_sync component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-master
Patch Set: fix style issues, and unnecessary virtual functions Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/wifi_sync/wifi_credential_syncable_service.cc
diff --git a/components/wifi_sync/wifi_credential_syncable_service.cc b/components/wifi_sync/wifi_credential_syncable_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fc856a461d9c2376e77a47316d47dac5b637ee13
--- /dev/null
+++ b/components/wifi_sync/wifi_credential_syncable_service.cc
@@ -0,0 +1,72 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/wifi_sync/wifi_credential_syncable_service.h"
+
+namespace wifi_sync {
+
+WifiCredentialSyncableService::WifiCredentialSyncableService(
+ content::BrowserContext* context)
+ : browser_context_(context) {
+}
+
+WifiCredentialSyncableService::~WifiCredentialSyncableService() {
+}
+
+// Implementation of syncer::SyncableService API.
+
+syncer::SyncMergeResult WifiCredentialSyncableService::MergeDataAndStartSyncing(
+ syncer::ModelType type,
+ const syncer::SyncDataList& initial_sync_data,
+ scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
+ scoped_ptr<syncer::SyncErrorFactory> error_handler) {
+ NOTIMPLEMENTED();
erikwright (departed) 2014/10/29 18:18:25 Is this a work-in-progress, or ready for review?
mukesh agrawal 2014/10/30 18:41:28 While these implementations are just stubs, I thin
mukesh agrawal 2014/10/30 20:44:54 One more thought... Since these are just stubs, yo
Elliot Glaysher 2014/10/31 20:39:07 I think you should just remove this file, and come
+ return syncer::SyncMergeResult(type);
+}
+
+void WifiCredentialSyncableService::StopSyncing(syncer::ModelType type) {
+ NOTIMPLEMENTED();
+}
+
+syncer::SyncDataList WifiCredentialSyncableService::GetAllSyncData(
+ syncer::ModelType type) const {
+ NOTIMPLEMENTED();
+ return syncer::SyncDataList();
+}
+
+syncer::SyncError WifiCredentialSyncableService::ProcessSyncChanges(
+ const tracked_objects::Location& from_here,
+ const syncer::SyncChangeList& change_list) {
+ NOTIMPLEMENTED();
+ return syncer::SyncError();
+}
+
+// Methods called from UI layer.
+
+bool WifiCredentialSyncableService::IsRunning() {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void WifiCredentialSyncableService::AddToSyncedNetworks(
+ const std::string& item_id,
+ const std::vector<unsigned char>& ssid,
+ WifiSecurityClass security_class,
+ const std::string& passphrase) {
+ NOTIMPLEMENTED();
+}
+
+void WifiCredentialSyncableService::RemoveFromSyncedNetworks(
+ const std::string& item_id) {
+ NOTIMPLEMENTED();
+}
+
+// static
+const char* WifiCredentialSyncableService::GetNormalizedSecurityClass(
+ WifiSecurityClass security_class) {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+} // namespace wifi_sync

Powered by Google App Engine
This is Rietveld 408576698