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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // RenderViewHostDelegate implementation. | 113 // RenderViewHostDelegate implementation. |
114 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 114 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
115 virtual const GURL& GetURL() const; | 115 virtual const GURL& GetURL() const; |
116 virtual ViewType::Type GetRenderViewType() const; | 116 virtual ViewType::Type GetRenderViewType() const; |
117 virtual int GetBrowserWindowID() const; | 117 virtual int GetBrowserWindowID() const; |
118 virtual void RenderViewGone(RenderViewHost* render_view_host, | 118 virtual void RenderViewGone(RenderViewHost* render_view_host, |
119 base::TerminationStatus status, | 119 base::TerminationStatus status, |
120 int error_code) OVERRIDE; | 120 int error_code) OVERRIDE; |
121 virtual void DidNavigate(RenderViewHost* render_view_host, | 121 virtual void DidNavigate(RenderViewHost* render_view_host, |
122 const ViewHostMsg_FrameNavigate_Params& params); | 122 const ViewHostMsg_FrameNavigate_Params& params); |
123 virtual void UpdateTitle( | 123 virtual void UpdateTitle(RenderViewHost* render_view_host, |
124 RenderViewHost* render_view_host, | 124 int32 page_id, |
125 int32 page_id, | 125 const std::wstring& title); |
126 const base::i18n::String16WithDirection& title) OVERRIDE; | |
127 virtual WebPreferences GetWebkitPrefs(); | 126 virtual WebPreferences GetWebkitPrefs(); |
128 virtual void RunJavaScriptMessage(const std::wstring& message, | 127 virtual void RunJavaScriptMessage(const std::wstring& message, |
129 const std::wstring& default_prompt, | 128 const std::wstring& default_prompt, |
130 const GURL& frame_url, | 129 const GURL& frame_url, |
131 const int flags, | 130 const int flags, |
132 IPC::Message* reply_msg, | 131 IPC::Message* reply_msg, |
133 bool* did_suppress_message); | 132 bool* did_suppress_message); |
134 virtual void Close(RenderViewHost* render_view_host); | 133 virtual void Close(RenderViewHost* render_view_host); |
135 virtual void DidStopLoading(); | 134 virtual void DidStopLoading(); |
136 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 135 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Maximum amount of private memory that may be used per PrerenderContents, | 283 // Maximum amount of private memory that may be used per PrerenderContents, |
285 // in MB. | 284 // in MB. |
286 static const int kMaxPrerenderPrivateMB = 100; | 285 static const int kMaxPrerenderPrivateMB = 100; |
287 | 286 |
288 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 287 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
289 }; | 288 }; |
290 | 289 |
291 } // prerender | 290 } // prerender |
292 | 291 |
293 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 292 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |