summaryrefslogtreecommitdiffstats
path: root/chrome/service/cloud_print/printer_info_dummy.cc
blob: 2d2f25ad3bc45975e53052680a2e0b619cdfbaf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Copyright (c) 2010 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.

// This is dummy implementation for all configurations where print system
// for cloud print is not available.
#if !defined(CP_PRINT_SYSTEM_AVAILABLE)

#include "chrome/service/cloud_print/printer_info.h"

#include "base/logging.h"

namespace cloud_print {

void EnumeratePrinters(PrinterList* printer_list) {
  DCHECK(printer_list);
  NOTIMPLEMENTED();
}

bool GetPrinterCapsAndDefaults(const std::string& printer_name,
                               PrinterCapsAndDefaults* printer_info) {
  NOTIMPLEMENTED();
  return false;
}

bool ValidatePrintTicket(const std::string& printer_name,
                         const std::string& print_ticket_data) {
  NOTIMPLEMENTED();
  return false;
}

std::string GenerateProxyId() {
  NOTIMPLEMENTED();
  return std::string();
}

bool SpoolPrintJob(const std::string& print_ticket,
                   const FilePath& print_data_file_path,
                   const std::string& print_data_mime_type,
                   const std::string& printer_name,
                   const std::string& job_title,
                   PlatformJobId* job_id_ret) {
  NOTIMPLEMENTED();
  return false;
}

bool GetJobDetails(const std::string& printer_name,
                   PlatformJobId job_id,
                   PrintJobDetails *job_details) {
  NOTIMPLEMENTED();
  return false;
}

bool IsValidPrinter(const std::string& printer_name) {
  NOTIMPLEMENTED();
  return false;
}

PrinterChangeNotifier::PrinterChangeNotifier() : state_(NULL) {
}

PrinterChangeNotifier::~PrinterChangeNotifier() {
  StopWatching();
}

bool PrinterChangeNotifier::StartWatching(const std::string& printer_name,
                                          Delegate* delegate) {
  NOTIMPLEMENTED();
  return false;
}

bool PrinterChangeNotifier::StopWatching() {
  NOTIMPLEMENTED();
  return false;
}

bool PrinterChangeNotifier::GetCurrentPrinterInfo(
    PrinterBasicInfo* printer_info) {
  NOTIMPLEMENTED();
  return false;
}
}  // namespace cloud_print

#endif  // CP_PRINT_SYSTEM_AVAILABLE