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 #ifndef CHROME_RENDERER_EXTENSIONS_CONTENT_WATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_CONTENT_WATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_CONTENT_WATCHER_H_ | 6 #define EXTENSIONS_RENDERER_CONTENT_WATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 class WebFrame; | 16 class WebFrame; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // ExtensionHostMsg_OnWatchedPageChange back to the browser. | 61 // ExtensionHostMsg_OnWatchedPageChange back to the browser. |
62 blink::WebVector<blink::WebString> css_selectors_; | 62 blink::WebVector<blink::WebString> css_selectors_; |
63 | 63 |
64 // Maps live WebFrames to the set of CSS selectors they match. Blink sends | 64 // Maps live WebFrames to the set of CSS selectors they match. Blink sends |
65 // back diffs, which we apply to these sets. | 65 // back diffs, which we apply to these sets. |
66 std::map<blink::WebFrame*, std::set<std::string> > matching_selectors_; | 66 std::map<blink::WebFrame*, std::set<std::string> > matching_selectors_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace extensions | 69 } // namespace extensions |
70 | 70 |
71 #endif // CHROME_RENDERER_EXTENSIONS_CONTENT_WATCHER_H_ | 71 #endif // EXTENSIONS_RENDERER_CONTENT_WATCHER_H_ |
OLD | NEW |