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

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

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
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_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 virtual ~Delegate() {} 32 virtual ~Delegate() {}
33 }; 33 };
34 34
35 JobStatusUpdater(const std::string& printer_name, 35 JobStatusUpdater(const std::string& printer_name,
36 const std::string& job_id, 36 const std::string& job_id,
37 cloud_print::PlatformJobId& local_job_id, 37 cloud_print::PlatformJobId& local_job_id,
38 const std::string& auth_token, 38 const std::string& auth_token,
39 const GURL& cloud_print_server_url, 39 const GURL& cloud_print_server_url,
40 cloud_print::PrintSystem* print_system, 40 cloud_print::PrintSystem* print_system,
41 Delegate* delegate); 41 Delegate* delegate);
42 virtual ~JobStatusUpdater() {} 42 virtual ~JobStatusUpdater();
43
43 // Checks the status of the local print job and sends an update. 44 // Checks the status of the local print job and sends an update.
44 void UpdateStatus(); 45 void UpdateStatus();
45 void Stop(); 46 void Stop();
47
46 // URLFetcher::Delegate implementation. 48 // URLFetcher::Delegate implementation.
47 virtual void OnURLFetchComplete(const URLFetcher* source, const GURL& url, 49 virtual void OnURLFetchComplete(const URLFetcher* source, const GURL& url,
48 const URLRequestStatus& status, 50 const URLRequestStatus& status,
49 int response_code, 51 int response_code,
50 const ResponseCookies& cookies, 52 const ResponseCookies& cookies,
51 const std::string& data); 53 const std::string& data);
52 54
53 private: 55 private:
54 std::string printer_name_; 56 std::string printer_name_;
55 std::string job_id_; 57 std::string job_id_;
(...skipping 10 matching lines...) Expand all
66 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater); 68 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater);
67 }; 69 };
68 70
69 // This typedef is to workaround the issue with certain versions of 71 // This typedef is to workaround the issue with certain versions of
70 // Visual Studio where it gets confused between multiple Delegate 72 // Visual Studio where it gets confused between multiple Delegate
71 // classes and gives a C2500 error. (I saw this error on the try bots - 73 // classes and gives a C2500 error. (I saw this error on the try bots -
72 // the workaround was not needed for my machine). 74 // the workaround was not needed for my machine).
73 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate; 75 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate;
74 76
75 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 77 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698