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_PRERENDER_PRERENDER_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_TRACKER_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TRACKER_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_TRACKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback_forward.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "chrome/browser/prerender/prerender_final_status.h" | 17 #include "chrome/browser/prerender/prerender_final_status.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 | 19 |
20 namespace prerender { | 20 namespace prerender { |
21 | 21 |
22 class PrerenderManager; | 22 class PrerenderManager; |
23 struct RenderViewInfo; | 23 struct RenderViewInfo; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 // |url_counter_| keeps track of the top-level URLs which are being | 168 // |url_counter_| keeps track of the top-level URLs which are being |
169 // prerendered. It must only be accessed on the IO thread. | 169 // prerendered. It must only be accessed on the IO thread. |
170 URLCounter url_counter_; | 170 URLCounter url_counter_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(PrerenderTracker); | 172 DISALLOW_COPY_AND_ASSIGN(PrerenderTracker); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace prerender | 175 } // namespace prerender |
176 | 176 |
177 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TRACKER_H_ | 177 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_TRACKER_H_ |
OLD | NEW |