| 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_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // --- UI thread: | 96 // --- UI thread: |
| 97 | 97 |
| 98 // Helper to collect the extension's user script URL patterns in a list and | 98 // Helper to collect the extension's user script URL patterns in a list and |
| 99 // return it. | 99 // return it. |
| 100 void CollectURLPatterns(const Extension* extension, | 100 void CollectURLPatterns(const Extension* extension, |
| 101 URLPatterns* patterns); | 101 URLPatterns* patterns); |
| 102 | 102 |
| 103 // content::NotificationObserver | 103 // content::NotificationObserver |
| 104 virtual void Observe(int type, | 104 virtual void Observe(int type, |
| 105 const content::NotificationSource& source, | 105 const content::NotificationSource& source, |
| 106 const content::NotificationDetails& details) OVERRIDE; | 106 const content::NotificationDetails& details) override; |
| 107 | 107 |
| 108 content::NotificationRegistrar registrar_; | 108 content::NotificationRegistrar registrar_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(UserScriptListener); | 110 DISALLOW_COPY_AND_ASSIGN(UserScriptListener); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace extensions | 113 } // namespace extensions |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ | 115 #endif // CHROME_BROWSER_EXTENSIONS_USER_SCRIPT_LISTENER_H_ |
| OLD | NEW |