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 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 #include <vector> | 10 #include <vector> |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 const content::NotificationSource& source, | 130 const content::NotificationSource& source, |
131 const content::NotificationDetails& details) override; | 131 const content::NotificationDetails& details) override; |
132 | 132 |
133 protected: | 133 protected: |
134 content::NotificationRegistrar* registrar() { return ®istrar_; } | 134 content::NotificationRegistrar* registrar() { return ®istrar_; } |
135 | 135 |
136 // Called after the extension page finishes loading but before the | 136 // Called after the extension page finishes loading but before the |
137 // EXTENSION_HOST_DID_STOP_LOADING notification is sent. | 137 // EXTENSION_HOST_DID_STOP_LOADING notification is sent. |
138 virtual void OnDidStopLoading(); | 138 virtual void OnDidStopLoading(); |
139 | 139 |
140 // Called once when the document first becomes available. | |
141 virtual void OnDocumentAvailable(); | |
142 | |
143 // Navigates to the initial page. | 140 // Navigates to the initial page. |
144 virtual void LoadInitialURL(); | 141 virtual void LoadInitialURL(); |
145 | 142 |
146 // Returns true if we're hosting a background page. | 143 // Returns true if we're hosting a background page. |
147 virtual bool IsBackgroundPage() const; | 144 virtual bool IsBackgroundPage() const; |
148 | 145 |
149 private: | 146 private: |
150 friend class ProcessCreationQueue; | 147 friend class ProcessCreationQueue; |
151 | 148 |
152 // Actually create the RenderView for this host. See CreateRenderViewSoon. | 149 // Actually create the RenderView for this host. See CreateRenderViewSoon. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 scoped_ptr<base::ElapsedTimer> load_start_; | 198 scoped_ptr<base::ElapsedTimer> load_start_; |
202 | 199 |
203 ObserverList<ExtensionHostObserver> observer_list_; | 200 ObserverList<ExtensionHostObserver> observer_list_; |
204 | 201 |
205 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 202 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
206 }; | 203 }; |
207 | 204 |
208 } // namespace extensions | 205 } // namespace extensions |
209 | 206 |
210 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 207 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
OLD | NEW |