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

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

Issue 923463003: [Extensions] Remove the Infobar API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 10 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 | « components/infobars/core/infobar_delegate.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 <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
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 &registrar_; } 134 content::NotificationRegistrar* registrar() { return &registrar_; }
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
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_
OLDNEW
« no previous file with comments | « components/infobars/core/infobar_delegate.cc ('k') | extensions/browser/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698