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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 109 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
110 virtual const GURL& GetURL() const; | 110 virtual const GURL& GetURL() const; |
111 virtual ViewType::Type GetRenderViewType() const; | 111 virtual ViewType::Type GetRenderViewType() const; |
112 virtual int GetBrowserWindowID() const; | 112 virtual int GetBrowserWindowID() const; |
113 virtual void DidNavigate(RenderViewHost* render_view_host, | 113 virtual void DidNavigate(RenderViewHost* render_view_host, |
114 const ViewHostMsg_FrameNavigate_Params& params); | 114 const ViewHostMsg_FrameNavigate_Params& params); |
115 virtual void UpdateTitle(RenderViewHost* render_view_host, | 115 virtual void UpdateTitle(RenderViewHost* render_view_host, |
116 int32 page_id, | 116 int32 page_id, |
117 const std::wstring& title); | 117 const std::wstring& title); |
118 virtual WebPreferences GetWebkitPrefs(); | 118 virtual WebPreferences GetWebkitPrefs(); |
119 virtual void ProcessWebUIMessage( | |
120 const ExtensionHostMsg_DomMessage_Params& params); | |
121 virtual void RunJavaScriptMessage(const std::wstring& message, | 119 virtual void RunJavaScriptMessage(const std::wstring& message, |
122 const std::wstring& default_prompt, | 120 const std::wstring& default_prompt, |
123 const GURL& frame_url, | 121 const GURL& frame_url, |
124 const int flags, | 122 const int flags, |
125 IPC::Message* reply_msg, | 123 IPC::Message* reply_msg, |
126 bool* did_suppress_message); | 124 bool* did_suppress_message); |
127 virtual void Close(RenderViewHost* render_view_host); | 125 virtual void Close(RenderViewHost* render_view_host); |
128 virtual void DidStopLoading(); | 126 virtual void DidStopLoading(); |
129 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 127 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
130 | 128 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // Maximum amount of private memory that may be used per PrerenderContents, | 278 // Maximum amount of private memory that may be used per PrerenderContents, |
281 // in MB. | 279 // in MB. |
282 static const int kMaxPrerenderPrivateMB = 100; | 280 static const int kMaxPrerenderPrivateMB = 100; |
283 | 281 |
284 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 282 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
285 }; | 283 }; |
286 | 284 |
287 } // prerender | 285 } // prerender |
288 | 286 |
289 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 287 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |