summaryrefslogtreecommitdiffstats
path: root/printing/backend
diff options
context:
space:
mode:
Diffstat (limited to 'printing/backend')
-rw-r--r--printing/backend/cups_helper.h6
-rw-r--r--printing/backend/print_backend.h8
-rw-r--r--printing/backend/print_backend_consts.h16
-rw-r--r--printing/backend/win_helper.h9
4 files changed, 23 insertions, 16 deletions
diff --git a/printing/backend/cups_helper.h b/printing/backend/cups_helper.h
index 1237468..ee1de9a 100644
--- a/printing/backend/cups_helper.h
+++ b/printing/backend/cups_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,8 @@
#include <cups/cups.h>
+#include "printing/printing_export.h"
+
class GURL;
// These are helper functions for dealing with CUPS.
@@ -15,7 +17,7 @@ namespace printing {
// Helper wrapper around http_t structure, with connection and cleanup
// functionality.
-class HttpConnectionCUPS {
+class PRINTING_EXPORT HttpConnectionCUPS {
public:
explicit HttpConnectionCUPS(const GURL& print_server_url);
~HttpConnectionCUPS();
diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h
index b6d0b91..c788499 100644
--- a/printing/backend/print_backend.h
+++ b/printing/backend/print_backend.h
@@ -11,6 +11,7 @@
#include <vector>
#include "base/memory/ref_counted.h"
+#include "printing/printing_export.h"
namespace base {
class DictionaryValue;
@@ -19,7 +20,7 @@ class DictionaryValue;
// This is the interface for platform-specific code for a print backend
namespace printing {
-struct PrinterBasicInfo {
+struct PRINTING_EXPORT PrinterBasicInfo {
PrinterBasicInfo();
~PrinterBasicInfo();
@@ -32,7 +33,7 @@ struct PrinterBasicInfo {
typedef std::vector<PrinterBasicInfo> PrinterList;
-struct PrinterCapsAndDefaults {
+struct PRINTING_EXPORT PrinterCapsAndDefaults {
PrinterCapsAndDefaults();
~PrinterCapsAndDefaults();
@@ -49,7 +50,8 @@ struct PrinterCapsAndDefaults {
// print system specific. For example, CUPS is available on both Linux and Mac,
// but not available on ChromeOS, etc. This design allows us to add more
// functionality on some platforms, while reusing core (CUPS) functions.
-class PrintBackend : public base::RefCountedThreadSafe<PrintBackend> {
+class PRINTING_EXPORT PrintBackend
+ : public base::RefCountedThreadSafe<PrintBackend> {
public:
virtual ~PrintBackend();
diff --git a/printing/backend/print_backend_consts.h b/printing/backend/print_backend_consts.h
index 39555be..51210f6 100644
--- a/printing/backend/print_backend_consts.h
+++ b/printing/backend/print_backend_consts.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,11 +6,13 @@
#define PRINTING_BACKEND_PRINT_BACKEND_CONSTS_H_
#pragma once
-extern const char kLocationTagName[];
-extern const char kDriverNameTagName[];
-extern const char kCUPSPrintServerURL[];
-extern const char kCUPSBlocking[];
-extern const char kValueTrue[];
-extern const char kValueFalse[];
+#include "printing/printing_export.h"
+
+PRINTING_EXPORT extern const char kLocationTagName[];
+PRINTING_EXPORT extern const char kDriverNameTagName[];
+PRINTING_EXPORT extern const char kCUPSPrintServerURL[];
+PRINTING_EXPORT extern const char kCUPSBlocking[];
+PRINTING_EXPORT extern const char kValueTrue[];
+PRINTING_EXPORT extern const char kValueFalse[];
#endif // PRINTING_BACKEND_PRINT_BACKEND_CONSTS_H_
diff --git a/printing/backend/win_helper.h b/printing/backend/win_helper.h
index 28e57f7..a08e69a 100644
--- a/printing/backend/win_helper.h
+++ b/printing/backend/win_helper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -12,6 +12,7 @@
#include <xpsprint.h>
#include "base/string16.h"
+#include "printing/printing_export.h"
// These are helper functions for dealing with Windows Printing.
namespace printing {
@@ -21,7 +22,7 @@ namespace printing {
// this would mean having to add that to every binary that links with
// printing.lib (which is a LOT of binaries). So choosing the GetProcAddress
// route instead).
-class XPSModule {
+class PRINTING_EXPORT XPSModule {
public:
// All the other methods can ONLY be called after a successful call to Init.
// Init can be called many times and by multiple threads.
@@ -60,7 +61,7 @@ class XPSModule {
};
// See comments in cc file explaining why we need this.
-class ScopedXPSInitializer {
+class PRINTING_EXPORT ScopedXPSInitializer {
public:
ScopedXPSInitializer();
~ScopedXPSInitializer();
@@ -74,7 +75,7 @@ class ScopedXPSInitializer {
// Wrapper class to wrap the XPS Print APIs (these are different from the PTxxx
// which deal with the XML Print Schema). This is needed because these
// APIs are only available on Windows 7 and higher.
-class XPSPrintModule {
+class PRINTING_EXPORT XPSPrintModule {
public:
// All the other methods can ONLY be called after a successful call to Init.
// Init can be called many times and by multiple threads.