| OLD | NEW |
| 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 #include "chrome/browser/sync/js_sync_manager_observer.h" | 5 #include "chrome/browser/sync/js_sync_manager_observer.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return_args.Append(syncable::ModelTypeSetToValue(encrypted_types)); | 96 return_args.Append(syncable::ModelTypeSetToValue(encrypted_types)); |
| 97 parent_router_->RouteJsEvent("onEncryptionComplete", | 97 parent_router_->RouteJsEvent("onEncryptionComplete", |
| 98 JsArgList(return_args), NULL); | 98 JsArgList(return_args), NULL); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void JsSyncManagerObserver::OnInitializationComplete() { | 101 void JsSyncManagerObserver::OnInitializationComplete() { |
| 102 parent_router_->RouteJsEvent("onInitializationComplete", | 102 parent_router_->RouteJsEvent("onInitializationComplete", |
| 103 JsArgList(), NULL); | 103 JsArgList(), NULL); |
| 104 } | 104 } |
| 105 | 105 |
| 106 void JsSyncManagerObserver::OnPaused() { | |
| 107 parent_router_->RouteJsEvent("onPaused", JsArgList(), NULL); | |
| 108 } | |
| 109 | |
| 110 void JsSyncManagerObserver::OnResumed() { | |
| 111 parent_router_->RouteJsEvent("onResumed", JsArgList(), NULL); | |
| 112 } | |
| 113 | |
| 114 void JsSyncManagerObserver::OnStopSyncingPermanently() { | 106 void JsSyncManagerObserver::OnStopSyncingPermanently() { |
| 115 parent_router_->RouteJsEvent("onStopSyncingPermanently", | 107 parent_router_->RouteJsEvent("onStopSyncingPermanently", |
| 116 JsArgList(), NULL); | 108 JsArgList(), NULL); |
| 117 } | 109 } |
| 118 | 110 |
| 119 void JsSyncManagerObserver::OnClearServerDataSucceeded() { | 111 void JsSyncManagerObserver::OnClearServerDataSucceeded() { |
| 120 parent_router_->RouteJsEvent("onClearServerDataSucceeded", | 112 parent_router_->RouteJsEvent("onClearServerDataSucceeded", |
| 121 JsArgList(), NULL); | 113 JsArgList(), NULL); |
| 122 } | 114 } |
| 123 | 115 |
| 124 void JsSyncManagerObserver::OnClearServerDataFailed() { | 116 void JsSyncManagerObserver::OnClearServerDataFailed() { |
| 125 parent_router_->RouteJsEvent("onClearServerDataFailed", JsArgList(), NULL); | 117 parent_router_->RouteJsEvent("onClearServerDataFailed", JsArgList(), NULL); |
| 126 } | 118 } |
| 127 | 119 |
| 128 } // namespace browser_sync | 120 } // namespace browser_sync |
| OLD | NEW |