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

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

Issue 13945023: Make URLDataSource::GetSource() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another one. Created 7 years, 8 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_setup_source.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SETUP_SOURCE_H_ 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_
6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_ 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/url_data_source.h" 10 #include "content/public/browser/url_data_source.h"
11 11
12 class CloudPrintSetupSource : public content::URLDataSource { 12 class CloudPrintSetupSource : public content::URLDataSource {
13 public: 13 public:
14 CloudPrintSetupSource(); 14 CloudPrintSetupSource();
15 15
16 // content::URLDataSource implementation. 16 // content::URLDataSource implementation.
17 virtual std::string GetSource() OVERRIDE; 17 virtual std::string GetSource() const OVERRIDE;
18 virtual void StartDataRequest( 18 virtual void StartDataRequest(
19 const std::string& path, 19 const std::string& path,
20 bool is_incognito, 20 bool is_incognito,
21 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 21 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
22 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; 22 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
23 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; 23 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
24 24
25 static const char kInvalidPasswordHelpUrl[]; 25 static const char kInvalidPasswordHelpUrl[];
26 static const char kCanNotAccessAccountUrl[]; 26 static const char kCanNotAccessAccountUrl[];
27 static const char kCreateNewAccountUrl[]; 27 static const char kCreateNewAccountUrl[];
28 28
29 private: 29 private:
30 virtual ~CloudPrintSetupSource() {} 30 virtual ~CloudPrintSetupSource() {}
31 31
32 // Takes a string containing an URL and returns an URL containing a CGI 32 // Takes a string containing an URL and returns an URL containing a CGI
33 // parameter of the form "&hl=xy" where 'xy' is the language code of the 33 // parameter of the form "&hl=xy" where 'xy' is the language code of the
34 // current locale. 34 // current locale.
35 std::string GetLocalizedUrl(const std::string& url) const; 35 std::string GetLocalizedUrl(const std::string& url) const;
36 36
37 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupSource); 37 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupSource);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_ 40 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/cloud_print/cloud_print_setup_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698