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_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <tr1/unordered_set> | 9 #include <tr1/unordered_set> |
10 | 10 |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "chrome/common/notification_observer.h" | 12 #include "chrome/common/notification_observer.h" |
| 13 #include "chrome/common/notification_registrar.h" |
13 #include "chrome/common/notification_type.h" | 14 #include "chrome/common/notification_type.h" |
14 #include "chrome/common/notification_registrar.h" | |
15 | 15 |
16 class GURL; | 16 class GURL; |
17 class NavigationController; | 17 class NavigationController; |
18 class TabContents; | 18 class TabContents; |
19 template<class A> class scoped_ptr; | 19 template<class A> class scoped_ptr; |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 // OfflineLoadService decides whether or not the given url in the tab | 23 // OfflineLoadService decides whether or not the given url in the tab |
24 // should be loaded when the network is not available. The current | 24 // should be loaded when the network is not available. The current |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 // Set of tabs that should proceed | 67 // Set of tabs that should proceed |
68 std::tr1::unordered_set<const TabContents*> tabs_; | 68 std::tr1::unordered_set<const TabContents*> tabs_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(OfflineLoadService); | 70 DISALLOW_COPY_AND_ASSIGN(OfflineLoadService); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace chromeos | 73 } // namespace chromeos |
74 | 74 |
75 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_OFFLINE_OFFLINE_LOAD_SERVICE_H_ |
OLD | NEW |