OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/renderer/extensions/dom_activity_logger.h" | 5 #include "extensions/renderer/dom_activity_logger.h" |
6 | 6 |
7 #include "chrome/common/extensions/ad_injection_constants.h" | |
8 #include "chrome/common/extensions/dom_action_types.h" | |
9 #include "chrome/renderer/chrome_render_process_observer.h" | |
10 #include "chrome/renderer/extensions/activity_log_converter_strategy.h" | |
11 #include "content/public/renderer/render_thread.h" | 7 #include "content/public/renderer/render_thread.h" |
12 #include "content/public/renderer/v8_value_converter.h" | 8 #include "content/public/renderer/v8_value_converter.h" |
| 9 #include "extensions/common/ad_injection_constants.h" |
| 10 #include "extensions/common/dom_action_types.h" |
13 #include "extensions/common/extension_messages.h" | 11 #include "extensions/common/extension_messages.h" |
| 12 #include "extensions/renderer/activity_log_converter_strategy.h" |
14 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 14 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" | 15 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" |
17 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
18 | 17 |
19 using content::V8ValueConverter; | 18 using content::V8ValueConverter; |
20 using blink::WebString; | 19 using blink::WebString; |
21 using blink::WebURL; | 20 using blink::WebURL; |
22 | 21 |
23 namespace extensions { | 22 namespace extensions { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // If there is no logger registered for world_id, construct a new logger | 71 // If there is no logger registered for world_id, construct a new logger |
73 // and register it with world_id. | 72 // and register it with world_id. |
74 if (!blink::hasDOMActivityLogger(world_id)) { | 73 if (!blink::hasDOMActivityLogger(world_id)) { |
75 DOMActivityLogger* logger = new DOMActivityLogger(extension_id); | 74 DOMActivityLogger* logger = new DOMActivityLogger(extension_id); |
76 blink::setDOMActivityLogger(world_id, logger); | 75 blink::setDOMActivityLogger(world_id, logger); |
77 } | 76 } |
78 #endif | 77 #endif |
79 } | 78 } |
80 | 79 |
81 } // namespace extensions | 80 } // namespace extensions |
OLD | NEW |