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 #pragma once | |
11 | 10 |
12 #include <map> | 11 #include <map> |
13 #include <set> | 12 #include <set> |
14 | 13 |
15 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
16 #include "chrome/browser/extensions/extension_function.h" | 15 #include "chrome/browser/extensions/extension_function.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/ui/browser_list.h" | 17 #include "chrome/browser/ui/browser_list.h" |
19 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
20 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // API function that returns the states of all frames in a given tab. | 274 // API function that returns the states of all frames in a given tab. |
276 class GetAllFramesFunction : public SyncExtensionFunction { | 275 class GetAllFramesFunction : public SyncExtensionFunction { |
277 virtual ~GetAllFramesFunction() {} | 276 virtual ~GetAllFramesFunction() {} |
278 virtual bool RunImpl() OVERRIDE; | 277 virtual bool RunImpl() OVERRIDE; |
279 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") | 278 DECLARE_EXTENSION_FUNCTION_NAME("webNavigation.getAllFrames") |
280 }; | 279 }; |
281 | 280 |
282 } // namespace extensions | 281 } // namespace extensions |
283 | 282 |
284 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ | 283 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_NAVIGATION_WEB_NAVIGATION_API_H_ |
OLD | NEW |