| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Should only be called from the UI thread, since it accesses | 146 // Should only be called from the UI thread, since it accesses |
| 147 // BackgroundContents. | 147 // BackgroundContents. |
| 148 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, | 148 static BackgroundContents* GetBackgroundContentsByID(int render_process_id, |
| 149 int render_view_id); | 149 int render_view_id); |
| 150 | 150 |
| 151 protected: | 151 protected: |
| 152 // Exposed for testing. | 152 // Exposed for testing. |
| 153 BackgroundContents(); | 153 BackgroundContents(); |
| 154 | 154 |
| 155 private: | 155 private: |
| 156 // Message handlers. |
| 157 void OnPostMessage(int port_id, const std::string& message); |
| 158 |
| 156 // The delegate for this BackgroundContents. | 159 // The delegate for this BackgroundContents. |
| 157 Delegate* delegate_; | 160 Delegate* delegate_; |
| 158 | 161 |
| 159 // The host for our HTML content. | 162 // The host for our HTML content. |
| 160 RenderViewHost* render_view_host_; | 163 RenderViewHost* render_view_host_; |
| 161 | 164 |
| 162 // Common implementations of some RenderViewHostDelegate::View methods. | 165 // Common implementations of some RenderViewHostDelegate::View methods. |
| 163 RenderViewHostDelegateViewHelper delegate_view_helper_; | 166 RenderViewHostDelegateViewHelper delegate_view_helper_; |
| 164 | 167 |
| 165 // The URL being hosted. | 168 // The URL being hosted. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 179 BackgroundContents* contents; | 182 BackgroundContents* contents; |
| 180 | 183 |
| 181 // The name of the parent frame for these contents. | 184 // The name of the parent frame for these contents. |
| 182 const string16& frame_name; | 185 const string16& frame_name; |
| 183 | 186 |
| 184 // The ID of the parent application (if any). | 187 // The ID of the parent application (if any). |
| 185 const string16& application_id; | 188 const string16& application_id; |
| 186 }; | 189 }; |
| 187 | 190 |
| 188 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 191 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
| OLD | NEW |