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

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy.h

Issue 11037005: New Cloud Print Private API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « chrome/common/service_messages.h ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
13 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
14 #include "chrome/service/cloud_print/cloud_print_proxy_backend.h" 15 #include "chrome/service/cloud_print/cloud_print_proxy_backend.h"
15 #include "chrome/service/cloud_print/cloud_print_wipeout.h" 16 #include "chrome/service/cloud_print/cloud_print_wipeout.h"
16 17
17 class ServiceProcessPrefs; 18 class ServiceProcessPrefs;
18 19
19 namespace cloud_print { 20 namespace cloud_print {
(...skipping 17 matching lines...) Expand all
37 38
38 // Initializes the object. This should be called every time an object of this 39 // Initializes the object. This should be called every time an object of this
39 // class is constructed. 40 // class is constructed.
40 void Initialize(ServiceProcessPrefs* service_prefs, Client* client); 41 void Initialize(ServiceProcessPrefs* service_prefs, Client* client);
41 42
42 // Enables/disables cloud printing for the user 43 // Enables/disables cloud printing for the user
43 void EnableForUser(const std::string& lsid); 44 void EnableForUser(const std::string& lsid);
44 void EnableForUserWithRobot( 45 void EnableForUserWithRobot(
45 const std::string& robot_auth_code, 46 const std::string& robot_auth_code,
46 const std::string& robot_email, 47 const std::string& robot_email,
47 const std::string& user_email); 48 const std::string& user_email,
49 bool connect_new_printers,
50 const std::vector<std::string>& printer_blacklist);
48 void UnregisterPrintersAndDisableForUser(); 51 void UnregisterPrintersAndDisableForUser();
49 void DisableForUser(); 52 void DisableForUser();
50 // Returns the proxy info. 53 // Returns the proxy info.
51 void GetProxyInfo(cloud_print::CloudPrintProxyInfo* info); 54 void GetProxyInfo(cloud_print::CloudPrintProxyInfo* info);
52 55
53 // Launches a browser to see if the proxy policy has been set. 56 // Launches a browser to see if the proxy policy has been set.
54 void CheckCloudPrintProxyPolicy(); 57 void CheckCloudPrintProxyPolicy();
55 58
56 const std::string& user_email() const { 59 const std::string& user_email() const {
57 return user_email_; 60 return user_email_;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool enabled_; 94 bool enabled_;
92 // Connector settings. 95 // Connector settings.
93 ConnectorSettings settings_; 96 ConnectorSettings settings_;
94 // This is a cleanup class for unregistering printers on proxy disable. 97 // This is a cleanup class for unregistering printers on proxy disable.
95 scoped_ptr<CloudPrintWipeout> wipeout_; 98 scoped_ptr<CloudPrintWipeout> wipeout_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); 100 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
98 }; 101 };
99 102
100 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ 103 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/service_messages.h ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698