| 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_EXTENSION_WEBNAVIGATION_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
| 10 #pragma once | 10 #pragma once |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 const content::NotificationSource& source, | 144 const content::NotificationSource& source, |
| 145 const content::NotificationDetails& details) OVERRIDE; | 145 const content::NotificationDetails& details) OVERRIDE; |
| 146 | 146 |
| 147 | 147 |
| 148 // content::WebContentsObserver implementation. | 148 // content::WebContentsObserver implementation. |
| 149 virtual void DidStartProvisionalLoadForFrame( | 149 virtual void DidStartProvisionalLoadForFrame( |
| 150 int64 frame_id, | 150 int64 frame_id, |
| 151 bool is_main_frame, | 151 bool is_main_frame, |
| 152 const GURL& validated_url, | 152 const GURL& validated_url, |
| 153 bool is_error_page, | 153 bool is_error_page, |
| 154 RenderViewHost* render_view_host) OVERRIDE; | 154 content::RenderViewHost* render_view_host) OVERRIDE; |
| 155 virtual void DidCommitProvisionalLoadForFrame( | 155 virtual void DidCommitProvisionalLoadForFrame( |
| 156 int64 frame_id, | 156 int64 frame_id, |
| 157 bool is_main_frame, | 157 bool is_main_frame, |
| 158 const GURL& url, | 158 const GURL& url, |
| 159 content::PageTransition transition_type) OVERRIDE; | 159 content::PageTransition transition_type) OVERRIDE; |
| 160 virtual void DidFailProvisionalLoad( | 160 virtual void DidFailProvisionalLoad( |
| 161 int64 frame_id, | 161 int64 frame_id, |
| 162 bool is_main_frame, | 162 bool is_main_frame, |
| 163 const GURL& validated_url, | 163 const GURL& validated_url, |
| 164 int error_code, | 164 int error_code, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 // API function that returns the states of all frames in a given tab. | 259 // API function that returns the states of all frames in a given tab. |
| 260 class GetAllFramesFunction : public SyncExtensionFunction { | 260 class GetAllFramesFunction : public SyncExtensionFunction { |
| 261 virtual ~GetAllFramesFunction() {} | 261 virtual ~GetAllFramesFunction() {} |
| 262 virtual bool RunImpl() OVERRIDE; | 262 virtual bool RunImpl() OVERRIDE; |
| 263 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") | 263 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ | 266 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
| OLD | NEW |