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

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

Issue 1152613003: Implement sidebar support for extension action popups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move SidebarManager to ExtensionSystem and remove notifications Created 5 years, 6 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 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 UnloadedExtensionInfo::Reason reason) override; 132 UnloadedExtensionInfo::Reason reason) override;
133 133
134 protected: 134 protected:
135 // Called each time this ExtensionHost completes a load finishes loading, 135 // Called each time this ExtensionHost completes a load finishes loading,
136 // before any stop-loading notifications or observer methods are called. 136 // before any stop-loading notifications or observer methods are called.
137 virtual void OnDidStopFirstLoad(); 137 virtual void OnDidStopFirstLoad();
138 138
139 // Navigates to the initial page. 139 // Navigates to the initial page.
140 virtual void LoadInitialURL(); 140 virtual void LoadInitialURL();
141 141
142 // Navigates to the page.
143 virtual void LoadURL(const GURL& url);
144
142 // Returns true if we're hosting a background page. 145 // Returns true if we're hosting a background page.
143 virtual bool IsBackgroundPage() const; 146 virtual bool IsBackgroundPage() const;
144 147
145 private: 148 private:
146 // DeferredStartRenderHost: 149 // DeferredStartRenderHost:
147 void CreateRenderViewNow() override; 150 void CreateRenderViewNow() override;
148 void AddDeferredStartRenderHostObserver( 151 void AddDeferredStartRenderHostObserver(
149 DeferredStartRenderHostObserver* observer) override; 152 DeferredStartRenderHostObserver* observer) override;
150 void RemoveDeferredStartRenderHostObserver( 153 void RemoveDeferredStartRenderHostObserver(
151 DeferredStartRenderHostObserver* observer) override; 154 DeferredStartRenderHostObserver* observer) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ObserverList<ExtensionHostObserver> observer_list_; 215 ObserverList<ExtensionHostObserver> observer_list_;
213 ObserverList<DeferredStartRenderHostObserver> 216 ObserverList<DeferredStartRenderHostObserver>
214 deferred_start_render_host_observer_list_; 217 deferred_start_render_host_observer_list_;
215 218
216 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 219 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
217 }; 220 };
218 221
219 } // namespace extensions 222 } // namespace extensions
220 223
221 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ 224 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698