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 26 matching lines...) Expand all Loading... |
37 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
38 #include "content/public/browser/render_process_host.h" | 38 #include "content/public/browser/render_process_host.h" |
39 #include "content/public/browser/render_view_host.h" | 39 #include "content/public/browser/render_view_host.h" |
40 #include "content/public/browser/render_widget_host.h" | 40 #include "content/public/browser/render_widget_host.h" |
41 #include "content/public/browser/resource_request_details.h" | 41 #include "content/public/browser/resource_request_details.h" |
42 #include "content/public/browser/session_storage_namespace.h" | 42 #include "content/public/browser/session_storage_namespace.h" |
43 #include "content/public/browser/web_contents.h" | 43 #include "content/public/browser/web_contents.h" |
44 #include "content/public/browser/web_contents_delegate.h" | 44 #include "content/public/browser/web_contents_delegate.h" |
45 #include "content/public/common/frame_navigate_params.h" | 45 #include "content/public/common/frame_navigate_params.h" |
46 #include "net/http/http_response_headers.h" | 46 #include "net/http/http_response_headers.h" |
47 #include "services/service_manager/public/cpp/interface_registry.h" | 47 #include "services/service_manager/public/cpp/binder_registry.h" |
48 #include "ui/base/page_transition_types.h" | 48 #include "ui/base/page_transition_types.h" |
49 #include "ui/gfx/geometry/size.h" | 49 #include "ui/gfx/geometry/size.h" |
50 | 50 |
51 using content::BrowserThread; | 51 using content::BrowserThread; |
52 using content::OpenURLParams; | 52 using content::OpenURLParams; |
53 using content::RenderViewHost; | 53 using content::RenderViewHost; |
54 using content::ResourceRedirectDetails; | 54 using content::ResourceRedirectDetails; |
55 using content::SessionStorageNamespace; | 55 using content::SessionStorageNamespace; |
56 using content::WebContents; | 56 using content::WebContents; |
57 | 57 |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 idle_resources_.push_back(throttle); | 788 idle_resources_.push_back(throttle); |
789 } | 789 } |
790 | 790 |
791 void PrerenderContents::AddNetworkBytes(int64_t bytes) { | 791 void PrerenderContents::AddNetworkBytes(int64_t bytes) { |
792 network_bytes_ += bytes; | 792 network_bytes_ += bytes; |
793 for (Observer& observer : observer_list_) | 793 for (Observer& observer : observer_list_) |
794 observer.OnPrerenderNetworkBytesChanged(this); | 794 observer.OnPrerenderNetworkBytesChanged(this); |
795 } | 795 } |
796 | 796 |
797 } // namespace prerender | 797 } // namespace prerender |
OLD | NEW |