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_PRERENDER_PRERENDER_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 const ViewHostMsg_FrameNavigate_Params& params); | 104 const ViewHostMsg_FrameNavigate_Params& params); |
105 virtual void UpdateTitle(RenderViewHost* render_view_host, | 105 virtual void UpdateTitle(RenderViewHost* render_view_host, |
106 int32 page_id, | 106 int32 page_id, |
107 const std::wstring& title); | 107 const std::wstring& title); |
108 virtual WebPreferences GetWebkitPrefs(); | 108 virtual WebPreferences GetWebkitPrefs(); |
109 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); | 109 virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params); |
110 virtual void RunJavaScriptMessage(const std::wstring& message, | 110 virtual void RunJavaScriptMessage(const std::wstring& message, |
111 const std::wstring& default_prompt, | 111 const std::wstring& default_prompt, |
112 const GURL& frame_url, | 112 const GURL& frame_url, |
113 const int flags, | 113 const int flags, |
| 114 const bool unload_handler_being_run, |
114 IPC::Message* reply_msg, | 115 IPC::Message* reply_msg, |
115 bool* did_suppress_message); | 116 bool* did_suppress_message); |
116 virtual void Close(RenderViewHost* render_view_host); | 117 virtual void Close(RenderViewHost* render_view_host); |
117 virtual void DidStopLoading(); | 118 virtual void DidStopLoading(); |
118 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 119 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
119 | 120 |
120 // RenderViewHostDelegate::View | 121 // RenderViewHostDelegate::View |
121 virtual void CreateNewWindow( | 122 virtual void CreateNewWindow( |
122 int route_id, | 123 int route_id, |
123 const ViewHostMsg_CreateWindow_Params& params); | 124 const ViewHostMsg_CreateWindow_Params& params); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // Maximum amount of private memory that may be used per PrerenderContents, | 266 // Maximum amount of private memory that may be used per PrerenderContents, |
266 // in MB. | 267 // in MB. |
267 static const int kMaxPrerenderPrivateMB = 100; | 268 static const int kMaxPrerenderPrivateMB = 100; |
268 | 269 |
269 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 270 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
270 }; | 271 }; |
271 | 272 |
272 } // prerender | 273 } // prerender |
273 | 274 |
274 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 275 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |