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

Side by Side Diff: extensions/browser/extension_host.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EXTENSIONS_BROWSER_EXTENSION_HOST_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool CheckMediaAccessPermission(content::WebContents* web_contents, 124 bool CheckMediaAccessPermission(content::WebContents* web_contents,
125 const GURL& security_origin, 125 const GURL& security_origin,
126 content::MediaStreamType type) override; 126 content::MediaStreamType type) override;
127 bool IsNeverVisible(content::WebContents* web_contents) override; 127 bool IsNeverVisible(content::WebContents* web_contents) override;
128 128
129 // ExtensionRegistryObserver: 129 // ExtensionRegistryObserver:
130 void OnExtensionReady(content::BrowserContext* browser_context, 130 void OnExtensionReady(content::BrowserContext* browser_context,
131 const Extension* extension) override; 131 const Extension* extension) override;
132 void OnExtensionUnloaded(content::BrowserContext* browser_context, 132 void OnExtensionUnloaded(content::BrowserContext* browser_context,
133 const Extension* extension, 133 const Extension* extension,
134 UnloadedExtensionInfo::Reason reason) override; 134 UnloadedExtensionReason reason) override;
135 135
136 protected: 136 protected:
137 // Called each time this ExtensionHost completes a load finishes loading, 137 // Called each time this ExtensionHost completes a load finishes loading,
138 // before any stop-loading notifications or observer methods are called. 138 // before any stop-loading notifications or observer methods are called.
139 virtual void OnDidStopFirstLoad(); 139 virtual void OnDidStopFirstLoad();
140 140
141 // Navigates to the initial page. 141 // Navigates to the initial page.
142 virtual void LoadInitialURL(); 142 virtual void LoadInitialURL();
143 143
144 // Returns true if we're hosting a background page. 144 // Returns true if we're hosting a background page.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 base::ObserverList<ExtensionHostObserver> observer_list_; 214 base::ObserverList<ExtensionHostObserver> observer_list_;
215 base::ObserverList<DeferredStartRenderHostObserver> 215 base::ObserverList<DeferredStartRenderHostObserver>
216 deferred_start_render_host_observer_list_; 216 deferred_start_render_host_observer_list_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 218 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
219 }; 219 };
220 220
221 } // namespace extensions 221 } // namespace extensions
222 222
223 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ 223 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « extensions/browser/event_router.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698