Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Unified Diff: content/renderer/renderer_glue.cc

Issue 8511058: Export symbols from content.dll that are depended upon by chrome.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update comments Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_glue.cc
===================================================================
--- content/renderer/renderer_glue.cc (revision 109607)
+++ content/renderer/renderer_glue.cc (working copy)
@@ -92,11 +92,11 @@
// Clipboard glue
-ui::Clipboard* ClipboardGetClipboard() {
+CONTENT_EXPORT ui::Clipboard* ClipboardGetClipboard() {
Jói 2011/11/11 13:09:36 Should these be in the header file (webkit/glue/we
tommi (sloooow) - chröme 2011/11/11 13:23:29 Yes, they should only be in the header. Fixing.
return NULL;
}
-uint64 ClipboardGetSequenceNumber(ui::Clipboard::Buffer buffer) {
+CONTENT_EXPORT uint64 ClipboardGetSequenceNumber(ui::Clipboard::Buffer buffer) {
uint64 sequence_number = 0;
RenderThreadImpl::current()->Send(
new ClipboardHostMsg_GetSequenceNumber(buffer,
@@ -104,40 +104,45 @@
return sequence_number;
}
-bool ClipboardIsFormatAvailable(const ui::Clipboard::FormatType& format,
- ui::Clipboard::Buffer buffer) {
+CONTENT_EXPORT bool ClipboardIsFormatAvailable(
+ const ui::Clipboard::FormatType& format,
+ ui::Clipboard::Buffer buffer) {
bool result;
RenderThreadImpl::current()->Send(
new ClipboardHostMsg_IsFormatAvailable(format, buffer, &result));
return result;
}
-void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
- std::vector<string16>* types,
- bool* contains_filenames) {
+CONTENT_EXPORT void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
+ std::vector<string16>* types,
+ bool* contains_filenames) {
RenderThreadImpl::current()->Send(new ClipboardHostMsg_ReadAvailableTypes(
buffer, types, contains_filenames));
}
-void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result) {
+CONTENT_EXPORT void ClipboardReadText(ui::Clipboard::Buffer buffer,
+ string16* result) {
RenderThreadImpl::current()->Send(
new ClipboardHostMsg_ReadText(buffer, result));
}
-void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result) {
+CONTENT_EXPORT void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer,
+ std::string* result) {
RenderThreadImpl::current()->Send(
new ClipboardHostMsg_ReadAsciiText(buffer, result));
}
-void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
- GURL* url, uint32* fragment_start,
- uint32* fragment_end) {
+CONTENT_EXPORT void ClipboardReadHTML(ui::Clipboard::Buffer buffer,
+ string16* markup,
+ GURL* url, uint32* fragment_start,
+ uint32* fragment_end) {
RenderThreadImpl::current()->Send(
new ClipboardHostMsg_ReadHTML(buffer, markup, url, fragment_start,
fragment_end));
}
-void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data) {
+CONTENT_EXPORT void ClipboardReadImage(ui::Clipboard::Buffer buffer,
+ std::string* data) {
base::SharedMemoryHandle image_handle;
uint32 image_size;
RenderThreadImpl::current()->Send(
@@ -149,15 +154,15 @@
}
}
-void GetPlugins(bool refresh,
- std::vector<webkit::WebPluginInfo>* plugins) {
+CONTENT_EXPORT void GetPlugins(bool refresh,
+ std::vector<webkit::WebPluginInfo>* plugins) {
if (!RenderThreadImpl::current()->plugin_refresh_allowed())
refresh = false;
RenderThreadImpl::current()->Send(
new ViewHostMsg_GetPlugins(refresh, plugins));
}
-bool IsProtocolSupportedForMedia(const GURL& url) {
+CONTENT_EXPORT bool IsProtocolSupportedForMedia(const GURL& url) {
// If new protocol is to be added here, we need to make sure the response is
// validated accordingly in the media engine.
if (url.SchemeIsFile() || url.SchemeIs(chrome::kHttpScheme) ||
@@ -171,13 +176,13 @@
}
// static factory function
-ResourceLoaderBridge* ResourceLoaderBridge::Create(
+CONTENT_EXPORT ResourceLoaderBridge* ResourceLoaderBridge::Create(
const ResourceLoaderBridge::RequestInfo& request_info) {
return ChildThread::current()->CreateBridge(request_info);
}
// static factory function
-WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create(
+CONTENT_EXPORT WebSocketStreamHandleBridge* WebSocketStreamHandleBridge::Create(
WebKit::WebSocketStreamHandle* handle,
WebSocketStreamHandleDelegate* delegate) {
SocketStreamDispatcher* dispatcher =
@@ -185,11 +190,11 @@
return dispatcher->CreateBridge(handle, delegate);
}
-string16 GetLocalizedString(int message_id) {
+CONTENT_EXPORT string16 GetLocalizedString(int message_id) {
return content::GetContentClient()->GetLocalizedString(message_id);
}
-base::StringPiece GetDataResource(int resource_id) {
+CONTENT_EXPORT base::StringPiece GetDataResource(int resource_id) {
return content::GetContentClient()->GetDataResource(resource_id);
}
« no previous file with comments | « no previous file | webkit/glue/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698