OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/content_watcher.h" | 5 #include "chrome/renderer/extensions/content_watcher.h" |
6 | 6 |
7 #include "chrome/common/extensions/extension_messages.h" | |
8 #include "content/public/renderer/render_view.h" | 7 #include "content/public/renderer/render_view.h" |
9 #include "content/public/renderer/render_view_visitor.h" | 8 #include "content/public/renderer/render_view_visitor.h" |
| 9 #include "extensions/common/extension_messages.h" |
10 #include "third_party/WebKit/public/web/WebDocument.h" | 10 #include "third_party/WebKit/public/web/WebDocument.h" |
11 #include "third_party/WebKit/public/web/WebElement.h" | 11 #include "third_party/WebKit/public/web/WebElement.h" |
12 #include "third_party/WebKit/public/web/WebFrame.h" | 12 #include "third_party/WebKit/public/web/WebFrame.h" |
13 #include "third_party/WebKit/public/web/WebScriptBindings.h" | 13 #include "third_party/WebKit/public/web/WebScriptBindings.h" |
14 #include "third_party/WebKit/public/web/WebView.h" | 14 #include "third_party/WebKit/public/web/WebView.h" |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 using blink::WebString; | 18 using blink::WebString; |
19 using blink::WebVector; | 19 using blink::WebVector; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 it = transitive_selectors.begin(); | 110 it = transitive_selectors.begin(); |
111 it != transitive_selectors.end(); ++it) | 111 it != transitive_selectors.end(); ++it) |
112 selector_strings.push_back(it->as_string()); | 112 selector_strings.push_back(it->as_string()); |
113 content::RenderView* view = | 113 content::RenderView* view = |
114 content::RenderView::FromWebView(top_frame->view()); | 114 content::RenderView::FromWebView(top_frame->view()); |
115 view->Send(new ExtensionHostMsg_OnWatchedPageChange( | 115 view->Send(new ExtensionHostMsg_OnWatchedPageChange( |
116 view->GetRoutingID(), selector_strings)); | 116 view->GetRoutingID(), selector_strings)); |
117 } | 117 } |
118 | 118 |
119 } // namespace extensions | 119 } // namespace extensions |
OLD | NEW |