OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/gears_integration.h" | 5 #include "chrome/browser/gears_integration.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/scoped_ptr.h" |
13 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/chrome_plugin_host.h" | 15 #include "chrome/browser/chrome_plugin_host.h" |
15 #include "chrome/common/chrome_plugin_util.h" | 16 #include "chrome/common/chrome_plugin_util.h" |
16 #include "chrome/common/gears_api.h" | 17 #include "chrome/common/gears_api.h" |
17 #include "gfx/codec/png_codec.h" | 18 #include "gfx/codec/png_codec.h" |
18 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
19 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
20 #include "webkit/glue/dom_operations.h" | 21 #include "webkit/glue/dom_operations.h" |
21 | 22 |
22 // The following 2 helpers are borrowed from the Gears codebase. | 23 // The following 2 helpers are borrowed from the Gears codebase. |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 struct RunnableMethodTraits<QueryShortcutsCommand> { | 300 struct RunnableMethodTraits<QueryShortcutsCommand> { |
300 void RetainCallee(QueryShortcutsCommand* command) {} | 301 void RetainCallee(QueryShortcutsCommand* command) {} |
301 void ReleaseCallee(QueryShortcutsCommand* command) {} | 302 void ReleaseCallee(QueryShortcutsCommand* command) {} |
302 }; | 303 }; |
303 | 304 |
304 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback) { | 305 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback) { |
305 CPHandleCommand(GEARSPLUGINCOMMAND_GET_SHORTCUT_LIST, | 306 CPHandleCommand(GEARSPLUGINCOMMAND_GET_SHORTCUT_LIST, |
306 new QueryShortcutsCommand(callback), | 307 new QueryShortcutsCommand(callback), |
307 0); | 308 0); |
308 } | 309 } |
OLD | NEW |