OLD | NEW |
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 #include "components/sync/core_impl/js_mutation_event_observer.h" | 5 #include "components/sync/core_impl/js_mutation_event_observer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | |
9 | |
10 #include <string> | |
11 | 8 |
12 #include "base/location.h" | 9 #include "base/location.h" |
13 #include "base/logging.h" | 10 #include "base/logging.h" |
14 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
15 #include "base/values.h" | 12 #include "base/values.h" |
16 #include "components/sync/js/js_event_details.h" | 13 #include "components/sync/js/js_event_details.h" |
17 #include "components/sync/js/js_event_handler.h" | 14 #include "components/sync/js/js_event_handler.h" |
18 | 15 |
19 namespace syncer { | 16 namespace syncer { |
20 | 17 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const std::string& name, | 98 const std::string& name, |
102 const JsEventDetails& details) { | 99 const JsEventDetails& details) { |
103 if (!event_handler_.IsInitialized()) { | 100 if (!event_handler_.IsInitialized()) { |
104 NOTREACHED(); | 101 NOTREACHED(); |
105 return; | 102 return; |
106 } | 103 } |
107 event_handler_.Call(from_here, &JsEventHandler::HandleJsEvent, name, details); | 104 event_handler_.Call(from_here, &JsEventHandler::HandleJsEvent, name, details); |
108 } | 105 } |
109 | 106 |
110 } // namespace syncer | 107 } // namespace syncer |
OLD | NEW |