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 #include "extensions/renderer/content_watcher.h" | 5 #include "extensions/renderer/content_watcher.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "content/public/renderer/render_view.h" | 9 #include "content/public/renderer/render_view.h" |
8 #include "content/public/renderer/render_view_visitor.h" | 10 #include "content/public/renderer/render_view_visitor.h" |
9 #include "extensions/common/extension_messages.h" | 11 #include "extensions/common/extension_messages.h" |
10 #include "third_party/WebKit/public/web/WebDocument.h" | 12 #include "third_party/WebKit/public/web/WebDocument.h" |
11 #include "third_party/WebKit/public/web/WebElement.h" | 13 #include "third_party/WebKit/public/web/WebElement.h" |
12 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 14 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
13 #include "third_party/WebKit/public/web/WebScriptBindings.h" | 15 #include "third_party/WebKit/public/web/WebScriptBindings.h" |
14 #include "third_party/WebKit/public/web/WebView.h" | 16 #include "third_party/WebKit/public/web/WebView.h" |
15 | 17 |
16 namespace extensions { | 18 namespace extensions { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 it != transitive_selectors.end(); | 112 it != transitive_selectors.end(); |
111 ++it) | 113 ++it) |
112 selector_strings.push_back(it->as_string()); | 114 selector_strings.push_back(it->as_string()); |
113 content::RenderView* view = | 115 content::RenderView* view = |
114 content::RenderView::FromWebView(top_frame->view()); | 116 content::RenderView::FromWebView(top_frame->view()); |
115 view->Send(new ExtensionHostMsg_OnWatchedPageChange(view->GetRoutingID(), | 117 view->Send(new ExtensionHostMsg_OnWatchedPageChange(view->GetRoutingID(), |
116 selector_strings)); | 118 selector_strings)); |
117 } | 119 } |
118 | 120 |
119 } // namespace extensions | 121 } // namespace extensions |
OLD | NEW |