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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_url.h

Issue 7518002: Add sign in dialog for GCP->print preview integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 9 years, 4 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 | « no previous file | chrome/browser/printing/cloud_print/cloud_print_url.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) 2010 The Chromium Authors. All rights reserved. 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 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_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 class GURL; 11 class GURL;
12 class Profile; 12 class Profile;
13 13
14 // Centralize URL management for the cloud print service. 14 // Centralize URL management for the cloud print service.
15 class CloudPrintURL { 15 class CloudPrintURL {
16 public: 16 public:
17 explicit CloudPrintURL(Profile* profile) : profile_(profile) {} 17 explicit CloudPrintURL(Profile* profile) : profile_(profile) {}
18 18
19 GURL GetCloudPrintServiceURL(); 19 GURL GetCloudPrintServiceURL();
20 GURL GetCloudPrintServiceDialogURL(); 20 GURL GetCloudPrintServiceDialogURL();
21 GURL GetCloudPrintServiceManageURL(); 21 GURL GetCloudPrintServiceManageURL();
22 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id); 22 GURL GetCloudPrintServiceEnableURL(const std::string& proxy_id);
23 GURL GetCloudPrintSigninURL();
23 24
24 // These aren't derived from the service, but it makes sense to keep all the 25 // These aren't derived from the service, but it makes sense to keep all the
25 // URLs together, and this gives the unit tests access for testing. 26 // URLs together, and this gives the unit tests access for testing.
26 static GURL GetCloudPrintLearnMoreURL(); 27 static GURL GetCloudPrintLearnMoreURL();
27 static GURL GetCloudPrintTestPageURL(); 28 static GURL GetCloudPrintTestPageURL();
28 29
29 private: 30 private:
30 void RegisterPreferences(); 31 void RegisterPreferences();
31 32
32 Profile* profile_; 33 Profile* profile_;
33 }; 34 };
34 35
35 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_ 36 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_URL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/cloud_print/cloud_print_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698