OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HOST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 OVERRIDE; | 134 OVERRIDE; |
135 virtual void RunFileChooser( | 135 virtual void RunFileChooser( |
136 content::WebContents* tab, | 136 content::WebContents* tab, |
137 const content::FileChooserParams& params) OVERRIDE; | 137 const content::FileChooserParams& params) OVERRIDE; |
138 virtual void AddNewContents(content::WebContents* source, | 138 virtual void AddNewContents(content::WebContents* source, |
139 content::WebContents* new_contents, | 139 content::WebContents* new_contents, |
140 WindowOpenDisposition disposition, | 140 WindowOpenDisposition disposition, |
141 const gfx::Rect& initial_pos, | 141 const gfx::Rect& initial_pos, |
142 bool user_gesture) OVERRIDE; | 142 bool user_gesture) OVERRIDE; |
143 virtual void CloseContents(content::WebContents* contents) OVERRIDE; | 143 virtual void CloseContents(content::WebContents* contents) OVERRIDE; |
| 144 virtual bool ShouldSuppressDialogs() OVERRIDE; |
144 | 145 |
145 // content::NotificationObserver | 146 // content::NotificationObserver |
146 virtual void Observe(int type, | 147 virtual void Observe(int type, |
147 const content::NotificationSource& source, | 148 const content::NotificationSource& source, |
148 const content::NotificationDetails& details) OVERRIDE; | 149 const content::NotificationDetails& details) OVERRIDE; |
149 | 150 |
150 protected: | 151 protected: |
151 // This should only be used by unit tests. | 152 // This should only be used by unit tests. |
152 ExtensionHost(const Extension* extension, content::ViewType host_type); | 153 ExtensionHost(const Extension* extension, content::ViewType host_type); |
153 | 154 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 // The relevant WebContents associated with this ExtensionHost, if any. | 229 // The relevant WebContents associated with this ExtensionHost, if any. |
229 content::WebContents* associated_web_contents_; | 230 content::WebContents* associated_web_contents_; |
230 | 231 |
231 // Used to measure how long it's been since the host was created. | 232 // Used to measure how long it's been since the host was created. |
232 PerfTimer since_created_; | 233 PerfTimer since_created_; |
233 | 234 |
234 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 235 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
235 }; | 236 }; |
236 | 237 |
237 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 238 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |