| 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 <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "extensions/common/dom_action_types.h" | 12 #include "extensions/common/dom_action_types.h" |
| 12 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" | 13 #include "third_party/WebKit/public/web/WebDOMActivityLogger.h" |
| 13 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class ListValue; | 17 class ListValue; |
| 17 } | 18 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 int argc, | 70 int argc, |
| 70 const blink::WebString* argv, | 71 const blink::WebString* argv, |
| 71 const blink::WebURL& url, | 72 const blink::WebURL& url, |
| 72 const blink::WebString& title) override; | 73 const blink::WebString& title) override; |
| 73 | 74 |
| 74 // Helper function to actually send the message across IPC. | 75 // Helper function to actually send the message across IPC. |
| 75 void SendDomActionMessage(const std::string& api_call, | 76 void SendDomActionMessage(const std::string& api_call, |
| 76 const GURL& url, | 77 const GURL& url, |
| 77 const base::string16& url_title, | 78 const base::string16& url_title, |
| 78 DomActionType::Type call_type, | 79 DomActionType::Type call_type, |
| 79 scoped_ptr<base::ListValue> args); | 80 std::unique_ptr<base::ListValue> args); |
| 80 | 81 |
| 81 // The id of the extension with which this logger is associated. | 82 // The id of the extension with which this logger is associated. |
| 82 std::string extension_id_; | 83 std::string extension_id_; |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); | 85 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace extensions | 88 } // namespace extensions |
| 88 | 89 |
| 89 #endif // EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ | 90 #endif // EXTENSIONS_RENDERER_DOM_ACTIVITY_LOGGER_H_ |
| 90 | 91 |
| OLD | NEW |