| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "content/public/browser/render_widget_host.h" | 39 #include "content/public/browser/render_widget_host.h" |
| 40 #include "content/public/browser/resource_request_details.h" | 40 #include "content/public/browser/resource_request_details.h" |
| 41 #include "content/public/browser/session_storage_namespace.h" | 41 #include "content/public/browser/session_storage_namespace.h" |
| 42 #include "content/public/browser/web_contents.h" | 42 #include "content/public/browser/web_contents.h" |
| 43 #include "content/public/browser/web_contents_delegate.h" | 43 #include "content/public/browser/web_contents_delegate.h" |
| 44 #include "content/public/common/frame_navigate_params.h" | 44 #include "content/public/common/frame_navigate_params.h" |
| 45 #include "ui/base/page_transition_types.h" | 45 #include "ui/base/page_transition_types.h" |
| 46 #include "ui/gfx/geometry/size.h" | 46 #include "ui/gfx/geometry/size.h" |
| 47 | 47 |
| 48 using content::BrowserThread; | 48 using content::BrowserThread; |
| 49 using content::DownloadItem; | |
| 50 using content::OpenURLParams; | 49 using content::OpenURLParams; |
| 51 using content::RenderViewHost; | 50 using content::RenderViewHost; |
| 52 using content::ResourceRedirectDetails; | 51 using content::ResourceRedirectDetails; |
| 53 using content::ResourceType; | 52 using content::ResourceType; |
| 54 using content::SessionStorageNamespace; | 53 using content::SessionStorageNamespace; |
| 55 using content::WebContents; | 54 using content::WebContents; |
| 56 | 55 |
| 57 namespace prerender { | 56 namespace prerender { |
| 58 | 57 |
| 59 namespace { | 58 namespace { |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 void PrerenderContents::AddResourceThrottle( | 752 void PrerenderContents::AddResourceThrottle( |
| 754 const base::WeakPtr<PrerenderResourceThrottle>& throttle) { | 753 const base::WeakPtr<PrerenderResourceThrottle>& throttle) { |
| 755 resource_throttles_.push_back(throttle); | 754 resource_throttles_.push_back(throttle); |
| 756 } | 755 } |
| 757 | 756 |
| 758 void PrerenderContents::AddNetworkBytes(int64_t bytes) { | 757 void PrerenderContents::AddNetworkBytes(int64_t bytes) { |
| 759 network_bytes_ += bytes; | 758 network_bytes_ += bytes; |
| 760 } | 759 } |
| 761 | 760 |
| 762 } // namespace prerender | 761 } // namespace prerender |
| OLD | NEW |