| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ |
| 6 #define EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ | 6 #define EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "extensions/common/dom_action_types.h" | 12 #include "extensions/common/dom_action_types.h" |
| 13 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" | 13 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" |
| 14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class ListValue; | 17 class ListValue; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 class WebString; | 21 class WebString; |
| 22 class WebURL; | 22 class WebURL; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | |
| 26 class V8ValueConverter; | |
| 27 } | |
| 28 | |
| 29 namespace extensions { | 25 namespace extensions { |
| 30 | 26 |
| 31 // Used to log DOM API calls from within WebKit. The events are sent via IPC to | 27 // Used to log DOM API calls from within WebKit. The events are sent via IPC to |
| 32 // extensions::ActivityLog for recording and display. | 28 // extensions::ActivityLog for recording and display. |
| 33 class DOMActivityLogger: public blink::WebDOMActivityLogger { | 29 class DOMActivityLogger: public blink::WebDOMActivityLogger { |
| 34 public: | 30 public: |
| 35 static const int kMainWorldId = 0; | 31 static const int kMainWorldId = 0; |
| 36 explicit DOMActivityLogger(const std::string& extension_id); | 32 explicit DOMActivityLogger(const std::string& extension_id); |
| 37 ~DOMActivityLogger() override; | 33 ~DOMActivityLogger() override; |
| 38 | 34 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // The id of the extension with which this logger is associated. | 78 // The id of the extension with which this logger is associated. |
| 83 std::string extension_id_; | 79 std::string extension_id_; |
| 84 | 80 |
| 85 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); | 81 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); |
| 86 }; | 82 }; |
| 87 | 83 |
| 88 } // namespace extensions | 84 } // namespace extensions |
| 89 | 85 |
| 90 #endif // EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ | 86 #endif // EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ |
| 91 | 87 |
| OLD | NEW |