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_BACKGROUND_CONTENTS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ |
6 #define CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ | 6 #define CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "chrome/common/notification_observer.h" | 10 #include "chrome/common/notification_observer.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 string16 frame_name; | 101 string16 frame_name; |
102 }; | 102 }; |
103 | 103 |
104 // Map associating currently loaded BackgroundContents with their parent | 104 // Map associating currently loaded BackgroundContents with their parent |
105 // applications. | 105 // applications. |
106 // Key: application id | 106 // Key: application id |
107 // Value: BackgroundContentsInfo for the BC associated with that application | 107 // Value: BackgroundContentsInfo for the BC associated with that application |
108 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; | 108 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; |
109 BackgroundContentsMap contents_map_; | 109 BackgroundContentsMap contents_map_; |
110 | 110 |
| 111 // If true, should always keep the browser process alive regardless of whether |
| 112 // there are any BackgroundContents (used for manual/automated testing). |
| 113 bool always_keep_alive_; |
| 114 |
111 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 115 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
112 }; | 116 }; |
113 | 117 |
114 #endif // CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ | 118 #endif // CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ |
OLD | NEW |