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