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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_proxy.h
===================================================================
--- chrome/service/cloud_print/cloud_print_proxy.h (revision 0)
+++ chrome/service/cloud_print/cloud_print_proxy.h (revision 0)
@@ -0,0 +1,43 @@
+// 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.
+
+#ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
+#define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/scoped_ptr.h"
+
+// TODO(sanjeevr): Integrate this with the CloudPrintProxyBackend. This needs to
+// happen after the cloud_print related files are moved to chrome/service.
+
+// CloudPrintProxy is the layer between the service process UI thread
+// and the cloud print proxy backend.
+class CloudPrintProxy {
+ public:
+ explicit CloudPrintProxy();
+ virtual ~CloudPrintProxy();
+
+ // Initializes the object. This should be called every time an object of this
+ // class is constructed.
+ void Initialize();
+
+ // Enables/disables cloud printing for the user
+ virtual void EnableForUser(const std::string& lsid,
+ const std::string& proxy_id);
+ virtual void DisableForUser();
+
+ // Notification received from the server for a particular printer.
+ // We need to inform the backend to look for jobs for this printer.
+ void HandlePrinterNotification(const std::string& printer_id);
+
+ protected:
+ void Shutdown();
+
+ DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy);
+};
+
+#endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_
+
Property changes on: chrome\service\cloud_print\cloud_print_proxy.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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