OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/profiles/profile_keyed_service.h" | 15 #include "chrome/browser/profiles/profile_keyed_service.h" |
16 #include "chrome/browser/tab_contents/background_contents.h" | 16 #include "chrome/browser/tab_contents/background_contents.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 #include "content/public/common/window_container_type.h" | 19 #include "content/public/common/window_container_type.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
22 | 22 |
23 class CommandLine; | 23 class CommandLine; |
24 class PrefService; | 24 class PrefService; |
25 class Profile; | 25 class Profile; |
26 class TabContents; | |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class DictionaryValue; | 28 class DictionaryValue; |
30 } | 29 } |
31 | 30 |
32 namespace gfx { | 31 namespace gfx { |
33 class Rect; | 32 class Rect; |
34 } | 33 } |
35 | 34 |
36 struct BackgroundContentsOpenedDetails; | 35 struct BackgroundContentsOpenedDetails; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // applications. | 169 // applications. |
171 // Key: application id | 170 // Key: application id |
172 // Value: BackgroundContentsInfo for the BC associated with that application | 171 // Value: BackgroundContentsInfo for the BC associated with that application |
173 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; | 172 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; |
174 BackgroundContentsMap contents_map_; | 173 BackgroundContentsMap contents_map_; |
175 | 174 |
176 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 175 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
177 }; | 176 }; |
178 | 177 |
179 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 178 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
OLD | NEW |