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

Side by Side Diff: chrome/service/cloud_print/printer_info_dummy.cc

Issue 2519002: Redesign cloud printing subsystem layer. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This is dummy implementation for all configurations where print system
6 // for cloud print is not available.
7 #if !defined(CP_PRINT_SYSTEM_AVAILABLE)
8
9 #include "chrome/service/cloud_print/printer_info.h"
10
11 #include "base/logging.h"
12
13 namespace cloud_print {
14
15 void EnumeratePrinters(PrinterList* printer_list) {
16 DCHECK(printer_list);
17 NOTIMPLEMENTED();
18 }
19
20 bool GetPrinterCapsAndDefaults(const std::string& printer_name,
21 PrinterCapsAndDefaults* printer_info) {
22 NOTIMPLEMENTED();
23 return false;
24 }
25
26 bool ValidatePrintTicket(const std::string& printer_name,
27 const std::string& print_ticket_data) {
28 NOTIMPLEMENTED();
29 return false;
30 }
31
32 std::string GenerateProxyId() {
33 NOTIMPLEMENTED();
34 return std::string();
35 }
36
37 bool SpoolPrintJob(const std::string& print_ticket,
38 const FilePath& print_data_file_path,
39 const std::string& print_data_mime_type,
40 const std::string& printer_name,
41 const std::string& job_title,
42 PlatformJobId* job_id_ret) {
43 NOTIMPLEMENTED();
44 return false;
45 }
46
47 bool GetJobDetails(const std::string& printer_name,
48 PlatformJobId job_id,
49 PrintJobDetails *job_details) {
50 NOTIMPLEMENTED();
51 return false;
52 }
53
54 bool IsValidPrinter(const std::string& printer_name) {
55 NOTIMPLEMENTED();
56 return false;
57 }
58
59 PrinterChangeNotifier::PrinterChangeNotifier() : state_(NULL) {
60 }
61
62 PrinterChangeNotifier::~PrinterChangeNotifier() {
63 StopWatching();
64 }
65
66 bool PrinterChangeNotifier::StartWatching(const std::string& printer_name,
67 Delegate* delegate) {
68 NOTIMPLEMENTED();
69 return false;
70 }
71
72 bool PrinterChangeNotifier::StopWatching() {
73 NOTIMPLEMENTED();
74 return false;
75 }
76
77 bool PrinterChangeNotifier::GetCurrentPrinterInfo(
78 PrinterBasicInfo* printer_info) {
79 NOTIMPLEMENTED();
80 return false;
81 }
82 } // namespace cloud_print
83
84 #endif // CP_PRINT_SYSTEM_AVAILABLE
85
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/printer_info_cups.cc ('k') | chrome/service/cloud_print/printer_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698