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

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

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
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_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 <string> 8 #include <string>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
12 #include "chrome/common/url_constants.h" 12 #include "chrome/common/url_constants.h"
13 13
14 class CloudPrintSetupSource : public ChromeURLDataManager::DataSource { 14 class CloudPrintSetupSource : public ChromeURLDataManager::DataSource {
15 public: 15 public:
16 CloudPrintSetupSource(); 16 CloudPrintSetupSource();
17 virtual void StartDataRequest(const std::string& path, 17 virtual void StartDataRequest(const std::string& path,
18 bool is_off_the_record, 18 bool is_off_the_record,
19 int request_id); 19 int request_id);
20 20
21 virtual std::string GetMimeType(const std::string& path) const { 21 virtual std::string GetMimeType(const std::string& path) const;
22 return "text/html";
23 }
24 22
25 static const char kInvalidPasswordHelpUrl[]; 23 static const char kInvalidPasswordHelpUrl[];
26 static const char kCanNotAccessAccountUrl[]; 24 static const char kCanNotAccessAccountUrl[];
27 static const char kCreateNewAccountUrl[]; 25 static const char kCreateNewAccountUrl[];
28 26
29 private: 27 private:
30 virtual ~CloudPrintSetupSource() {} 28 virtual ~CloudPrintSetupSource() {}
31 29
32 // Takes a string containing an URL and returns an URL containing a CGI 30 // 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 31 // parameter of the form "&hl=xy" where 'xy' is the language code of the
34 // current locale. 32 // current locale.
35 std::string GetLocalizedUrl(const std::string& url) const; 33 std::string GetLocalizedUrl(const std::string& url) const;
36 34
37 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupSource); 35 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupSource);
38 }; 36 };
39 37
40 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_ 38 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698