| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual void RenderViewGone(RenderViewHost* render_view_host, | 120 virtual void RenderViewGone(RenderViewHost* render_view_host, |
| 121 base::TerminationStatus status, | 121 base::TerminationStatus status, |
| 122 int error_code) OVERRIDE; | 122 int error_code) OVERRIDE; |
| 123 virtual void DidNavigate( | 123 virtual void DidNavigate( |
| 124 RenderViewHost* render_view_host, | 124 RenderViewHost* render_view_host, |
| 125 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 125 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; |
| 126 virtual void UpdateTitle(RenderViewHost* render_view_host, | 126 virtual void UpdateTitle(RenderViewHost* render_view_host, |
| 127 int32 page_id, | 127 int32 page_id, |
| 128 const std::wstring& title); | 128 const std::wstring& title); |
| 129 virtual WebPreferences GetWebkitPrefs() OVERRIDE; | 129 virtual WebPreferences GetWebkitPrefs() OVERRIDE; |
| 130 virtual void RunJavaScriptMessage(const std::wstring& message, | 130 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 131 const std::wstring& message, |
| 131 const std::wstring& default_prompt, | 132 const std::wstring& default_prompt, |
| 132 const GURL& frame_url, | 133 const GURL& frame_url, |
| 133 const int flags, | 134 const int flags, |
| 134 IPC::Message* reply_msg, | 135 IPC::Message* reply_msg, |
| 135 bool* did_suppress_message) OVERRIDE; | 136 bool* did_suppress_message) OVERRIDE; |
| 136 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; | 137 virtual void Close(RenderViewHost* render_view_host) OVERRIDE; |
| 137 virtual void DidStopLoading() OVERRIDE; | 138 virtual void DidStopLoading() OVERRIDE; |
| 138 virtual RendererPreferences GetRendererPrefs(Profile* profile) const OVERRIDE; | 139 virtual RendererPreferences GetRendererPrefs(Profile* profile) const OVERRIDE; |
| 139 | 140 |
| 140 // RenderViewHostDelegate::View | 141 // RenderViewHostDelegate::View |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // Maximum amount of private memory that may be used per PrerenderContents, | 290 // Maximum amount of private memory that may be used per PrerenderContents, |
| 290 // in MB. | 291 // in MB. |
| 291 static const int kMaxPrerenderPrivateMB = 100; | 292 static const int kMaxPrerenderPrivateMB = 100; |
| 292 | 293 |
| 293 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 294 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
| 294 }; | 295 }; |
| 295 | 296 |
| 296 } // namespace prerender | 297 } // namespace prerender |
| 297 | 298 |
| 298 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 299 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
| OLD | NEW |