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 // 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 | 6 // intercepting navigation events, as specified in the extension JSON API. |
7 // chrome/common/extensions/api/extension_api.json. | |
8 | 7 |
9 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
10 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
11 #pragma once | 10 #pragma once |
12 | 11 |
13 #include <map> | 12 #include <map> |
14 #include <set> | 13 #include <set> |
15 | 14 |
16 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
17 #include "chrome/browser/extensions/extension_function.h" | 16 #include "chrome/browser/extensions/extension_function.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 }; | 238 }; |
240 | 239 |
241 // API function that returns the states of all frames in a given tab. | 240 // API function that returns the states of all frames in a given tab. |
242 class GetAllFramesFunction : public SyncExtensionFunction { | 241 class GetAllFramesFunction : public SyncExtensionFunction { |
243 virtual ~GetAllFramesFunction() {} | 242 virtual ~GetAllFramesFunction() {} |
244 virtual bool RunImpl() OVERRIDE; | 243 virtual bool RunImpl() OVERRIDE; |
245 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") | 244 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") |
246 }; | 245 }; |
247 | 246 |
248 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ | 247 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEBNAVIGATION_API_H_ |
OLD | NEW |