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/ui/tab_contents/core_tab_helper.h" | 5 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
6 | 6 |
7 #include "chrome/browser/renderer_host/web_cache_manager.h" | 7 #include "chrome/browser/renderer_host/web_cache_manager.h" |
8 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 8 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
9 #include "content/public/browser/render_process_host.h" | 9 #include "content/public/browser/render_process_host.h" |
10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 case net::LOAD_STATE_READING_RESPONSE: | 72 case net::LOAD_STATE_READING_RESPONSE: |
73 break; | 73 break; |
74 } | 74 } |
75 | 75 |
76 return string16(); | 76 return string16(); |
77 } | 77 } |
78 | 78 |
79 //////////////////////////////////////////////////////////////////////////////// | 79 //////////////////////////////////////////////////////////////////////////////// |
80 // WebContentsObserver overrides | 80 // WebContentsObserver overrides |
81 | 81 |
82 void CoreTabHelper::WasRestored() { | 82 void CoreTabHelper::WasShown() { |
83 WebCacheManager::GetInstance()->ObserveActivity( | 83 WebCacheManager::GetInstance()->ObserveActivity( |
84 web_contents()->GetRenderProcessHost()->GetID()); | 84 web_contents()->GetRenderProcessHost()->GetID()); |
85 } | 85 } |
OLD | NEW |