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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // content::WebContentsObserver | 78 // content::WebContentsObserver |
79 bool OnMessageReceived(const IPC::Message& message) override; | 79 bool OnMessageReceived(const IPC::Message& message) override; |
80 void RenderViewCreated(content::RenderViewHost* render_view_host) override; | 80 void RenderViewCreated(content::RenderViewHost* render_view_host) override; |
81 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; | 81 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; |
82 void RenderViewReady() override; | 82 void RenderViewReady() override; |
83 void RenderProcessGone(base::TerminationStatus status) override; | 83 void RenderProcessGone(base::TerminationStatus status) override; |
84 void DocumentAvailableInMainFrame() override; | 84 void DocumentAvailableInMainFrame() override; |
85 void DidStopLoading(content::RenderViewHost* render_view_host) override; | 85 void DidStopLoading(content::RenderViewHost* render_view_host) override; |
86 | 86 |
87 // content::WebContentsDelegate | 87 // content::WebContentsDelegate |
88 content::JavaScriptDialogManager* GetJavaScriptDialogManager() override; | 88 content::JavaScriptDialogManager* GetJavaScriptDialogManager( |
| 89 content::WebContents* source) override; |
89 void AddNewContents(content::WebContents* source, | 90 void AddNewContents(content::WebContents* source, |
90 content::WebContents* new_contents, | 91 content::WebContents* new_contents, |
91 WindowOpenDisposition disposition, | 92 WindowOpenDisposition disposition, |
92 const gfx::Rect& initial_pos, | 93 const gfx::Rect& initial_pos, |
93 bool user_gesture, | 94 bool user_gesture, |
94 bool* was_blocked) override; | 95 bool* was_blocked) override; |
95 void CloseContents(content::WebContents* contents) override; | 96 void CloseContents(content::WebContents* contents) override; |
96 void RequestMediaAccessPermission( | 97 void RequestMediaAccessPermission( |
97 content::WebContents* web_contents, | 98 content::WebContents* web_contents, |
98 const content::MediaStreamRequest& request, | 99 const content::MediaStreamRequest& request, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 177 |
177 // Used to measure how long it's been since the host was created. | 178 // Used to measure how long it's been since the host was created. |
178 base::ElapsedTimer since_created_; | 179 base::ElapsedTimer since_created_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 181 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace extensions | 184 } // namespace extensions |
184 | 185 |
185 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 186 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
OLD | NEW |