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

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

Issue 2001009: Created a new process type called the service process to host background task... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
Property Changes:
Added: svn:eol-style
+ LF
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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/scoped_ptr.h"
12
13 // TODO(sanjeevr): Integrate this with the CloudPrintProxyBackend. This needs to
14 // happen after the cloud_print related files are moved to chrome/service.
15
16 // CloudPrintProxy is the layer between the service process UI thread
17 // and the cloud print proxy backend.
18 class CloudPrintProxy {
19 public:
20 explicit CloudPrintProxy();
21 virtual ~CloudPrintProxy();
22
23 // Initializes the object. This should be called every time an object of this
24 // class is constructed.
25 void Initialize();
26
27 // Enables/disables cloud printing for the user
28 virtual void EnableForUser(const std::string& lsid,
29 const std::string& proxy_id);
30 virtual void DisableForUser();
31
32 // Notification received from the server for a particular printer.
33 // We need to inform the backend to look for jobs for this printer.
34 void HandlePrinterNotification(const std::string& printer_id);
35
36 protected:
37 void Shutdown();
38
39 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
40 };
41
42 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
43
OLDNEW
« no previous file with comments | « chrome/common/sandbox_init_wrapper_mac.cc ('k') | chrome/service/cloud_print/cloud_print_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698