| 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 // Defines the Chrome Extensions WebNavigation API functions for observing and | 5 // Defines the Chrome Extensions WebNavigation API functions for observing and |
| 6 // intercepting navigation events, as specified in the extension JSON API. | 6 // intercepting navigation events, as specified in the extension JSON API. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| 10 | 10 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 content::WebContents* source_web_contents; | 152 content::WebContents* source_web_contents; |
| 153 int64 source_frame_id; | 153 int64 source_frame_id; |
| 154 bool source_frame_is_main_frame; | 154 bool source_frame_is_main_frame; |
| 155 content::WebContents* target_web_contents; | 155 content::WebContents* target_web_contents; |
| 156 GURL target_url; | 156 GURL target_url; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 // TabStripModelObserver implementation. | 159 // TabStripModelObserver implementation. |
| 160 virtual void TabReplacedAt(TabStripModel* tab_strip_model, | 160 virtual void TabReplacedAt(TabStripModel* tab_strip_model, |
| 161 TabContents* old_contents, | 161 content::WebContents* old_contents, |
| 162 TabContents* new_contents, | 162 content::WebContents* new_contents, |
| 163 int index) OVERRIDE; | 163 int index) OVERRIDE; |
| 164 | 164 |
| 165 // chrome::BrowserListObserver implementation. | 165 // chrome::BrowserListObserver implementation. |
| 166 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; | 166 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; |
| 167 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; | 167 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; |
| 168 | 168 |
| 169 // content::NotificationObserver implementation. | 169 // content::NotificationObserver implementation. |
| 170 virtual void Observe(int type, | 170 virtual void Observe(int type, |
| 171 const content::NotificationSource& source, | 171 const content::NotificationSource& source, |
| 172 const content::NotificationDetails& details) OVERRIDE; | 172 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // API function that returns the states of all frames in a given tab. | 207 // API function that returns the states of all frames in a given tab. |
| 208 class GetAllFramesFunction : public SyncExtensionFunction { | 208 class GetAllFramesFunction : public SyncExtensionFunction { |
| 209 virtual ~GetAllFramesFunction() {} | 209 virtual ~GetAllFramesFunction() {} |
| 210 virtual bool RunImpl() OVERRIDE; | 210 virtual bool RunImpl() OVERRIDE; |
| 211 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") | 211 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") |
| 212 }; | 212 }; |
| 213 | 213 |
| 214 } // namespace extensions | 214 } // namespace extensions |
| 215 | 215 |
| 216 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 216 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
| OLD | NEW |