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_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/task.h" | |
16 #include "chrome/browser/profiles/profile_keyed_service.h" | 15 #include "chrome/browser/profiles/profile_keyed_service.h" |
17 #include "chrome/browser/tab_contents/background_contents.h" | 16 #include "chrome/browser/tab_contents/background_contents.h" |
18 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
19 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
20 #include "content/public/common/window_container_type.h" | 19 #include "content/public/common/window_container_type.h" |
21 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
22 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
23 | 22 |
24 class CommandLine; | 23 class CommandLine; |
25 class PrefService; | 24 class PrefService; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // applications. | 170 // applications. |
172 // Key: application id | 171 // Key: application id |
173 // Value: BackgroundContentsInfo for the BC associated with that application | 172 // Value: BackgroundContentsInfo for the BC associated with that application |
174 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; | 173 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; |
175 BackgroundContentsMap contents_map_; | 174 BackgroundContentsMap contents_map_; |
176 | 175 |
177 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 176 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
178 }; | 177 }; |
179 | 178 |
180 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 179 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
OLD | NEW |