OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ | 5 #ifndef EXTENSIONS_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ |
6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ | 6 #define EXTENSIONS_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 content::WebContents* contents, | 42 content::WebContents* contents, |
43 const std::vector<std::string>& matching_css_selectors) = 0; | 43 const std::vector<std::string>& matching_css_selectors) = 0; |
44 | 44 |
45 // Applies all content rules given that a tab was just navigated. | 45 // Applies all content rules given that a tab was just navigated. |
46 virtual void DidNavigateMainFrame( | 46 virtual void DidNavigateMainFrame( |
47 content::WebContents* tab, | 47 content::WebContents* tab, |
48 const content::LoadCommittedDetails& details, | 48 const content::LoadCommittedDetails& details, |
49 const content::FrameNavigateParams& params) = 0; | 49 const content::FrameNavigateParams& params) = 0; |
50 | 50 |
51 protected: | 51 protected: |
52 virtual ~ContentRulesRegistry() {} | 52 ~ContentRulesRegistry() override {} |
53 | 53 |
54 private: | 54 private: |
55 DISALLOW_COPY_AND_ASSIGN(ContentRulesRegistry); | 55 DISALLOW_COPY_AND_ASSIGN(ContentRulesRegistry); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace extensions | 58 } // namespace extensions |
59 | 59 |
60 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ | 60 #endif // EXTENSIONS_BROWSER_API_DECLARATIVE_CONTENT_CONTENT_RULES_REGISTRY_H__ |
OLD | NEW |