| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_GEARS_INTEGRATION_H__ | 5 #ifndef CHROME_BROWSER_GEARS_INTEGRATION_H__ |
| 6 #define CHROME_BROWSER_GEARS_INTEGRATION_H__ | 6 #define CHROME_BROWSER_GEARS_INTEGRATION_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/common/gears_api.h" | 11 #include "chrome/common/gears_api.h" |
| 12 #include "gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 13 | 13 |
| 14 // TODO(michaeln): Rework this interface to match how other first class | 14 // TODO(michaeln): Rework this interface to match how other first class |
| 15 // citizens of chrome are structured, as a GearsService with an accessor | 15 // citizens of chrome are structured, as a GearsService with an accessor |
| 16 // available via browser.gears_service(). | 16 // available via browser.gears_service(). |
| 17 | 17 |
| 18 class CPCommandInterface; | 18 class CPCommandInterface; |
| 19 class GURL; | 19 class GURL; |
| 20 class SkBitmap; | 20 class SkBitmap; |
| 21 struct WebApplicationInfo; | 21 struct WebApplicationInfo; |
| 22 | 22 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 48 // asynchronously via the callback. The callback's arguments will be NULL | 48 // asynchronously via the callback. The callback's arguments will be NULL |
| 49 // if there was an error. | 49 // if there was an error. |
| 50 typedef Callback1<GearsShortcutList*>::Type GearsQueryShortcutsCallback; | 50 typedef Callback1<GearsShortcutList*>::Type GearsQueryShortcutsCallback; |
| 51 | 51 |
| 52 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback); | 52 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback); |
| 53 | 53 |
| 54 // When the Gears shortcut database is modified, the main thread is notified | 54 // When the Gears shortcut database is modified, the main thread is notified |
| 55 // via the NotificationService, NOTIFY_WEB_APP_INSTALL_CHANGED. | 55 // via the NotificationService, NOTIFY_WEB_APP_INSTALL_CHANGED. |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_GEARS_INTEGRATION_H__ | 57 #endif // CHROME_BROWSER_GEARS_INTEGRATION_H__ |
| OLD | NEW |