| 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/sync_js_controller.h" | 5 #include "chrome/browser/sync/sync_js_controller.h" | 
| 6 | 6 | 
| 7 #include "base/tracked.h" | 7 #include "base/location.h" | 
| 8 #include "chrome/browser/sync/js/js_backend.h" | 8 #include "chrome/browser/sync/js/js_backend.h" | 
| 9 #include "chrome/browser/sync/js/js_event_details.h" | 9 #include "chrome/browser/sync/js/js_event_details.h" | 
| 10 | 10 | 
| 11 namespace browser_sync { | 11 namespace browser_sync { | 
| 12 | 12 | 
| 13 SyncJsController::PendingJsMessage::PendingJsMessage( | 13 SyncJsController::PendingJsMessage::PendingJsMessage( | 
| 14     const std::string& name, const JsArgList& args, | 14     const std::string& name, const JsArgList& args, | 
| 15     const WeakHandle<JsReplyHandler>& reply_handler) | 15     const WeakHandle<JsReplyHandler>& reply_handler) | 
| 16     : name(name), args(args), reply_handler(reply_handler) {} | 16     : name(name), args(args), reply_handler(reply_handler) {} | 
| 17 | 17 | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 75     WeakHandle<JsEventHandler> backend_event_handler = | 75     WeakHandle<JsEventHandler> backend_event_handler = | 
| 76         (js_event_handlers_.size() > 0) ? | 76         (js_event_handlers_.size() > 0) ? | 
| 77         WeakHandle<JsEventHandler>(AsWeakPtr()) : | 77         WeakHandle<JsEventHandler>(AsWeakPtr()) : | 
| 78         WeakHandle<JsEventHandler>(); | 78         WeakHandle<JsEventHandler>(); | 
| 79     js_backend_.Call(FROM_HERE, &JsBackend::SetJsEventHandler, | 79     js_backend_.Call(FROM_HERE, &JsBackend::SetJsEventHandler, | 
| 80                      backend_event_handler); | 80                      backend_event_handler); | 
| 81   } | 81   } | 
| 82 } | 82 } | 
| 83 | 83 | 
| 84 }  // namespace browser_sync | 84 }  // namespace browser_sync | 
| OLD | NEW | 
|---|