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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "chrome/browser/automation/automation_event_observers.h" | 9 #include "chrome/browser/automation/automation_event_observers.h" |
10 #include "chrome/browser/automation/automation_event_queue.h" | 10 #include "chrome/browser/automation/automation_event_queue.h" |
11 #include "chrome/browser/automation/automation_provider.h" | 11 #include "chrome/browser/automation/automation_provider.h" |
12 #include "chrome/browser/automation/automation_provider_json.h" | 12 #include "chrome/browser/automation/automation_provider_json.h" |
13 #include "content/public/browser/dom_operation_notification_details.h" | 13 #include "content/public/browser/dom_operation_notification_details.h" |
14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/notification_types.h" | 15 #include "content/public/browser/notification_types.h" |
16 | 16 |
17 const char* DomEventObserver::kSubstringReplaceWithObserverId = "$(id)"; | 17 const char* DomEventObserver::kSubstringReplaceWithObserverId = "$(id)"; |
18 | 18 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 event_name_.compare(dom_op_details->json) == 0)) { | 96 event_name_.compare(dom_op_details->json) == 0)) { |
97 DictionaryValue* dict = new DictionaryValue; | 97 DictionaryValue* dict = new DictionaryValue; |
98 dict->SetString("type", "raised_event"); | 98 dict->SetString("type", "raised_event"); |
99 dict->SetString("name", dom_op_details->json); | 99 dict->SetString("name", dom_op_details->json); |
100 NotifyEvent(dict); | 100 NotifyEvent(dict); |
101 } | 101 } |
102 } | 102 } |
103 // Nothing should happen after RemoveIfDone() as it may delete the object. | 103 // Nothing should happen after RemoveIfDone() as it may delete the object. |
104 RemoveIfDone(); | 104 RemoveIfDone(); |
105 } | 105 } |
OLD | NEW |