| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/shared_memory.h" | 17 #include "base/shared_memory.h" |
| 18 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "content/common/clipboard_messages.h" | 19 #include "content/common/clipboard_messages.h" |
| 20 #include "content/common/content_client.h" | 20 #include "content/common/content_client.h" |
| 21 #include "content/common/content_switches.h" | 21 #include "content/common/content_switches.h" |
| 22 #include "content/common/npobject_util.h" | 22 #include "content/common/npobject_util.h" |
| 23 #include "content/common/socket_stream_dispatcher.h" | 23 #include "content/common/socket_stream_dispatcher.h" |
| 24 #include "content/common/url_constants.h" | 24 #include "content/common/url_constants.h" |
| 25 #include "content/common/view_messages.h" | 25 #include "content/common/view_messages.h" |
| 26 #include "content/renderer/content_renderer_client.h" | 26 #include "content/public/renderer/content_renderer_client.h" |
| 27 #include "content/renderer/render_thread.h" | 27 #include "content/renderer/render_thread.h" |
| 28 #include "googleurl/src/url_util.h" | 28 #include "googleurl/src/url_util.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport
.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport
.h" |
| 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 32 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
| 33 #include "ui/base/clipboard/clipboard.h" | 33 #include "ui/base/clipboard/clipboard.h" |
| 34 #include "ui/base/ui_base_switches.h" | 34 #include "ui/base/ui_base_switches.h" |
| 35 #include "webkit/glue/scoped_clipboard_writer_glue.h" | 35 #include "webkit/glue/scoped_clipboard_writer_glue.h" |
| 36 #include "webkit/glue/webkit_glue.h" | 36 #include "webkit/glue/webkit_glue.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 string16 GetLocalizedString(int message_id) { | 243 string16 GetLocalizedString(int message_id) { |
| 244 return content::GetContentClient()->GetLocalizedString(message_id); | 244 return content::GetContentClient()->GetLocalizedString(message_id); |
| 245 } | 245 } |
| 246 | 246 |
| 247 base::StringPiece GetDataResource(int resource_id) { | 247 base::StringPiece GetDataResource(int resource_id) { |
| 248 return content::GetContentClient()->GetDataResource(resource_id); | 248 return content::GetContentClient()->GetDataResource(resource_id); |
| 249 } | 249 } |
| 250 | 250 |
| 251 } // namespace webkit_glue | 251 } // namespace webkit_glue |
| OLD | NEW |