OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 const ViewHostMsg_FrameNavigate_Params& params); | 121 const ViewHostMsg_FrameNavigate_Params& params); |
122 virtual void DidStopLoading(); | 122 virtual void DidStopLoading(); |
123 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); | 123 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); |
124 virtual void DocumentOnLoadCompletedInMainFrame( | 124 virtual void DocumentOnLoadCompletedInMainFrame( |
125 RenderViewHost* render_view_host, | 125 RenderViewHost* render_view_host, |
126 int32 page_id); | 126 int32 page_id); |
127 | 127 |
128 // RenderViewHostDelegate implementation. | 128 // RenderViewHostDelegate implementation. |
129 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 129 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
130 virtual WebPreferences GetWebkitPrefs(); | 130 virtual WebPreferences GetWebkitPrefs(); |
131 virtual void RunJavaScriptMessage(const std::wstring& message, | 131 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 132 const std::wstring& message, |
132 const std::wstring& default_prompt, | 133 const std::wstring& default_prompt, |
133 const GURL& frame_url, | 134 const GURL& frame_url, |
134 const int flags, | 135 const int flags, |
135 IPC::Message* reply_msg, | 136 IPC::Message* reply_msg, |
136 bool* did_suppress_message); | 137 bool* did_suppress_message); |
137 virtual void Close(RenderViewHost* render_view_host); | 138 virtual void Close(RenderViewHost* render_view_host); |
138 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 139 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
139 | 140 |
140 // RenderViewHostDelegate::View | 141 // RenderViewHostDelegate::View |
141 virtual void CreateNewWindow( | 142 virtual void CreateNewWindow( |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 // The time that the last javascript message was dismissed. | 289 // The time that the last javascript message was dismissed. |
289 base::TimeTicks last_javascript_message_dismissal_; | 290 base::TimeTicks last_javascript_message_dismissal_; |
290 | 291 |
291 // Whether to suppress all javascript messages. | 292 // Whether to suppress all javascript messages. |
292 bool suppress_javascript_messages_; | 293 bool suppress_javascript_messages_; |
293 | 294 |
294 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 295 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
295 }; | 296 }; |
296 | 297 |
297 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ | 298 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ |
OLD | NEW |