| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOMATION_AUTOMATION_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 friend class AutomationTabHelperTest; | 101 friend class AutomationTabHelperTest; |
| 102 | 102 |
| 103 void OnSnapshotEntirePageACK( | 103 void OnSnapshotEntirePageACK( |
| 104 bool success, | 104 bool success, |
| 105 const std::vector<unsigned char>& png_data, | 105 const std::vector<unsigned char>& png_data, |
| 106 const std::string& error_msg); | 106 const std::string& error_msg); |
| 107 | 107 |
| 108 // TabContentsObserver implementation. | 108 // TabContentsObserver implementation. |
| 109 virtual void DidStartLoading(); | 109 virtual void DidStartLoading() OVERRIDE; |
| 110 virtual void DidStopLoading(); | 110 virtual void DidStopLoading() OVERRIDE; |
| 111 virtual void RenderViewGone(); | 111 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
| 112 virtual void TabContentsDestroyed(TabContents* tab_contents); | 112 virtual void TabContentsDestroyed(TabContents* tab_contents) OVERRIDE; |
| 113 virtual bool OnMessageReceived(const IPC::Message& message); | 113 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 114 | 114 |
| 115 void OnWillPerformClientRedirect(int64 frame_id, double delay_seconds); | 115 void OnWillPerformClientRedirect(int64 frame_id, double delay_seconds); |
| 116 void OnDidCompleteOrCancelClientRedirect(int64 frame_id); | 116 void OnDidCompleteOrCancelClientRedirect(int64 frame_id); |
| 117 void OnTabOrRenderViewDestroyed(TabContents* tab_contents); | 117 void OnTabOrRenderViewDestroyed(TabContents* tab_contents); |
| 118 | 118 |
| 119 // True if the tab is currently loading. If a navigation is scheduled but not | 119 // True if the tab is currently loading. If a navigation is scheduled but not |
| 120 // yet loading, this will be false. | 120 // yet loading, this will be false. |
| 121 bool is_loading_; | 121 bool is_loading_; |
| 122 | 122 |
| 123 // Set of all the frames (by frame ID) that are scheduled to perform a client | 123 // Set of all the frames (by frame ID) that are scheduled to perform a client |
| 124 // redirect. | 124 // redirect. |
| 125 std::set<int64> pending_client_redirects_; | 125 std::set<int64> pending_client_redirects_; |
| 126 | 126 |
| 127 // List of all the |TabEventObserver|s, which we broadcast events to. | 127 // List of all the |TabEventObserver|s, which we broadcast events to. |
| 128 ObserverList<TabEventObserver> observers_; | 128 ObserverList<TabEventObserver> observers_; |
| 129 | 129 |
| 130 DISALLOW_COPY_AND_ASSIGN(AutomationTabHelper); | 130 DISALLOW_COPY_AND_ASSIGN(AutomationTabHelper); |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_HELPER_H_ | 133 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_HELPER_H_ |
| OLD | NEW |