| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // NotificationObserver | 122 // NotificationObserver |
| 123 virtual void Observe(NotificationType type, | 123 virtual void Observe(NotificationType type, |
| 124 const NotificationSource& source, | 124 const NotificationSource& source, |
| 125 const NotificationDetails& details); | 125 const NotificationDetails& details); |
| 126 | 126 |
| 127 // Overridden from JavaScriptDialogDelegate: | 127 // Overridden from JavaScriptDialogDelegate: |
| 128 virtual void OnDialogClosed(IPC::Message* reply_msg, | 128 virtual void OnDialogClosed(IPC::Message* reply_msg, |
| 129 bool success, | 129 bool success, |
| 130 const string16& user_input) OVERRIDE; | 130 const string16& user_input) OVERRIDE; |
| 131 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE; | 131 virtual gfx::NativeWindow GetDialogRootWindow() OVERRIDE; |
| 132 virtual TabContents* AsTabContents() OVERRIDE; | |
| 133 virtual ExtensionHost* AsExtensionHost() OVERRIDE; | |
| 134 | 132 |
| 135 virtual void UpdateInspectorSetting(const std::string& key, | 133 virtual void UpdateInspectorSetting(const std::string& key, |
| 136 const std::string& value); | 134 const std::string& value); |
| 137 virtual void ClearInspectorSettings(); | 135 virtual void ClearInspectorSettings(); |
| 138 | 136 |
| 139 // Helper to find the BackgroundContents that originated the given request. | 137 // 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. | 138 // 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 | 139 // Should only be called from the UI thread, since it accesses |
| 142 // BackgroundContents. | 140 // BackgroundContents. |
| 143 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, | 141 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 171 BackgroundContents* contents; | 169 BackgroundContents* contents; |
| 172 | 170 |
| 173 // The name of the parent frame for these contents. | 171 // The name of the parent frame for these contents. |
| 174 const string16& frame_name; | 172 const string16& frame_name; |
| 175 | 173 |
| 176 // The ID of the parent application (if any). | 174 // The ID of the parent application (if any). |
| 177 const string16& application_id; | 175 const string16& application_id; |
| 178 }; | 176 }; |
| 179 | 177 |
| 180 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 178 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| OLD | NEW |