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 #include "chrome/browser/prerender/prerender_contents.h" | 5 #include "chrome/browser/prerender/prerender_contents.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/public/browser/render_frame_host.h" | 33 #include "content/public/browser/render_frame_host.h" |
34 #include "content/public/browser/render_process_host.h" | 34 #include "content/public/browser/render_process_host.h" |
35 #include "content/public/browser/render_view_host.h" | 35 #include "content/public/browser/render_view_host.h" |
36 #include "content/public/browser/resource_request_details.h" | 36 #include "content/public/browser/resource_request_details.h" |
37 #include "content/public/browser/session_storage_namespace.h" | 37 #include "content/public/browser/session_storage_namespace.h" |
38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
39 #include "content/public/browser/web_contents_delegate.h" | 39 #include "content/public/browser/web_contents_delegate.h" |
40 #include "content/public/common/frame_navigate_params.h" | 40 #include "content/public/common/frame_navigate_params.h" |
41 #include "net/url_request/url_request_context_getter.h" | 41 #include "net/url_request/url_request_context_getter.h" |
42 #include "ui/base/page_transition_types.h" | 42 #include "ui/base/page_transition_types.h" |
43 #include "ui/gfx/rect.h" | 43 #include "ui/gfx/geometry/rect.h" |
44 | 44 |
45 using content::BrowserThread; | 45 using content::BrowserThread; |
46 using content::DownloadItem; | 46 using content::DownloadItem; |
47 using content::OpenURLParams; | 47 using content::OpenURLParams; |
48 using content::RenderViewHost; | 48 using content::RenderViewHost; |
49 using content::ResourceRedirectDetails; | 49 using content::ResourceRedirectDetails; |
50 using content::ResourceType; | 50 using content::ResourceType; |
51 using content::SessionStorageNamespace; | 51 using content::SessionStorageNamespace; |
52 using content::WebContents; | 52 using content::WebContents; |
53 | 53 |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 void PrerenderContents::AddResourceThrottle( | 884 void PrerenderContents::AddResourceThrottle( |
885 const base::WeakPtr<PrerenderResourceThrottle>& throttle) { | 885 const base::WeakPtr<PrerenderResourceThrottle>& throttle) { |
886 resource_throttles_.push_back(throttle); | 886 resource_throttles_.push_back(throttle); |
887 } | 887 } |
888 | 888 |
889 void PrerenderContents::AddNetworkBytes(int64 bytes) { | 889 void PrerenderContents::AddNetworkBytes(int64 bytes) { |
890 network_bytes_ += bytes; | 890 network_bytes_ += bytes; |
891 } | 891 } |
892 | 892 |
893 } // namespace prerender | 893 } // namespace prerender |
OLD | NEW |