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 #include "chrome/browser/gears_integration.h" | 5 #include "chrome/browser/gears_integration.h" |
6 | 6 |
7 #include "base/gfx/png_encoder.h" | 7 #include "base/gfx/png_encoder.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "chrome/browser/chrome_plugin_host.h" | 11 #include "chrome/browser/chrome_plugin_host.h" |
12 #include "chrome/common/chrome_plugin_util.h" | 12 #include "chrome/common/chrome_plugin_util.h" |
13 #include "chrome/common/gears_api.h" | 13 #include "chrome/common/gears_api.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "net/base/base64.h" | 15 #include "net/base/base64.h" |
16 #include "skia/include/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "webkit/glue/dom_operations.h" | 17 #include "webkit/glue/dom_operations.h" |
18 | 18 |
19 // The following 2 helpers are borrowed from the Gears codebase. | 19 // The following 2 helpers are borrowed from the Gears codebase. |
20 | 20 |
21 const size_t kUserPathComponentMaxChars = 64; | 21 const size_t kUserPathComponentMaxChars = 64; |
22 | 22 |
23 // Returns true if and only if the char meets the following criteria: | 23 // Returns true if and only if the char meets the following criteria: |
24 // | 24 // |
25 // - visible ASCII | 25 // - visible ASCII |
26 // - None of the following characters: / \ : * ? " < > | ; , | 26 // - None of the following characters: / \ : * ? " < > | ; , |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 template<> | 306 template<> |
307 void RunnableMethodTraits<QueryShortcutsCommand>::ReleaseCallee( | 307 void RunnableMethodTraits<QueryShortcutsCommand>::ReleaseCallee( |
308 QueryShortcutsCommand* remover) { | 308 QueryShortcutsCommand* remover) { |
309 } | 309 } |
310 | 310 |
311 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback) { | 311 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback) { |
312 CPHandleCommand(GEARSPLUGINCOMMAND_GET_SHORTCUT_LIST, | 312 CPHandleCommand(GEARSPLUGINCOMMAND_GET_SHORTCUT_LIST, |
313 new QueryShortcutsCommand(callback), | 313 new QueryShortcutsCommand(callback), |
314 NULL); | 314 NULL); |
315 } | 315 } |
OLD | NEW |