| 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 #ifndef CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMActivityLogger.
h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMActivityLogger.
h" |
| 14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 15 | 15 |
| 16 using WebKit::WebString; | 16 using WebKit::WebString; |
| 17 | 17 |
| 18 // Used to log DOM API calls from within WebKit. The events are sent via IPC to | 18 // Used to log DOM API calls from within WebKit. The events are sent via IPC to |
| 19 // extensions::ActivityLog for recording and display. | 19 // extensions::ActivityLog for recording and display. |
| 20 namespace extensions { | 20 namespace extensions { |
| 21 | 21 |
| 22 class DOMActivityLogger: public WebKit::WebDOMActivityLogger { | 22 class DOMActivityLogger: public WebKit::WebDOMActivityLogger { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 GURL url_; | 49 GURL url_; |
| 50 string16 title_; | 50 string16 title_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); | 52 DISALLOW_COPY_AND_ASSIGN(DOMActivityLogger); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace extensions | 55 } // namespace extensions |
| 56 | 56 |
| 57 #endif // CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ | 57 #endif // CHROME_RENDERER_EXTENSIONS_DOM_ACTIVITY_LOGGER_H_ |
| 58 | 58 |
| OLD | NEW |