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_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual BackgroundContents* GetAsBackgroundContents(); | 63 virtual BackgroundContents* GetAsBackgroundContents(); |
64 virtual RenderViewHostDelegate::View* GetViewDelegate(); | 64 virtual RenderViewHostDelegate::View* GetViewDelegate(); |
65 virtual const GURL& GetURL() const; | 65 virtual const GURL& GetURL() const; |
66 virtual ViewType::Type GetRenderViewType() const; | 66 virtual ViewType::Type GetRenderViewType() const; |
67 virtual int GetBrowserWindowID() const; | 67 virtual int GetBrowserWindowID() const; |
68 virtual void DidNavigate(RenderViewHost* render_view_host, | 68 virtual void DidNavigate(RenderViewHost* render_view_host, |
69 const ViewHostMsg_FrameNavigate_Params& params); | 69 const ViewHostMsg_FrameNavigate_Params& params); |
70 virtual WebPreferences GetWebkitPrefs(); | 70 virtual WebPreferences GetWebkitPrefs(); |
71 virtual void ProcessWebUIMessage( | 71 virtual void ProcessWebUIMessage( |
72 const ExtensionHostMsg_DomMessage_Params& params); | 72 const ExtensionHostMsg_DomMessage_Params& params); |
73 virtual void RunJavaScriptMessage(const std::wstring& message, | 73 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 74 const std::wstring& message, |
74 const std::wstring& default_prompt, | 75 const std::wstring& default_prompt, |
75 const GURL& frame_url, | 76 const GURL& frame_url, |
76 const int flags, | 77 const int flags, |
77 IPC::Message* reply_msg, | 78 IPC::Message* reply_msg, |
78 bool* did_suppress_message); | 79 bool* did_suppress_message); |
79 virtual void Close(RenderViewHost* render_view_host); | 80 virtual void Close(RenderViewHost* render_view_host); |
80 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; | 81 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; |
81 virtual void RenderViewGone(RenderViewHost* rvh, | 82 virtual void RenderViewGone(RenderViewHost* rvh, |
82 base::TerminationStatus status, | 83 base::TerminationStatus status, |
83 int error_code); | 84 int error_code); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 BackgroundContents* contents; | 176 BackgroundContents* contents; |
176 | 177 |
177 // The name of the parent frame for these contents. | 178 // The name of the parent frame for these contents. |
178 const string16& frame_name; | 179 const string16& frame_name; |
179 | 180 |
180 // The ID of the parent application (if any). | 181 // The ID of the parent application (if any). |
181 const string16& application_id; | 182 const string16& application_id; |
182 }; | 183 }; |
183 | 184 |
184 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 185 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
OLD | NEW |