Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: chrome/browser/extensions/extension_action_runner.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698