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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "content/public/browser/web_contents_delegate.h" | 13 #include "content/public/browser/web_contents_delegate.h" |
14 #include "content/public/browser/web_contents_observer.h" | 14 #include "content/public/browser/web_contents_observer.h" |
15 #include "webkit/glue/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class SiteInstance; | 20 class SiteInstance; |
21 }; | 21 }; |
22 | 22 |
23 // This class consumes WebContents. It can host a renderer, but does not | 23 // This class consumes WebContents. It can host a renderer, but does not |
24 // have any visible display. | 24 // have any visible display. |
25 class BackgroundContents : public content::WebContentsDelegate, | 25 class BackgroundContents : public content::WebContentsDelegate, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 BackgroundContents* contents; | 91 BackgroundContents* contents; |
92 | 92 |
93 // The name of the parent frame for these contents. | 93 // The name of the parent frame for these contents. |
94 const string16& frame_name; | 94 const string16& frame_name; |
95 | 95 |
96 // The ID of the parent application (if any). | 96 // The ID of the parent application (if any). |
97 const string16& application_id; | 97 const string16& application_id; |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ | 100 #endif // CHROME_BROWSER_TAB_CONTENTS_BACKGROUND_CONTENTS_H_ |
OLD | NEW |