OLD | NEW |
1 // Copyright (c) 2012 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_PRERENDER_PRERENDER_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 26 matching lines...) Expand all Loading... |
37 class SessionStorageNamespace; | 37 class SessionStorageNamespace; |
38 class WebContents; | 38 class WebContents; |
39 } | 39 } |
40 | 40 |
41 namespace history { | 41 namespace history { |
42 struct HistoryAddPageArgs; | 42 struct HistoryAddPageArgs; |
43 } | 43 } |
44 | 44 |
45 namespace prerender { | 45 namespace prerender { |
46 | 46 |
47 class PrerenderHandle; | |
48 class PrerenderManager; | 47 class PrerenderManager; |
49 class PrerenderResourceThrottle; | 48 class PrerenderResourceThrottle; |
50 | 49 |
51 class PrerenderContents : public content::NotificationObserver, | 50 class PrerenderContents : public content::NotificationObserver, |
52 public content::WebContentsObserver { | 51 public content::WebContentsObserver { |
53 public: | 52 public: |
54 // PrerenderContents::Create uses the currently registered Factory to create | 53 // PrerenderContents::Create uses the currently registered Factory to create |
55 // the PrerenderContents. Factory is intended for testing. | 54 // the PrerenderContents. Factory is intended for testing. |
56 class Factory { | 55 class Factory { |
57 public: | 56 public: |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 // A running tally of the number of bytes this prerender has caused to be | 366 // A running tally of the number of bytes this prerender has caused to be |
368 // transferred over the network for resources. Updated with AddNetworkBytes. | 367 // transferred over the network for resources. Updated with AddNetworkBytes. |
369 int64_t network_bytes_; | 368 int64_t network_bytes_; |
370 | 369 |
371 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); | 370 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); |
372 }; | 371 }; |
373 | 372 |
374 } // namespace prerender | 373 } // namespace prerender |
375 | 374 |
376 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ | 375 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ |
OLD | NEW |