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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // content::WebContentsObserver implementation. | 164 // content::WebContentsObserver implementation. |
165 bool OnMessageReceived(const IPC::Message& message, | 165 bool OnMessageReceived(const IPC::Message& message, |
166 content::RenderFrameHost* render_frame_host) override; | 166 content::RenderFrameHost* render_frame_host) override; |
167 void DidFinishNavigation( | 167 void DidFinishNavigation( |
168 content::NavigationHandle* navigation_handle) override; | 168 content::NavigationHandle* navigation_handle) override; |
169 | 169 |
170 // ExtensionRegistryObserver: | 170 // ExtensionRegistryObserver: |
171 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 171 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
172 const Extension* extension, | 172 const Extension* extension, |
173 UnloadedExtensionInfo::Reason reason) override; | 173 UnloadedExtensionReason reason) override; |
174 | 174 |
175 // The total number of requests from the renderer on the current page, | 175 // The total number of requests from the renderer on the current page, |
176 // including any that are pending or were immediately granted. | 176 // including any that are pending or were immediately granted. |
177 // Right now, used only in tests. | 177 // Right now, used only in tests. |
178 int num_page_requests_; | 178 int num_page_requests_; |
179 | 179 |
180 // The associated browser context. | 180 // The associated browser context. |
181 content::BrowserContext* browser_context_; | 181 content::BrowserContext* browser_context_; |
182 | 182 |
183 // Whether or not the feature was used for any extensions. This may not be the | 183 // Whether or not the feature was used for any extensions. This may not be the |
(...skipping 24 matching lines...) Expand all Loading... |
208 extension_registry_observer_; | 208 extension_registry_observer_; |
209 | 209 |
210 base::WeakPtrFactory<ExtensionActionRunner> weak_factory_; | 210 base::WeakPtrFactory<ExtensionActionRunner> weak_factory_; |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(ExtensionActionRunner); | 212 DISALLOW_COPY_AND_ASSIGN(ExtensionActionRunner); |
213 }; | 213 }; |
214 | 214 |
215 } // namespace extensions | 215 } // namespace extensions |
216 | 216 |
217 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ | 217 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_RUNNER_H_ |
OLD | NEW |