OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 virtual void Observe(NotificationType type, | 122 virtual void Observe(NotificationType type, |
123 const NotificationSource& source, | 123 const NotificationSource& source, |
124 const NotificationDetails& details); | 124 const NotificationDetails& details); |
125 | 125 |
126 // Overridden from JavaScriptAppModalDialogDelegate: | 126 // Overridden from JavaScriptAppModalDialogDelegate: |
127 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, | 127 virtual void OnMessageBoxClosed(IPC::Message* reply_msg, |
128 bool success, | 128 bool success, |
129 const std::wstring& prompt); | 129 const std::wstring& prompt); |
130 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes) {} | 130 virtual void SetSuppressMessageBoxes(bool suppress_message_boxes) {} |
131 virtual gfx::NativeWindow GetMessageBoxRootWindow(); | 131 virtual gfx::NativeWindow GetMessageBoxRootWindow(); |
132 virtual TabContents* AsTabContents() { return NULL; } | 132 virtual TabContents* AsTabContents(); |
133 virtual ExtensionHost* AsExtensionHost() { return NULL; } | 133 virtual ExtensionHost* AsExtensionHost(); |
134 | 134 |
135 virtual void UpdateInspectorSetting(const std::string& key, | 135 virtual void UpdateInspectorSetting(const std::string& key, |
136 const std::string& value); | 136 const std::string& value); |
137 virtual void ClearInspectorSettings(); | 137 virtual void ClearInspectorSettings(); |
138 | 138 |
139 // Helper to find the BackgroundContents that originated the given request. | 139 // Helper to find the BackgroundContents that originated the given request. |
140 // Can be NULL if the page has been closed or some other error occurs. | 140 // Can be NULL if the page has been closed or some other error occurs. |
141 // Should only be called from the UI thread, since it accesses | 141 // Should only be called from the UI thread, since it accesses |
142 // BackgroundContents. | 142 // BackgroundContents. |
143 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, | 143 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, |
(...skipping 27 matching lines...) Expand all Loading... |
171 BackgroundContents* contents; | 171 BackgroundContents* contents; |
172 | 172 |
173 // The name of the parent frame for these contents. | 173 // The name of the parent frame for these contents. |
174 const string16& frame_name; | 174 const string16& frame_name; |
175 | 175 |
176 // The ID of the parent application (if any). | 176 // The ID of the parent application (if any). |
177 const string16& application_id; | 177 const string16& application_id; |
178 }; | 178 }; |
179 | 179 |
180 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 180 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
OLD | NEW |